/**
 * Styles für die Mitarbeiter-Verwaltung
 */

/* Status-Badges */
.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.status-active {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-badge.status-inactive {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-badge.status-none {
  background-color: #e2e3e5;
  color: #6c757d;
  border: 1px solid #d6d8db;
}

/* Employee Modal */
#employee-modal {
  max-width: 600px;
  width: 90%;
}

#employee-modal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

#employee-modal .form-group {
  margin-bottom: 1.5rem;
}

#employee-modal .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

#employee-modal .form-group .required {
  color: #dc3545;
}

#employee-modal .form-group input,
#employee-modal .form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#employee-modal .form-group input:focus,
#employee-modal .form-group select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

#employee-modal .form-group input[type="email"] {
  font-family: 'Courier New', monospace;
}

#employee-modal .form-group select {
  background-color: white;
  cursor: pointer;
}

/* Form validation styles */
#employee-modal .form-group input:invalid {
  border-color: #dc3545;
}

#employee-modal .form-group input:invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

/* Modal footer buttons */
#employee-modal .modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

#employee-modal .modal-footer .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}

#employee-modal .modal-footer .btn-secondary {
  background-color: #6c757d;
  color: white;
  border: none;
}

#employee-modal .modal-footer .btn-secondary:hover {
  background-color: #5a6268;
}

#employee-modal .modal-footer .btn-primary {
  background-color: #007bff;
  color: white;
  border: none;
}

#employee-modal .modal-footer .btn-primary:hover:not(:disabled) {
  background-color: #0056b3;
}

#employee-modal .modal-footer .btn-primary:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

/* Page header actions */
.page-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.page-actions .btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-actions .btn-primary {
  background-color: #007bff;
  color: white;
}

.page-actions .btn-primary:hover {
  background-color: #0056b3;
}

.page-actions .btn-secondary {
  background-color: #6c757d;
  color: white;
}

.page-actions .btn-secondary:hover {
  background-color: #5a6268;
}

/* Table specific styles */
.employees-table-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
  #employee-modal {
    width: 95%;
    margin: 1rem;
  }
  
  #employee-modal .modal-footer {
    flex-direction: column;
  }
  
  #employee-modal .modal-footer .btn {
    width: 100%;
  }
  
  .page-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .page-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .status-badge.status-active {
    background-color: rgba(40, 167, 69, 0.2);
    color: #75d189;
    border-color: rgba(40, 167, 69, 0.3);
  }
  
  .status-badge.status-inactive {
    background-color: rgba(220, 53, 69, 0.2);
    color: #f5a2a9;
    border-color: rgba(220, 53, 69, 0.3);
  }
  
  .status-badge.status-none {
    background-color: rgba(108, 117, 125, 0.2);
    color: #adb5bd;
    border-color: rgba(108, 117, 125, 0.3);
  }
  
  #employee-modal .form-group input,
  #employee-modal .form-group select {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
  }
  
  #employee-modal .form-group input:focus,
  #employee-modal .form-group select:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.25);
  }
  
  .employees-table-container {
    background: #2d3748;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
} 