/* Admin Panel Styles */
.admin-body {
  background-color: #f8f9fa;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Admin Login */
.admin-login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.login-card {
  background-color: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header img {
  height: 60px;
  margin-bottom: 20px;
}

.login-header h2 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.login-header p {
  color: #666;
  margin: 0;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2c3e50;
}

.input-group {
  position: relative;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.input-group input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #3498db;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 14px;
}

.login-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.login-footer a {
  color: #3498db;
  text-decoration: none;
}

.demo-credentials {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 13px;
  color: #666;
}

/* Admin Dashboard */
.admin-header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.admin-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-logo img {
  height: 40px;
}

.admin-logo span {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-container {
  display: flex;
  min-height: calc(100vh - 80px);
}

/* Sidebar */
.admin-sidebar {
  width: 250px;
  background-color: #2c3e50;
  color: white;
  padding: 0;
}

.admin-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-menu li {
  border-bottom: 1px solid #34495e;
}

.admin-menu a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 25px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.admin-menu a:hover,
.admin-menu li.active a {
  background-color: #34495e;
  color: white;
}

.admin-menu i {
  font-size: 1.1rem;
  width: 20px;
}

/* Main Content */
.admin-main {
  flex: 1;
  padding: 30px;
  background-color: #f8f9fa;
}

.admin-section {
  display: none;
}

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

.section-header {
  margin-bottom: 30px;
}

.section-header h1 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.section-header p {
  color: #666;
  margin: 0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.stat-card:nth-child(1) .stat-icon {
  background-color: #3498db;
}

.stat-card:nth-child(2) .stat-icon {
  background-color: #2ecc71;
}

.stat-card:nth-child(3) .stat-icon {
  background-color: #e74c3c;
}

.stat-card:nth-child(4) .stat-icon {
  background-color: #f39c12;
}

.stat-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 5px;
}

.stat-content p {
  color: #666;
  margin: 0;
  font-size: 14px;
}

/* Dashboard Charts */
.dashboard-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.chart-card {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.activity-list {
  max-height: 300px;
  overflow-y: auto;
}

.activity-item {
  padding: 15px 0;
  border-bottom: 1px solid #f8f9fa;
  display: flex;
  align-items: center;
  gap: 15px;
}

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

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
  background-color: #3498db;
}

.activity-content {
  flex: 1;
}

.activity-content h4 {
  margin-bottom: 5px;
  font-size: 14px;
  color: #2c3e50;
}

.activity-content p {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.quick-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  font-size: 14px;
}

/* Tables */
.table-container {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead {
  background-color: #f8f9fa;
}

.admin-table th,
.admin-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.admin-table th {
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
}

.admin-table td {
  font-size: 13px;
  color: #666;
}

.admin-table tbody tr:hover {
  background-color: #f8f9fa;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.status-pending {
  background-color: #fff3cd;
  color: #856404;
}

.status-confirmed {
  background-color: #d4edda;
  color: #155724;
}

.status-cancelled {
  background-color: #f8d7da;
  color: #721c24;
}

.status-new {
  background-color: #cce5ff;
  color: #004085;
}

.status-resolved {
  background-color: #d4edda;
  color: #155724;
}

.priority-high {
  background-color: #f8d7da;
  color: #721c24;
}

.priority-medium {
  background-color: #fff3cd;
  color: #856404;
}

.priority-low {
  background-color: #d4edda;
  color: #155724;
}

.action-buttons {
  display: flex;
  gap: 5px;
}

.action-btn {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.action-btn.view {
  background-color: #3498db;
  color: white;
}

.action-btn.edit {
  background-color: #f39c12;
  color: white;
}

.action-btn.delete {
  background-color: #e74c3c;
  color: white;
}

.action-btn:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

/* Modal Styles for Admin */
.modal-content {
  max-width: 600px;
}

.detail-row {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f8f9fa;
}

.detail-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.detail-label {
  font-weight: 600;
  color: #2c3e50;
  width: 150px;
  flex-shrink: 0;
}

.detail-value {
  color: #666;
  flex: 1;
}

/* Responsive Admin */
@media (max-width: 768px) {
  .admin-container {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    order: 2;
  }

  .admin-main {
    order: 1;
    padding: 20px;
  }

  .admin-nav {
    padding: 15px 20px;
  }

  .admin-logo span {
    font-size: 1.2rem;
  }

  .admin-user {
    gap: 10px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-charts {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .table-container {
    overflow-x: auto;
  }

  .admin-table {
    min-width: 800px;
  }

  .admin-menu {
    display: flex;
    overflow-x: auto;
  }

  .admin-menu ul {
    display: flex;
    min-width: max-content;
  }

  .admin-menu li {
    border-bottom: none;
    border-right: 1px solid #34495e;
  }

  .admin-menu li:last-child {
    border-right: none;
  }

  .admin-menu a {
    white-space: nowrap;
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 30px 20px;
  }

  .admin-main {
    padding: 15px;
  }

  .stat-card {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .chart-card {
    padding: 20px;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px;
  }

  .action-buttons {
    flex-direction: column;
  }
}
