/* Admin Panel Styles - Kewsign Theme 
   - Optimized for mobile-first responsive design
   - Improved width constraints for better mobile compatibility
   - Progressive enhancement for larger screens
*/

/* Reset and Base */
.admin-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, "Inter", sans-serif;
  background: #1a1a1a;
  color: #ffffff;
  overflow-x: hidden;
}

/* Login Page Styles - Override any external CSS */
body.admin-body.login-page {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
}

/* Dashboard Layout */
body.admin-body.dashboard-page {
  display: flex;
  min-height: 100vh;
  background: #101010;
  color: #EBE5DA;
  width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

/* Ensure full width for all containers */
.admin-body.dashboard-page * {
  box-sizing: border-box;
}

/* Reset any Webflow/external styles that might interfere */
.admin-login-wrapper * {
  box-sizing: border-box;
}

.admin-login-wrapper {
  min-height: 100vh;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: #1a1a1a;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  padding: 2rem;
  box-sizing: border-box;
  z-index: 9999;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
}

.admin-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
}

/* Top Logo Section */
.admin-header-logo {
  text-align: center !important;
  margin-bottom: 3rem;
  z-index: 10001;
  position: relative;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  left: 0 !important;
  right: 0 !important;
}

.admin-logo-center {
  height: 80px;
  opacity: 1;
  display: block !important;
  margin: 0 auto !important;
}

.admin-login-container {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  width: 90%;
  max-width: 500px;
  min-width: 280px;
  position: relative;
  z-index: 10000;
  backdrop-filter: blur(20px);
  margin: 0 auto;
  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: none !important;
  left: auto !important;
  right: auto !important;
}

/* Form Header */
.admin-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.admin-login-title {
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.admin-login-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 400;
}

/* Form Styles */
.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-form-group {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
}

.admin-form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: #ffffff;
  font-size: 0.95rem;
}

.admin-form-input,
.admin-form-select,
.admin-form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  padding-left: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.admin-form-input:focus,
.admin-form-select:focus,
.admin-form-textarea:focus {
  outline: none;
  border-color: #FF6D2F;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 109, 47, 0.15);
}

.admin-form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.admin-form-icon {
  position: absolute !important;
  left: 1.25rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: rgba(255, 255, 255, 0.4) !important;
  pointer-events: none !important;
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
}

.admin-password-toggle {
  position: absolute !important;
  right: 1.25rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.4) !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: color 0.3s ease !important;
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.admin-password-toggle:hover {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Checkbox Styles */
.admin-checkbox-group {
  margin: 0.5rem 0;
}

.admin-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.admin-checkbox {
  display: none;
}

.admin-checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  margin-right: 0.75rem;
  position: relative;
  background: transparent;
  transition: all 0.3s ease;
}

.admin-checkbox:checked + .admin-checkbox-custom {
  background-color: #FF6D2F;
  border-color: #FF6D2F;
}

.admin-checkbox:checked + .admin-checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.admin-checkbox-text {
  flex: 1;
}

/* Button Styles */
.admin-login-btn {
  background: linear-gradient(135deg, #FF6D2F 0%, #E85A2B 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  width: 100%;
  box-shadow: 0 4px 20px rgba(255, 109, 47, 0.3);
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.admin-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 109, 47, 0.4);
  background: linear-gradient(135deg, #E85A2B 0%, #D64A26 100%);
}

.admin-login-btn:active {
  transform: translateY(0);
}

/* Error Message */
.admin-error-message {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #FCA5A5;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Footer */
.admin-login-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-footer-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  font-weight: 400;
}

.admin-footer-link:hover {
  color: #FF6D2F;
  text-decoration: none;
}

.admin-footer-text {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Responsive Adjustments for Login */
@media (max-width: 768px) {
  .admin-login-wrapper {
    padding: 1.5rem;
  }
  
  .admin-header-logo {
    margin-bottom: 2.5rem;
  }
  
  .admin-logo-center {
    height: 70px;
  }
  
  .admin-login-container {
    padding: 2rem 1.5rem;
    max-width: 400px;
    min-width: 300px;
    width: 85%;
  }
  
  .admin-login-title {
    font-size: 1.75rem;
  }
  
  .admin-form-input {
    padding: 0.875rem 1rem;
    padding-left: 2.75rem;
  }
  
  .admin-form-icon {
    left: 1rem !important;
  }
  
  .admin-password-toggle {
    right: 1rem !important;
  }
}

@media (max-width: 480px) {
  .admin-login-wrapper {
    padding: 1rem;
  }
  
  .admin-header-logo {
    margin-bottom: 2rem;
  }
  
  .admin-logo-center {
    height: 60px;
  }
  
  .admin-login-container {
    padding: 1.5rem 1.25rem;
    max-width: 340px;
    min-width: 280px;
    width: 90%;
  }
  
  .admin-login-title {
    font-size: 1.5rem;
  }
  
  .admin-login-subtitle {
    font-size: 0.85rem;
  }
  
  .admin-form-input {
    padding: 0.75rem 0.875rem;
    padding-left: 2.5rem;
    font-size: 0.95rem;
  }
  
  .admin-form-icon {
    left: 0.875rem !important;
    width: 18px !important;
    height: 18px !important;
  }
  
  .admin-password-toggle {
    right: 0.875rem !important;
    width: 18px !important;
    height: 18px !important;
  }
  
  .admin-login-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .admin-login-form {
    gap: 1.25rem;
  }
}

/* Additional improvements for better visual consistency */
.admin-login-btn .btn-text {
  position: relative;
  z-index: 1;
}

.admin-login-btn .btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.loader-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s ease-in-out infinite;
}

/* Main Content Area */
.admin-main {
  flex: 1;
  margin-left: 280px;
  min-height: 100vh;
  background: #101010;
  color: #EBE5DA;
  width: calc(100% - 280px);
  min-width: calc(100vw - 280px);
}

/* Sidebar */
.admin-sidebar {
  width: 280px;
  min-width: 280px;
  background: rgba(16, 16, 16, 0.95);
  border-right: 1px solid rgba(235, 229, 218, 0.1);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.admin-sidebar-header {
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(235, 229, 218, 0.1);
}

.admin-sidebar-logo {
  height: 32px;
  margin-bottom: 0.75rem;
}

.admin-sidebar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #EBE5DA;
  margin: 0;
}

.admin-sidebar-nav {
  flex: 1;
  padding: 1.5rem 0;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  color: rgba(235, 229, 218, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.admin-nav-item:hover {
  color: #EBE5DA;
  background: rgba(235, 229, 218, 0.05);
}

.admin-nav-item.active {
  color: #FF6D2F;
  background: rgba(255, 109, 47, 0.1);
  border-left-color: #FF6D2F;
}

.admin-sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(235, 229, 218, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-user-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255, 109, 47, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF6D2F;
}

.admin-user-details {
  display: flex;
  flex-direction: column;
}

.admin-user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #EBE5DA;
}

.admin-user-role {
  font-size: 0.8rem;
  color: rgba(235, 229, 218, 0.6);
}

.admin-logout-btn {
  background: none;
  border: none;
  color: rgba(235, 229, 218, 0.6);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.admin-logout-btn:hover {
  color: #FF6D2F;
  background: rgba(255, 109, 47, 0.1);
}



.admin-header {
  background: rgba(16, 16, 16, 0.95);
  border-bottom: 1px solid rgba(235, 229, 218, 0.1);
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.admin-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #EBE5DA;
  cursor: pointer;
  padding: 0.5rem;
}

.admin-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #EBE5DA;
  margin: 0;
}

.admin-view-store-btn {
  background: rgba(235, 229, 218, 0.1);
  color: #EBE5DA;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(235, 229, 218, 0.2);
}

.admin-view-store-btn:hover {
  background: rgba(235, 229, 218, 0.15);
  transform: translateY(-1px);
}

/* Content Sections */
.admin-content-section {
  display: none;
  padding: 2rem;
  width: 100%;
  box-sizing: border-box;
}

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

.admin-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.admin-section-header-left,
.admin-section-header-right {
  display: flex;
  flex-direction: column;
}

.admin-btn {
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.admin-btn-primary {
  background: linear-gradient(135deg, #FF6D2F 0%, #E55A2B 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 109, 47, 0.3);
}

.admin-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 109, 47, 0.4);
}

.admin-btn-secondary {
  background: rgba(235, 229, 218, 0.1);
  color: #EBE5DA;
  border: 1px solid rgba(235, 229, 218, 0.2);
}

.admin-btn-secondary:hover {
  background: rgba(235, 229, 218, 0.15);
  border-color: rgba(235, 229, 218, 0.3);
}

.admin-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #EBE5DA;
  margin: 0 0 0.5rem 0;
}

.admin-section-subtitle {
  color: rgba(235, 229, 218, 0.7);
  margin: 0;
  font-size: 0.95rem;
}

/* Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.admin-stat-card {
  background: rgba(16, 16, 16, 0.8);
  border: 1px solid rgba(235, 229, 218, 0.1);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.admin-stat-card:hover {
  border-color: rgba(255, 109, 47, 0.3);
  background: rgba(16, 16, 16, 0.95);
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 109, 47, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF6D2F;
}

.admin-stat-info {
  display: flex;
  flex-direction: column;
}

.admin-stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #EBE5DA;
  line-height: 1;
}

.admin-stat-label {
  color: rgba(235, 229, 218, 0.7);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Filter Bar */
.admin-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.admin-filter-left,
.admin-filter-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-filter-select,
.admin-search-input {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(235, 229, 218, 0.2);
  border-radius: 0.5rem;
  background: rgba(16, 16, 16, 0.8);
  color: #EBE5DA;
  font-size: 0.9rem;
  min-width: 140px;
}

.admin-search-input {
  min-width: 200px;
}

/* Table Styles */
.admin-table-container {
  background: rgba(16, 16, 16, 0.8);
  border: 1px solid rgba(235, 229, 218, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

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

.admin-table th {
  background: rgba(235, 229, 218, 0.05);
  color: #EBE5DA;
  font-weight: 600;
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(235, 229, 218, 0.1);
  font-size: 0.9rem;
}

.admin-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(235, 229, 218, 0.05);
  color: rgba(235, 229, 218, 0.9);
  font-size: 0.9rem;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover {
  background: rgba(235, 229, 218, 0.02);
}

.product-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-image-thumb {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  object-fit: cover;
  background: rgba(235, 229, 218, 0.1);
}

.product-details h4 {
  margin: 0 0 0.25rem 0;
  font-weight: 600;
  color: #EBE5DA;
  font-size: 0.95rem;
}

.product-details p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(235, 229, 218, 0.6);
}

.category-badge {
  background: rgba(255, 109, 47, 0.1);
  color: #FF6D2F;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-active {
  background: rgba(34, 197, 94, 0.1);
  color: #22C55E;
}

.status-draft {
  background: rgba(156, 163, 175, 0.1);
  color: #9CA3AF;
}

.price-display {
  font-weight: 600;
  color: #EBE5DA;
  font-size: 1rem;
}

/* Action Buttons */
.admin-action-buttons {
  display: flex;
  gap: 0.5rem;
}

.admin-action-btn {
  padding: 0.5rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-action-btn.edit {
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6;
}

.admin-action-btn.edit:hover {
  background: rgba(59, 130, 246, 0.2);
}

.admin-action-btn.delete {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
}

.admin-action-btn.delete:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Modal Styles */
.admin-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.admin-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.admin-modal-content {
  background: rgba(16, 16, 16, 0.95);
  border: 1px solid rgba(235, 229, 218, 0.1);
  border-radius: 1rem;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  backdrop-filter: blur(10px);
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(235, 229, 218, 0.1);
}

.admin-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #EBE5DA;
  margin: 0;
}

.admin-modal-close {
  background: none;
  border: none;
  color: rgba(235, 229, 218, 0.6);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  line-height: 1;
}

.admin-modal-close:hover {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
}

.admin-modal-form {
  padding: 2rem;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-form-group {
  margin-bottom: 1.5rem;
}

.admin-form-group:last-child {
  margin-bottom: 0;
}

.admin-form-input,
.admin-form-select,
.admin-form-textarea {
  padding-left: 1rem;
}

.admin-form-textarea {
  resize: vertical;
  min-height: 100px;
}

.admin-modal-footer {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(235, 229, 218, 0.1);
}

/* File Upload Styles */
.admin-file-upload {
  position: relative;
  border: 2px dashed rgba(235, 229, 218, 0.3);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.admin-file-upload:hover {
  border-color: #FF6D2F;
  background: rgba(255, 109, 47, 0.02);
}

.admin-file-upload.dragover {
  border-color: #FF6D2F;
  background: rgba(255, 109, 47, 0.05);
}

.admin-file-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(235, 229, 218, 0.7);
}

.admin-file-upload-text {
  font-weight: 600;
  color: #EBE5DA;
}

.admin-file-upload-hint {
  font-size: 0.85rem;
  color: rgba(235, 229, 218, 0.5);
}

/* File info styles for digital products */
.file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.file-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.file-name {
  font-weight: 600;
  color: #EBE5DA;
  word-break: break-all;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 0.875rem;
  color: rgba(235, 229, 218, 0.7);
}

.admin-file-preview {
  position: relative;
  display: inline-block;
}

.admin-file-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 0.5rem;
  object-fit: cover;
}

.admin-file-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-file-remove:hover {
  background: #EF4444;
  transform: scale(1.1);
}

/* Loading Spinner */
.loader-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(16, 16, 16, 0.3);
  border-top: 2px solid #101010;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Coming Soon Placeholder */
.admin-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: rgba(235, 229, 218, 0.6);
}

.admin-coming-soon svg {
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.admin-coming-soon h3 {
  font-size: 1.5rem;
  color: #EBE5DA;
  margin: 0 0 1rem 0;
}

.admin-coming-soon p {
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0;
  line-height: 1.6;
}

/* Responsive Design - Mobile First */

/* Desktop screens - Centered design */
@media (min-width: 992px) {
  .admin-header-logo {
    margin-bottom: 1.5rem;
  }
  
  .admin-logo-center {
    height: 40px;
  }
  
  .admin-login-container {
    max-width: 380px;
    min-width: 320px;
    padding: 1.5rem 2rem;
    width: 85%;
  }
  
  .admin-login-title {
    font-size: 1.5rem;
  }
  
  .admin-login-subtitle {
    font-size: 0.85rem;
  }
  
  .admin-form-input {
    padding: 0.75rem 0.875rem;
    padding-left: 2.5rem;
    font-size: 0.85rem;
  }
  
  .admin-form-icon {
    left: 0.75rem;
  }
  
  .admin-password-toggle {
    right: 0.75rem;
  }
  
  .admin-login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .admin-footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  .admin-footer-link:hover {
    color: #FF6D2F;
  }
  
  .admin-footer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-top: 0.5rem;
  }
}

/* Small tablets and large phones */
@media (max-width: 991px) {
  .admin-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .admin-section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .admin-filter-bar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .admin-filter-left,
  .admin-filter-right {
    flex: 1;
    min-width: 250px;
  }
}

/* Tablets */
@media (max-width: 768px) and (min-width: 481px) {
  .admin-login-wrapper {
    padding: 1.5rem;
  }
  
  .admin-header-logo {
    margin-bottom: 1.25rem;
  }
  
  .admin-logo-center {
    height: 36px;
  }
  
  .admin-login-container {
    max-width: 320px;
    min-width: 280px;
    padding: 1.25rem 1.5rem;
    width: 85%;
  }
  
  .admin-login-title {
    font-size: 1.25rem;
  }
  
  .admin-login-subtitle {
    font-size: 0.75rem;
  }
  
  .admin-form-input {
    padding: 0.625rem 0.75rem;
    padding-left: 2.25rem;
    font-size: 0.8rem;
  }
  
  .admin-form-icon {
    left: 0.625rem;
    width: 14px;
    height: 14px;
  }
  
  .admin-password-toggle {
    right: 0.625rem;
    width: 14px;
    height: 14px;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .admin-login-wrapper {
    padding: 1rem;
  }
  
  .admin-header-logo {
    margin-bottom: 1rem;
  }
  
  .admin-logo-center {
    height: 28px;
  }
  
  .admin-login-container {
    max-width: 300px;
    min-width: 260px;
    width: 90%;
    padding: 1rem 1.25rem;
    margin: 0 auto;
  }
  
  .admin-login-title {
    font-size: 1.125rem;
  }
  
  .admin-login-subtitle {
    font-size: 0.7rem;
  }
  
  .admin-form-input {
    padding: 0.5rem 0.625rem;
    padding-left: 2rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .admin-form-icon {
    left: 0.5rem;
    width: 12px;
    height: 12px;
  }
  
  .admin-password-toggle {
    right: 0.5rem;
    width: 12px;
    height: 12px;
  }
}

/* General responsive rules */
@media (max-width: 768px) {
  /* Sidebar becomes overlay on tablets */
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
  }
  
  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .admin-main {
    margin-left: 0;
  }
  
  .admin-mobile-menu-btn {
    display: block;
  }
  
  .admin-header {
    padding: 1rem 1.5rem;
  }
  
  .admin-header-content {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .admin-page-title {
    font-size: 1.25rem;
  }
  
  .admin-content-section {
    padding: 1.5rem;
  }
  
  .admin-section-title {
    font-size: 1.5rem;
  }
  
  .admin-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .admin-filter-left,
  .admin-filter-right {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .admin-filter-select,
  .admin-search-input {
    width: 100%;
    min-width: auto;
  }
  
  .admin-form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .admin-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .admin-stat-card {
    padding: 1.25rem;
  }
  
  .admin-modal-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
    width: calc(100% - 2rem);
  }
  
  .admin-modal-form {
    padding: 1.5rem;
  }
  
  .admin-modal-header {
    padding: 1.5rem;
  }
  
  .admin-modal-footer {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .admin-modal-footer .admin-btn {
    width: 100%;
    justify-content: center;
  }
  
  .admin-table-container {
    overflow-x: auto;
    border-radius: 0.5rem;
  }
  
  .admin-table {
    min-width: 600px;
    font-size: 0.85rem;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 0.75rem 1rem;
  }
  
  .product-info {
    gap: 0.5rem;
  }
  
  .product-image-thumb {
    width: 40px;
    height: 40px;
  }
  
  .product-details h4 {
    font-size: 0.9rem;
  }
  
  .product-details p {
    font-size: 0.75rem;
  }
}

/* Dashboard optimizations for mobile */
@media (max-width: 480px) {
  /* Dashboard mobile optimizations */
  .admin-sidebar {
    width: 100%;
    max-width: 280px;
  }
  
  .admin-header {
    padding: 1rem;
  }
  
  .admin-content-section {
    padding: 1rem;
  }
  
  .admin-section-title {
    font-size: 1.25rem;
  }
  
  .admin-section-subtitle {
    font-size: 0.9rem;
  }
  
  .admin-stats-grid {
    gap: 0.75rem;
  }
  
  .admin-stat-card {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }
  
  .admin-stat-icon {
    margin-bottom: 0.5rem;
  }
  
  .admin-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .admin-modal-content {
    margin: 0.5rem;
    max-height: calc(100vh - 1rem);
    width: calc(100% - 1rem);
  }
  
  .admin-modal-header,
  .admin-modal-form {
    padding: 1rem;
  }
  
  .admin-modal-title {
    font-size: 1.1rem;
  }
  
  .admin-file-upload {
    padding: 1.5rem 1rem;
  }
  
  .admin-file-upload svg {
    width: 36px;
    height: 36px;
  }
  
  .admin-file-upload-text {
    font-size: 0.9rem;
  }
  
  .admin-file-upload-hint {
    font-size: 0.8rem;
  }
  
  .admin-table-container {
    margin: -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .admin-table {
    min-width: 500px;
    font-size: 0.8rem;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .admin-action-buttons {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .admin-action-btn {
    padding: 0.375rem;
  }
  
  .category-badge,
  .status-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
  
  .admin-price-display {
    font-size: 0.9rem;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .admin-login-wrapper {
    padding: 0.5rem;
  }
  
  /* Override any stubborn width constraints */
  body, html {
    width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .admin-header-logo {
    margin-bottom: 1.5rem;
  }
  
  .admin-logo-center {
    height: 45px;
  }
  
  .admin-login-container {
    max-width: 280px;
    min-width: 240px;
    width: 95%;
    padding: 1.5rem;
    border-radius: 0.75rem;
  }
  
  .admin-login-title {
    font-size: 1.5rem;
  }
  
  .admin-login-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .admin-login-form {
    gap: 1rem;
  }
  
  .admin-form-input,
  .admin-form-select,
  .admin-form-textarea {
    padding: 0.75rem 0.875rem;
    padding-left: 2.5rem;
    font-size: 16px;
  }
  
  .admin-form-icon {
    left: 0.75rem;
    top: 2.25rem;
  }
  
  .admin-password-toggle {
    right: 0.75rem;
    top: 2.25rem;
  }
  
  .admin-login-btn {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .admin-content-section {
    padding: 0.75rem;
  }
  
  .admin-header {
    padding: 0.75rem;
  }
  
  .admin-modal-content {
    margin: 0.25rem;
    width: calc(100% - 0.5rem);
  }
  
  .admin-stats-grid {
    gap: 0.5rem;
  }
  
  .admin-stat-card {
    padding: 0.75rem;
  }
}

/* Large screens optimizations */
/* Desktop styles - Force desktop layout */
@media (min-width: 769px) {
  .admin-sidebar {
    position: fixed !important;
    transform: translateX(0) !important;
    width: 280px !important;
    min-width: 280px !important;
    left: 0 !important;
    top: 0 !important;
    height: 100vh !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
    transition: none !important;
  }
  
  .admin-main {
    margin-left: 280px !important;
    width: calc(100% - 280px) !important;
    min-width: calc(100vw - 280px) !important;
    flex: 1 !important;
  }
  
  .admin-mobile-menu-btn {
    display: none !important;
  }
  
  .admin-sidebar-overlay {
    display: none !important;
  }
}

@media (min-width: 1200px) {
  .admin-header-logo {
    margin-bottom: 1.75rem;
  }
  
  .admin-logo-center {
    height: 45px;
  }
  
  .admin-login-container {
    max-width: 400px;
    min-width: 350px;
    padding: 1.75rem 2.25rem;
    width: 80%;
  }
  
  .admin-login-title {
    font-size: 1.625rem;
  }
  
  .admin-login-subtitle {
    font-size: 0.9rem;
  }
  
  .admin-form-input {
    padding: 0.875rem 1rem;
    padding-left: 2.5rem;
    font-size: 0.9rem;
  }
  
  .admin-form-icon {
    left: 0.875rem;
    width: 18px;
    height: 18px;
  }
  
  .admin-password-toggle {
    right: 0.875rem;
    width: 18px;
    height: 18px;
  }
  
  .admin-main {
    margin-left: 300px;
  }
  
  .admin-sidebar {
    width: 300px;
  }
  
  .admin-content-section {
    padding: 2.5rem;
  }
  
  .admin-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .admin-modal-content {
    max-width: 700px;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .admin-sidebar-logo,
  .admin-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Dark mode support (if system preference) */
@media (prefers-color-scheme: dark) {
  .admin-body {
    color-scheme: dark;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .admin-sidebar,
  .admin-modal,
  .admin-btn,
  .admin-nav-item,
  .admin-action-btn,
  .admin-stat-card {
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .admin-form-input,
  .admin-form-select,
  .admin-form-textarea {
    border-width: 2px;
  }
  
  .admin-btn {
    border: 2px solid currentColor;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .admin-login-wrapper {
    padding: 0.5rem;
  }
  
  .admin-login-container {
    padding: 1.5rem;
    max-width: 350px;
    min-width: 280px;
    width: 92%;
    max-height: calc(100vh - 1rem);
    overflow-y: auto;
  }
  
  .admin-logo-section {
    margin-bottom: 1rem;
  }
  
  .admin-login-form {
    gap: 1rem;
  }
  
  .admin-modal-content {
    max-height: calc(100vh - 1rem);
    overflow-y: auto;
  }
  
  .admin-sidebar.mobile-open {
    width: 280px;
  }
}

.admin-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  backdrop-filter: blur(2px);
}

@media (max-width: 768px) {
  .admin-sidebar-overlay.active {
    display: block;
  }
}

/* Analytics & Charts Styles */
.admin-charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.admin-chart-card {
  background: rgba(16, 16, 16, 0.8);
  border: 1px solid rgba(235, 229, 218, 0.1);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.admin-chart-card:hover {
  border-color: rgba(255, 109, 47, 0.3);
  background: rgba(16, 16, 16, 0.95);
}

.admin-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.admin-chart-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #EBE5DA;
}

.admin-chart-period {
  font-size: 0.85rem;
  color: rgba(235, 229, 218, 0.6);
}

.admin-chart-placeholder {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  overflow: hidden;
}

.admin-top-products {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-rank-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(235, 229, 218, 0.05);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.product-rank-item:hover {
  background: rgba(235, 229, 218, 0.1);
}

.product-rank-item .rank {
  width: 24px;
  height: 24px;
  background: #FF6D2F;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.product-rank-item .product-name {
  flex: 1;
  font-weight: 500;
  color: #EBE5DA;
  font-size: 0.9rem;
}

.product-rank-item .product-sales {
  font-weight: 600;
  color: #FF6D2F;
}

/* Line Chart Styles */
.chart-container {
  position: relative;
  width: 100%;
  height: 200px;
  padding: 20px;
  background: #1f2937;
  border-radius: 8px;
  border: 1px solid #374151;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

.chart-line {
  fill: none;
  stroke: #f97316;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-area {
  fill: url(#areaGradient);
  opacity: 0.1;
}

.chart-point {
  fill: #f97316;
  stroke: #1f2937;
  stroke-width: 2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-point:hover {
  fill: #ea580c;
  r: 6;
}

.chart-grid {
  stroke: #374151;
  stroke-width: 1;
  opacity: 0.3;
}

.chart-axis {
  stroke: #6b7280;
  stroke-width: 1;
}

.chart-label {
  fill: #9ca3af;
  font-size: 11px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chart-tooltip {
  position: absolute;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: #f9fafb;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Font Smoothing - Global */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -o-font-smoothing: antialiased;
}

/* Password Input Spacing */
#newPassword,
#confirmPassword {
  margin-top: 0.75rem;
}

/* Hidden Elements by Default */
#imagePreview,
#productFilePreview,
.btn-loader {
  display: none;
}

/* Notification Styles */
.admin-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.3s ease-out;
  max-width: 400px;
}

.admin-notification.success {
  background: #10b981;
  color: white;
  border-left: 4px solid #059669;
}

.admin-notification.error {
  background: #ef4444;
  color: white;
  border-left: 4px solid #dc2626;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-content svg {
  flex-shrink: 0;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Settings Styles */
.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.admin-settings-card {
  background: rgba(16, 16, 16, 0.8);
  border: 1px solid rgba(235, 229, 218, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.admin-settings-card:hover {
  border-color: rgba(255, 109, 47, 0.3);
  background: rgba(16, 16, 16, 0.95);
}

.admin-settings-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(235, 229, 218, 0.1);
}

.admin-settings-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #EBE5DA;
}

.admin-settings-header p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(235, 229, 218, 0.6);
  line-height: 1.4;
}

.admin-settings-form {
  padding: 1.5rem;
}

/* Order & Customer Status Badges */
.status-badge.status-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
}

.status-badge.status-completed {
  background: rgba(34, 197, 94, 0.1);
  color: #22C55E;
}

.status-badge.status-cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
}

.status-badge.status-inactive {
  background: rgba(156, 163, 175, 0.1);
  color: #9CA3AF;
}

/* Customer Info Display */
.customer-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.customer-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255, 109, 47, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF6D2F;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.customer-details h4 {
  margin: 0 0 0.25rem 0;
  font-weight: 600;
  color: #EBE5DA;
  font-size: 0.95rem;
}

.customer-details p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(235, 229, 218, 0.6);
}

/* Order Info Display */
.order-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.order-id {
  font-weight: 600;
  color: #EBE5DA;
  font-size: 0.95rem;
}

.order-products {
  font-size: 0.8rem;
  color: rgba(235, 229, 218, 0.6);
}

/* Export Buttons */
.admin-btn.admin-btn-export {
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.admin-btn.admin-btn-export:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

/* Form Enhancements */
.admin-form-input[type="date"] {
  color-scheme: dark;
}

.admin-form-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* Responsive Adjustments for New Components */
@media (max-width: 991px) {
  .admin-charts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .admin-settings-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .admin-charts-grid {
    gap: 1rem;
  }
  
  .admin-chart-card {
    padding: 1rem;
  }
  
  .admin-chart-placeholder {
    height: 250px;
  }
  
  .admin-settings-grid {
    gap: 1rem;
  }
  
  .admin-settings-card {
    border-radius: 0.5rem;
  }
  
  .admin-settings-header,
  .admin-settings-form {
    padding: 1rem;
  }
  
  .product-rank-item {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .product-rank-item .rank {
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
  }
  
  .product-rank-item .product-name {
    font-size: 0.85rem;
  }
  
  .product-rank-item .product-sales {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .admin-charts-grid {
    margin-top: 1.5rem;
  }
  
  .admin-chart-placeholder {
    height: 200px;
  }
  
  .admin-settings-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  
  .admin-settings-header {
    padding: 0.75rem;
  }
  
  .admin-settings-form {
    padding: 0.75rem;
  }
  
  .admin-settings-header h3 {
    font-size: 1rem;
  }
  
  .admin-settings-header p {
    font-size: 0.8rem;
  }
  
  .customer-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  
  .customer-details h4 {
    font-size: 0.9rem;
  }
  
  .customer-details p {
    font-size: 0.75rem;
  }
  
  .order-id {
    font-size: 0.9rem;
  }
  
  .order-products {
    font-size: 0.75rem;
  }
}

.admin-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

@media (max-width: 768px) {
  .admin-sidebar-overlay.active {
    display: block;
  }
} 