/* Admin Dashboard Styles */
:root {
  --primary: #005F9C;
  --primary-light: rgba(0, 95, 156, 0.1);
  --secondary: #4CAF50;
  --danger: #f44336;
  --warning: #FFC107;
  --dark: #333;
  --medium: #757575;
  --light: #f8f9fa;
  --lighter: #eaeaea;
  --white: #fff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

.dashboard-container {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-title {
  font-size: 1.8rem;
  color: var(--dark);
  margin: 0;
}

.dashboard-subtitle {
  color: var(--medium);
  margin: 0.5rem 0 0 0;
  font-size: 1rem;
}

.dashboard-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--lighter);
  padding-bottom: 0.75rem;
}

.card-title {
  font-size: 1.25rem;
  color: var(--dark);
  margin: 0;
  font-weight: 600;
}

.card-body {
  color: var(--medium);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: linear-gradient(135deg, var(--primary) 0%, #0075be 100%);
  color: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.8;
  margin: 0;
}

.stat-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  opacity: 0.2;
}

/* Buttons */
.btn {
  border: none;
  border-radius: 5px;
  padding: 0.6rem 1.25rem;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: #004c7d;
  box-shadow: 0 3px 8px rgba(0, 95, 156, 0.3);
}

.btn-secondary {
  background-color: var(--light);
  color: var(--dark);
  border: 1px solid var(--lighter);
}

.btn-secondary:hover {
  background-color: var(--lighter);
}

.btn-danger {
  background-color: var(--danger);
  color: white;
}

.btn-danger:hover {
  background-color: #d32f2f;
  box-shadow: 0 3px 8px rgba(244, 67, 54, 0.3);
}

.btn-icon {
  padding: 0.5rem;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
}

.btn-icon i {
  font-size: 1.1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--lighter);
  border-radius: var(--border-radius);
  background-color: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 95, 156, 0.1);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.dashboard-table th,
.dashboard-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--lighter);
}

.dashboard-table th {
  font-weight: 600;
  color: var(--medium);
  background-color: var(--light);
}

.dashboard-table tbody tr:hover {
  background-color: var(--primary-light);
}

.dashboard-table .user-avatar {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 10px;
}

.status-badge {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-active {
  background-color: rgba(76, 175, 80, 0.15);
  color: #2e7d32;
}

.status-pending {
  background-color: rgba(255, 193, 7, 0.15);
  color: #f57f17;
}

.status-inactive {
  background-color: rgba(244, 67, 54, 0.15);
  color: #c62828;
}

/* User list styling */
.user-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.user-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--lighter);
}

.user-item:last-child {
  border-bottom: none;
}

.user-info {
  flex: 1;
  margin-left: 1rem;
}

.user-name {
  font-weight: 500;
  color: var(--dark);
  margin: 0 0 0.25rem 0;
}

.user-email {
  color: var(--medium);
  margin: 0;
  font-size: 0.9rem;
}

.user-actions {
  display: flex;
  gap: 0.5rem;
}

/* Tabs */
.dashboard-tabs {
  display: flex;
  border-bottom: 1px solid var(--lighter);
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.dashboard-tabs::-webkit-scrollbar {
  display: none;
}

.dashboard-tab {
  padding: 1rem 1.5rem;
  font-weight: 500;
  color: var(--medium);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
}

.dashboard-tab.active {
  color: var(--primary);
}

.dashboard-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
}

.dashboard-tab:hover:not(.active) {
  color: var(--dark);
}

.tab-content {
  display: none;
}

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

/* Responsive utilities */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.grid-col-2 {
  grid-column: span 2;
}

.grid-col-3 {
  grid-column: span 3;
}

@media (max-width: 768px) {
  .dashboard-container {
    padding: 1rem;
  }
  
  .grid-col-2, 
  .grid-col-3 {
    grid-column: span 1;
  }
  
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .dashboard-title {
    margin-bottom: 1rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease forwards;
}

/* Card variants */
.card-primary {
  border-left: 4px solid var(--primary);
}

.card-secondary {
  border-left: 4px solid var(--secondary);
}

.card-warning {
  border-left: 4px solid var(--warning);
}

.card-danger {
  border-left: 4px solid var(--danger);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: var(--white);
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-backdrop.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--lighter);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--lighter);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.close-modal {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--medium);
}

.close-modal:hover {
  color: var(--dark);
} 