/* Thin Whitelist Modal - Compact Design */
.thin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  padding: 1rem;
}

.thin-modal {
  background: #161b22;
  color: #f0f6fc;
  border-radius: 12px;
  width: 90vw;
  max-width: 600px;
  max-height: 80vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid #30363d;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Compact Header */
.thin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #30363d;
  background: #161b22;
  flex-shrink: 0;
}

.thin-modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f0f6fc;
  margin: 0;
}

.thin-close-btn {
  background: transparent;
  border: none;
  color: #8b949e;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thin-close-btn:hover {
  background: #21262d;
  color: #f0f6fc;
}

/* Compact Content */
.thin-modal-content {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.thin-description {
  color: #c9d1d9;
  margin: 0 0 1rem 0;
  line-height: 1.5;
  font-size: 0.875rem;
}

.thin-message {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.thin-message.success {
  background: rgba(46, 160, 67, 0.1);
  color: #3fb950;
  border: 1px solid rgba(46, 160, 67, 0.2);
}

.thin-message.error {
  background: rgba(248, 81, 73, 0.1);
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.2);
}

/* Compact Rules Container */
.thin-rules-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Empty State */
.thin-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  background: #21262d;
  border-radius: 8px;
  border: 1px solid #30363d;
  margin-bottom: 1rem;
}

.thin-empty-icon {
  color: #8b949e;
  margin-bottom: 1rem;
}

.thin-empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f0f6fc;
  margin: 0 0 0.5rem 0;
}

.thin-empty-description {
  font-size: 0.875rem;
  color: #8b949e;
  line-height: 1.5;
  margin: 0;
  max-width: 400px;
}

.thin-rule-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #21262d;
  border-radius: 6px;
  border: 1px solid #30363d;
}

.thin-rule-select {
  padding: 0.5rem 0.75rem;
  background-color: #0d1117;
  color: #f0f6fc;
  border: 1px solid #30363d;
  border-radius: 4px;
  min-width: 120px;
  font-size: 0.8rem;
  transition: border-color 0.2s ease;
}

.thin-rule-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.thin-rule-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #30363d;
  border-radius: 4px;
  background-color: #0d1117;
  color: #f0f6fc;
  font-size: 0.8rem;
  transition: border-color 0.2s ease;
}

.thin-rule-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.thin-remove-btn {
  padding: 0.25rem 0.5rem;
  background-color: transparent;
  color: #8b949e;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thin-remove-btn:hover {
  background-color: #21262d;
  color: #f85149;
  transform: translateY(-1px);
}

.thin-add-rule-btn {
  width: 100%;
  padding: 0.75rem;
  background-color: #21262d;
  color: #c9d1d9;
  border: 1px solid #30363d;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
}

.thin-add-rule-btn:hover {
  background-color: #30363d;
  border-color: #58a6ff;
  color: #f0f6fc;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Compact Footer */
.thin-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid #30363d;
  background: #161b22;
  gap: 1rem;
  flex-shrink: 0;
}

.thin-footer-left {
  display: flex;
  gap: 0.75rem;
}

.thin-footer-right {
  display: flex;
  gap: 0.75rem;
}

.thin-cancel-btn {
  padding: 0.5rem 1rem;
  background: #21262d;
  color: #c9d1d9;
  border: 1px solid #30363d;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thin-cancel-btn:hover:not(:disabled) {
  background: #30363d;
  border-color: #58a6ff;
  color: #f0f6fc;
  transform: translateY(-1px);
}

.thin-save-btn {
  padding: 0.5rem 1rem;
  background: #58a6ff;
  color: white;
  border: 1px solid #58a6ff;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thin-save-btn:hover:not(:disabled) {
  background: #1f6feb;
  border-color: #1f6feb;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.thin-secondary-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  color: #8b949e;
  border: 1px solid #30363d;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thin-secondary-btn:hover:not(:disabled) {
  background: #21262d;
  border-color: #484f58;
  color: #c9d1d9;
  transform: translateY(-1px);
}

/* Disabled states */
.thin-rule-select:disabled,
.thin-rule-input:disabled,
.thin-remove-btn:disabled,
.thin-add-rule-btn:disabled,
.thin-cancel-btn:disabled,
.thin-save-btn:disabled,
.thin-secondary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .thin-modal {
    width: 95vw;
    max-height: 90vh;
  }
  
  .thin-modal-content {
    padding: 1rem;
  }
  
  .thin-rule-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .thin-rule-select {
    min-width: auto;
  }
  
  .thin-modal-footer {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .thin-footer-left,
  .thin-footer-right {
    width: 100%;
    justify-content: center;
  }
  
  .thin-footer-left {
    order: 2;
  }
  
  .thin-footer-right {
    order: 1;
  }
} 