/* Admin Styles */

/* Base Admin Layout */
.admin-page {
  background-color: #f5f8ff;
  min-height: calc(100vh - 70px);
  padding: 40px 0;
}

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

.admin-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.admin-subheading {
  font-size: 1.1rem;
  color: #666;
}

.admin-content {
  display: flex;
  gap: 30px;
}

/* Admin Sidebar */
.admin-sidebar {
  width: 280px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  flex-shrink: 0;
}

.admin-sidebar-header {
  padding: 25px;
  background: linear-gradient(45deg, #004ff9, #000000);
  color: white;
  text-align: center;
}

.admin-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin: 0 auto;
    margin: 0 auto 15px;
  border: 3px solid rgba(255, 255, 255, 0.3);
}
.admin-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.admin-role {
  font-size: 0.9rem;
  opacity: 0.8;
}

.admin-nav {
  padding: 10px 0;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #333;
  transition: all 0.3s ease;
  text-decoration: none;
}

.admin-nav-item i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
  color: #004ff9;
}

.admin-nav-item:hover {
  background-color: #f0f5ff;
}

.admin-nav-item.active {
  background-color: #e8f1ff;
  color: #004ff9;
  border-left: 3px solid #004ff9;
}

.admin-nav-item.logout {
  border-top: 1px solid #eee;
  margin-top: 10px;
}

.admin-nav-item.logout i {
  color: #dc3545;
}

/* Admin Main Content */
.admin-main {
  flex: 1;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  overflow: hidden;
}

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

.stat-card {
  background-color: #f9faff;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

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

.stat-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #004ff9, #1a67ff);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 15px;
}

.stat-content {
  flex: 1;
}

.stat-title {
  font-size: 0.9rem;
  color: #353434;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
}

/* Section Titles */
.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

/* Tables */
.appointments-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.appointments-table th {
  background-color: #f5f8ff;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
}

.appointments-table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.appointments-table tr:hover {
  background-color: #f9faff;
}

.appointment-date {
  font-weight: 600;
  margin-bottom: 5px;
}

.appointment-time {
  font-size: 0.9rem;
  color: #666;
}

.customer-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.customer-contact {
  font-size: 0.9rem;
  color: #666;
}

.customer-mobile,
.customer-email {
  display: flex;
  align-items: center;
  margin-bottom: 3px;
}

.customer-mobile i,
.customer-email i {
  margin-right: 5px;
  color: #004ff9;
  width: 15px;
}

.service-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.service-price {
  font-size: 0.9rem;
  color: #666;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-confirmed {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.status-completed {
  background-color: #e3f2fd;
  color: #1565c0;
}

.status-cancelled_by_customer {
  background-color: #fff3e0;
  color: #e65100;
}

.status-cancelled_by_shop {
  background-color: #ffebee;
  color: #c62828;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 10px;
}

.btn-view,
.btn-cancel {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-view {
  background-color: #e3f2fd;
  color: #1565c0;
}

.btn-view:hover {
  background-color: #bbdefb;
}

.btn-cancel {
  background-color: #ffebee;
  color: #c62828;
}

.btn-cancel:hover {
  background-color: #ffcdd2;
}

/* View All Link */
.view-all-link {
  text-align: center;
  margin-top: 20px;
}

.view-all-link a {
  color: #004ff9;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.view-all-link a:hover {
  text-decoration: underline;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  background-color: #f9faff;
  border-radius: 10px;
  margin-top: 20px;
}

.empty-state i {
  font-size: 3rem;
  color: #004ff9;
  opacity: 0.5;
  margin-bottom: 15px;
}

.empty-message {
  font-size: 1.1rem;
  color: #666;
}

/* Filters Section */
.filters-section {
  background-color: #f9faff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
}

.filters-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.filter-select,
.filter-date {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.filter-select:focus,
.filter-date:focus {
  outline: none;
  border-color: #004ff9;
  box-shadow: 0 0 0 3px rgba(0, 79, 249, 0.1);
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.btn-apply-filter,
.btn-clear-filter {
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-apply-filter {
  background-color: #004ff9;
  color: white;
  border: none;
}

.btn-apply-filter:hover {
  background-color: #0040cc;
}

.btn-clear-filter {
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.btn-clear-filter:hover {
  background-color: #e9e9e9;
}

/* Appointments Header */
.appointments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.export-options {
  display: flex;
  gap: 10px;
}

.btn-export {
  padding: 8px 15px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.btn-export i {
  margin-right: 5px;
}

.btn-export:hover {
  background-color: #e9e9e9;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.pagination-prev,
.pagination-next,
.pagination-page {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
  background-color: #f5f5f5;
}

.pagination-page.active {
  background-color: #004ff9;
  color: white;
}

.pagination-prev:hover,
.pagination-next:hover,
.pagination-page:hover {
  background-color: #e9e9e9;
}

.pagination-page.active:hover {
  background-color: #0040cc;
}

.pagination-ellipsis {
  margin: 0 5px;
  color: #666;
}

/* Shop Card */
.shop-card {
  background-color: #f9faff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.shop-card-header {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.shop-photo {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.shop-info {
  flex: 1;
}

.shop-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.shop-address,
.shop-contact {
  display: flex;
  align-items: flex-start;
  margin-bottom: 5px;
  color: #666;
}

.shop-address i,
.shop-contact i {
  margin-right: 8px;
  margin-top: 3px;
  color: #004ff9;
}

.shop-card-actions {
  padding: 15px 20px;
  background-color: #f0f5ff;
  display: flex;
  justify-content: flex-end;
}

.btn-view-shop {
  padding: 8px 15px;
  background-color: #004ff9;
  color: white;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-view-shop i {
  margin-right: 5px;
}

.btn-view-shop:hover {
  background-color: #0040cc;
}

/* Barbershops Grid */
.barbershops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.barbershop-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.barbershop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.barbershop-image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.barbershop-content {
  padding: 20px;
}

.barbershop-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.barbershop-address {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  color: #666;
  font-size: 0.9rem;
}

.barbershop-address i {
  margin-right: 8px;
  margin-top: 3px;
  color: #004ff9;
  flex-shrink: 0;
}

.barbershop-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  color: #666;
  font-size: 0.9rem;
}

.meta-item i {
  margin-right: 5px;
  color: #004ff9;
}

.barbershop-actions {
  display: flex;
  gap: 10px;
}

.btn-shop-appointments,
.btn-view-shop {
  flex: 1;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-shop-appointments {
  background-color: #e3f2fd;
  color: #1565c0;
}

.btn-shop-appointments:hover {
  background-color: #bbdefb;
}

.btn-shop-appointments i,
.btn-view-shop i {
  margin-right: 5px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: 20px;
  background-color: #f5f8ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.modal-body {
  padding: 25px;
}

.modal-footer {
  padding: 15px 20px;
  background-color: #f5f8ff;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cancel-btn,
.delete-btn {
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-btn {
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.cancel-btn:hover {
  background-color: #e9e9e9;
}

.delete-btn {
  background-color: #dc3545;
  color: white;
  border: none;
}

.delete-btn:hover {
  background-color: #c82333;
}

/* Error Page */
.error-page {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.error-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
}

.error-header {
  background: linear-gradient(45deg, #dc3545, #e53935);
  color: white;
  padding: 25px;
  text-align: center;
}

.error-header i {
  font-size: 3rem;
  margin-bottom: 15px;
}

.error-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.error-content {
  padding: 25px;
  text-align: center;
}

.error-message {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 25px;
}

.error-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-back,
.btn-home {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-back {
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.btn-back:hover {
  background-color: #e9e9e9;
}

.btn-home {
  background-color: #004ff9;
  color: white;
  border: none;
}

.btn-home:hover {
  background-color: #0040cc;
}

.btn-back i,
.btn-home i {
  margin-right: 8px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .admin-content {
    flex-direction: column;
  }
  
  .admin-sidebar {
    width: 100%;
  }
  
  .admin-sidebar-header {
    display: flex;
    align-items: center;
  }
  
  .admin-photo {
    margin: 0 15px 0 0;
    width: 60px;
    height: 60px;
  }
  
  .admin-nav {
    display: flex;
    flex-wrap: wrap;
  }
  
  .admin-nav-item {
    flex: 1;
    min-width: 150px;
  }
  
  .barbershops-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .filters-form {
    flex-direction: column;
    gap: 15px;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-actions {
    width: 100%;
  }
  
  .btn-apply-filter,
  .btn-clear-filter {
    flex: 1;
  }
  
  .appointments-table {
    display: block;
    overflow-x: auto;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .barbershops-grid {
    grid-template-columns: 1fr;
  }
  
  .shop-card-header {
    flex-direction: column;
  }
  
  .shop-photo {
    width: 100%;
    height: 200px;
  }
}