/* ===== ADMIN SCREEN STYLES ===== */

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--gray-200);
}

.admin-tab {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-tab:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}

.admin-tab.active {
  color: var(--primary-600);
  border-bottom-color: var(--primary-600);
}

.admin-tab i {
  font-size: 1.125rem;
}

/* Tab Content */
.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

/* Admin Actions */
.admin-actions {
  margin-bottom: 2rem;
  display: flex;
  justify-content: flex-end;
}

/* Chauffeurs List */
.chauffeurs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.chauffeur-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  transition: all 0.3s;
  position: relative;
}

.chauffeur-card:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  transform: translateY(-2px);
}

.chauffeur-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.chauffeur-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.chauffeur-info h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.chauffeur-role {
  font-size: 0.875rem;
  color: var(--gray-600);
  background: var(--primary-50);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
}

.chauffeur-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chauffeur-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.chauffeur-detail i {
  color: var(--gray-400);
  width: 20px;
}

.chauffeur-detail span {
  color: var(--gray-700);
}

.btn-delete-chauffeur {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--error-500);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-delete-chauffeur:hover {
  background: var(--error-600);
  transform: scale(1.1);
}

/* Affectations List */
.affectations-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.affectation-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  transition: all 0.3s;
  position: relative;
}

.affectation-card:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.affectation-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.affectation-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.affectation-title i {
  color: var(--primary-500);
}

.affectation-details {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.affectation-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.affectation-detail i {
  color: var(--gray-400);
}

.affectation-dates {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.affectation-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
}

.affectation-date i {
  color: var(--gray-400);
}

.affectation-status {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.affectation-status.active {
  background: var(--success-50);
  color: var(--success-600);
}

.affectation-status.ended {
  background: var(--gray-100);
  color: var(--gray-600);
}

.btn-delete-affectation {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--error-500);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-delete-affectation:hover {
  background: var(--error-600);
  transform: scale(1.1);
}

/* Admin Modal */
.admin-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
}

.admin-modal.active {
  display: block;
}

.modal-overlay-admin {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--gray-500);
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--gray-300);
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.empty-state p {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Responsive */
@media (max-width: 768px) {
  .admin-tabs {
    overflow-x: auto;
  }

  .chauffeurs-list {
    grid-template-columns: 1fr;
  }

  .affectation-card {
    grid-template-columns: 1fr;
  }

  .affectation-details {
    flex-direction: column;
    gap: 0.5rem;
  }
}
