/* KanjoWin Admin CSS - Brand Identity Aligned */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&family=Poppins:wght@400;500;600&display=swap');

:root {
  /* KanjoWin Primary Colors */
  --primary-purple: #1E152B;
  --primary-beige: #E4D7C3;
  --primary-red: #B72227;

  /* Neutral Colors */
  --neutral-purple: #3A2E47;
  --neutral-dark: #090A0D;
  --neutral-light: #FFFAF3;

  /* Secondary/Accent Colors */
  --accent-purple: #7462A4;
  --accent-teal: #2DAEA1;
  --accent-red: #DF2A38;

  /* Functional Colors */
  --success-color: #2DAEA1;
  --warning-color: #DF2A38;
  --danger-color: #B72227;

  /* UI Application */
  --sidebar-bg: #1E152B;
  --sidebar-text: #E4D7C3;
  --sidebar-active: #3A2E47;
  --main-bg: #FFFAF3;
  --card-bg: #ffffff;
  --text-primary: #1E152B;
  --text-secondary: #3A2E47;
  --border-color: #E4D7C3;
  --shadow: 0 1px 3px 0 rgba(30, 21, 43, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(30, 21, 43, 0.15);

  /* Gradients */
  --gradient-red: linear-gradient(135deg, #B72227 0%, #DF2A38 100%);
  --gradient-purple: linear-gradient(135deg, #1E152B 0%, #3A2E47 100%);
  --gradient-beige: linear-gradient(135deg, #E4D7C3 0%, #FFFAF3 100%);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--main-bg);
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rubik', sans-serif;
}

/* Login Page Styles */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--gradient-purple);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(228, 215, 195, 0.02) 10px,
    rgba(228, 215, 195, 0.02) 20px
  );
  pointer-events: none;
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.login-card {
  background: rgba(255, 250, 243, 0.98);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(30, 21, 43, 0.3);
  backdrop-filter: blur(10px);
  border: 2px solid var(--primary-beige);
}

.login-card h1 {
  font-family: 'Rubik', sans-serif;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-purple);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.01em;
}

/* Admin Page Styles */
.admin-page {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 250px;
  background: var(--gradient-purple);
  color: var(--sidebar-text);
  padding: 2rem 0;
  position: fixed;
  height: 100vh;
  top: 0;
  left: 0;
  box-shadow: 4px 0 15px rgba(30, 21, 43, 0.2);
  z-index: 100;
}

.admin-logo {
  padding: 0 2rem 2rem;
  border-bottom: 2px solid rgba(228, 215, 195, 0.2);
  margin-bottom: 2rem;
  position: relative;
}

.logo-brand {
  position: relative;
}

.admin-logo h2 {
  font-family: 'Rubik', sans-serif;
  color: var(--primary-beige);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.logo-accent {
  color: var(--accent-red);
  font-weight: 800;
}

.logo-tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  color: var(--primary-beige);
  opacity: 0.7;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.admin-nav ul {
  list-style: none;
}

.admin-nav li {
  margin-bottom: 0.5rem;
}

.admin-nav a {
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 2rem;
  color: var(--sidebar-text);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  font-weight: 500;
}

.admin-nav a:hover {
  background-color: var(--sidebar-active);
  color: var(--neutral-light);
  border-left-color: var(--accent-teal);
}

.admin-nav a.active {
  background-color: var(--sidebar-active);
  color: var(--neutral-light);
  border-left-color: var(--primary-red);
}

.admin-nav a.logout-btn {
  margin-top: auto;
  border-top: 2px solid rgba(228, 215, 195, 0.2);
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.admin-nav a.logout-btn:hover {
  border-left-color: var(--accent-red);
  color: var(--accent-red);
}

/* Main Content */
.admin-main {
  flex: 1;
  margin-left: 250px;
  padding: 2.5rem;
  background: var(--main-bg);
  min-height: 100vh;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.admin-header h1 {
  font-family: 'Rubik', sans-serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--primary-purple);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* Buttons */
.btn-primary {
  font-family: 'Poppins', sans-serif;
  background: var(--gradient-red);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(183, 34, 39, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(183, 34, 39, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  font-family: 'Poppins', sans-serif;
  background-color: var(--primary-beige);
  color: var(--primary-purple);
  border: 2px solid var(--primary-beige);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: transparent;
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-icon:hover {
  background-color: var(--primary-beige);
  color: var(--primary-purple);
}

.btn-danger {
  color: var(--danger-color);
}

.btn-danger:hover {
  background-color: rgba(183, 34, 39, 0.1);
  color: var(--accent-red);
}

/* Tables */
.admin-table-container {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(30, 21, 43, 0.08);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  font-family: 'Poppins', sans-serif;
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background: var(--gradient-beige);
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  color: var(--primary-purple);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table tr:hover {
  background-color: rgba(228, 215, 195, 0.15);
}

/* Badges */
.badge {
  font-family: 'Poppins', sans-serif;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-success {
  background-color: rgba(45, 174, 161, 0.15);
  color: var(--accent-teal);
  border: 1px solid var(--accent-teal);
}

.badge-warning {
  background-color: rgba(223, 42, 56, 0.15);
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
}

.badge-info {
  background-color: rgba(223, 42, 56, 0.1);
  color: #DF2A38;
  border: 1px solid rgba(223, 42, 56, 0.4);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-family: 'Poppins', sans-serif;
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-purple);
  font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: 'Poppins', sans-serif;
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: white;
  color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(45, 174, 161, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 6rem;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border-color);
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 21, 43, 0.7);
  backdrop-filter: blur(8px);
}

.modal-content {
  background-color: var(--card-bg);
  margin: 5% auto;
  padding: 2.5rem;
  border-radius: 8px;
  width: 90%;
  max-width: 650px;
  box-shadow: 0 25px 50px rgba(30, 21, 43, 0.3);
  border: 2px solid var(--primary-beige);
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-content h2,
.modal-content h3 {
  font-family: 'Rubik', sans-serif;
  color: var(--primary-purple);
  margin-bottom: 1.5rem;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--neutral-light);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--primary-beige);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent-teal);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-secondary);
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--accent-red);
  background-color: rgba(223, 42, 56, 0.1);
}

/* Media Grid */
.uploads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.upload-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(30, 21, 43, 0.08);
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.upload-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(30, 21, 43, 0.15);
  border-color: var(--accent-teal);
}

.upload-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background-color: var(--neutral-light);
}

.upload-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--gradient-beige);
}

.filename {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--primary-purple);
}

.filesize {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Notifications */
.notification-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notification {
  font-family: 'Poppins', sans-serif;
  background: white;
  padding: 1.25rem 1.75rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(30, 21, 43, 0.2);
  border: 2px solid var(--accent-teal);
  border-left: 6px solid var(--accent-teal);
  animation: slideIn 0.3s ease;
  font-weight: 500;
}

.notification.success {
  border-color: var(--success-color);
  border-left-color: var(--success-color);
  background: linear-gradient(135deg, #ffffff 0%, rgba(45, 174, 161, 0.05) 100%);
}

.notification.error {
  border-color: var(--danger-color);
  border-left-color: var(--danger-color);
  background: linear-gradient(135deg, #ffffff 0%, rgba(183, 34, 39, 0.05) 100%);
}

.notification.warning {
  border-color: var(--warning-color);
  border-left-color: var(--warning-color);
  background: linear-gradient(135deg, #ffffff 0%, rgba(223, 42, 56, 0.05) 100%);
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Error Messages */
.error-message {
  font-family: 'Poppins', sans-serif;
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  min-height: 1.5rem;
  font-weight: 500;
}

/* Sections */
.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

/* Translation Tabs */
.translation-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0 1rem 0;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.tab-btn {
  font-family: 'Poppins', sans-serif;
  padding: 0.625rem 1.25rem;
  border: 2px solid var(--border-color);
  background: var(--neutral-light);
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: var(--primary-beige);
  color: var(--primary-purple);
  border-color: var(--accent-teal);
}

.tab-btn.active {
  background: var(--gradient-red);
  color: white;
  border-color: var(--primary-red);
}

.translation-fields {
  margin-top: 1.5rem;
}

.translation-lang {
  display: none;
}

.translation-lang.active {
  display: block;
}

.translation-lang .form-group {
  margin-bottom: 1.5rem;
}

.translation-lang label {
  font-family: 'Poppins', sans-serif;
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-purple);
  font-size: 0.875rem;
}

.translation-lang input,
.translation-lang textarea {
  font-family: 'Poppins', sans-serif;
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.translation-lang input:focus,
.translation-lang textarea:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(45, 174, 161, 0.1);
}

.translation-lang textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* Translation Section */
.translation-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.translation-section h3 {
  font-family: 'Rubik', sans-serif;
  color: var(--primary-purple);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.language-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.lang-tab {
  font-family: 'Poppins', sans-serif;
  background: var(--primary-beige);
  border: 2px solid var(--border-color);
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary-purple);
  transition: all 0.3s ease;
}

.lang-tab:hover {
  background: var(--accent-teal);
  color: white;
  border-color: var(--accent-teal);
}

.lang-tab.active {
  background: var(--gradient-red);
  color: white;
  border-color: var(--primary-red);
}

/* Media Picker */
.media-picker-item {
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.media-picker-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(30, 21, 43, 0.2);
  z-index: 1;
}

.media-picker-item::after {
  content: '✓ Select';
  font-family: 'Poppins', sans-serif;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  letter-spacing: 0.02em;
}

.media-picker-item:hover::after {
  opacity: 0.95;
}

/* Upload Progress */
.upload-progress {
  margin-top: 1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: var(--accent-teal);
}

/* Checkbox Styles */
.checkbox-label {
  font-family: 'Poppins', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 500;
  color: var(--primary-purple);
  cursor: pointer;
  margin: 0;
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent-teal);
  margin: 0;
  flex-shrink: 0;
}

.checkbox-label span {
  user-select: none;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border-color);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.modal-header h3 {
  font-family: 'Rubik', sans-serif;
  color: var(--primary-purple);
  font-size: 1.5rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    margin-bottom: 1rem;
    box-shadow: none;
    border-bottom: 4px solid var(--primary-red);
  }

  .admin-main {
    margin-left: 0;
    padding: 1.5rem;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .admin-header h1 {
    font-size: 1.75rem;
  }

  .admin-table {
    font-size: 0.875rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.75rem 0.5rem;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 2rem 1.5rem;
  }

  .uploads-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .notification-container {
    top: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .form-actions,
  .modal-actions {
    flex-direction: column-reverse;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

/* Brand Pattern Decorations */
.admin-main::before {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(228, 215, 195, 0.03) 20px,
    rgba(228, 215, 195, 0.03) 40px
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.admin-section {
  position: relative;
  z-index: 1;
}

/* Accent Lines */
.admin-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 4px;
  background: var(--gradient-red);
  border-radius: 2px;
}

/* Product/Post Image Thumbnails */
.admin-table img {
  border-radius: 6px;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.admin-table img:hover {
  border-color: var(--accent-teal);
  transform: scale(1.1);
}
/* Action Button Groups */
.admin-table .btn-icon {
  margin: 0 0.25rem;
}

/* Section Transitions */
.admin-section {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid var(--primary-beige);
  border-top-color: var(--primary-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Focus States - Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent-teal);
  outline-offset: 2px;
}

/* Empty State Messages */
.empty-state {
  font-family: 'Poppins', sans-serif;
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 3rem;
  color: var(--primary-beige);
  margin-bottom: 1rem;
  display: block;
}

.empty-state p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Status Indicators */
.status-active {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.status-active::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--accent-teal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-teal);
}

.status-inactive::before {
  background-color: var(--text-secondary);
  box-shadow: none;
}

/* KanjoWin Brand Signature */
.admin-logo::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gradient-red);
  margin-top: 0.75rem;
  border-radius: 2px;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Selection Color */
::selection {
  background-color: var(--accent-teal);
  color: white;
}

::-moz-selection {
  background-color: var(--accent-teal);
  color: white;
}

/* Enhanced Brand Logo Decoration */
.admin-logo::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-red);
  border-radius: 0 0 4px 4px;
}

/* Login Page Brand Enhancement */
.login-card::before {
  content: 'KANJO';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Rubik', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--primary-beige);
  background: var(--gradient-red);
  padding: 0.5rem 2rem;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(183, 34, 39, 0.3);
}

/* Table Enhancement - Add subtle brand pattern */
.admin-table-container::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(228, 215, 195, 0.02) 10px,
    rgba(228, 215, 195, 0.02) 20px
  );
  pointer-events: none;
  border-radius: 0 8px 8px 0;
}

.admin-table-container {
  position: relative;
  overflow: visible;
}

/* Section Title Enhancement */
#sectionTitle {
  position: relative;
  display: inline-block;
}

#sectionTitle::before {
  content: '//';
  color: var(--accent-red);
  margin-right: 0.5rem;
  font-weight: 800;
}

/* Button Icon Enhancement */
.btn-primary i,
.btn-secondary i {
  margin-right: 0.5rem;
}

/* Empty State with Brand Character */
.empty-state::before {
  content: '⚡';
  display: block;
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

/* Add Racing Stripe Decoration */
.admin-main::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 250px;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary-red) 0px,
    var(--primary-red) 20px,
    transparent 20px,
    transparent 40px,
    var(--accent-teal) 40px,
    var(--accent-teal) 60px,
    transparent 60px,
    transparent 80px
  );
  opacity: 0.3;
  pointer-events: none;
  z-index: 10;
}

/* Modal Header Enhancement */
.modal-content h2::before,
.modal-header h3::before {
  content: '▸';
  color: var(--accent-red);
  margin-right: 0.75rem;
  font-size: 1.2em;
}

/* Card Hover Glow Effect */
.upload-item:hover,
.admin-table-container:hover {
  box-shadow: 0 8px 24px rgba(45, 174, 161, 0.15);
}

/* Brand Pattern Background for Sidebar */
.admin-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(228, 215, 195, 0.02) 40px,
      rgba(228, 215, 195, 0.02) 80px
    );
  pointer-events: none;
}

.admin-nav {
  position: relative;
  z-index: 1;
}

/* Enhanced Focus Glow */
button:focus-visible,
.btn-primary:focus-visible {
  outline: 3px solid var(--accent-teal);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(45, 174, 161, 0.2);
}

/* Form Input Enhancement */
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 4px rgba(45, 174, 161, 0.1), 0 2px 8px rgba(30, 21, 43, 0.05);
}

/* Notification Enhancement */
.notification::before {
  content: '●';
  margin-right: 0.75rem;
  font-size: 1.2em;
}

.notification.success::before {
  color: var(--accent-teal);
}

.notification.error::before {
  color: var(--danger-color);
}

.notification.warning::before {
  color: var(--accent-red);
}

/* Loading Overlay Enhancement */
.loading::before {
  content: 'LOADING...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 40px));
  font-family: 'Rubik', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--primary-red);
  z-index: 10;
}

/* Orders & Users Section Styles (NEW) */
.section-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-red);
}

.filter-select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-red);
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Rubik', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-processing {
  background: #cce5ff;
  color: #004085;
}

.status-shipped {
  background: #d1ecf1;
  color: #0c5460;
}

.status-delivered {
  background: #d4edda;
  color: #155724;
}

.status-cancelled {
  background: #f8d7da;
  color: #721c24;
}

.status-active {
  background: #d4edda;
  color: #155724;
}

.status-blocked {
  background: #f8d7da;
  color: #721c24;
  font-weight: 700;
}

/* Role Badges */
.role-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Rubik', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-user {
  background: #e3f2fd;
  color: #1565c0;
}

.role-admin {
  background: #f3e5f5;
  color: #7b1fa2;
}

.role-dev {
  background: #fce4ec;
  color: #c2185b;
}

/* Verify Badges */
.verify-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Rubik', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.verify-badge.verified {
  background: #d4edda;
  color: #155724;
}

.verify-badge.unverified {
  background: #fff3cd;
  color: #856404;
}

/* Small Buttons for Tables */
.btn-small {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  transition: all 0.3s;
  margin: 0 0.25rem;
}

.btn-view {
  background: var(--accent-teal);
  color: white;
}

.btn-view:hover {
  background: #249a8e;
  transform: translateY(-1px);
}

.btn-edit {
  background: var(--accent-purple);
  color: white;
}

.btn-edit:hover {
  background: #6355a3;
  transform: translateY(-1px);
}

.btn-verify {
  background: var(--success-color);
  color: white;
}

.btn-verify:hover {
  background: #2aa096;
  transform: translateY(-1px);
}

.btn-success {
  background: #4caf50;
  color: white;
}

.btn-success:hover {
  background: #45a049;
  transform: translateY(-1px);
}

/* Order & User Detail Modals */
.order-detail,
.user-detail {
  font-family: 'Poppins', sans-serif;
}

.order-detail p,
.user-detail p {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.order-detail p:last-child,
.user-detail p:last-child {
  border-bottom: none;
}

.order-detail strong,
.user-detail strong {
  display: inline-block;
  min-width: 150px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* List Editor for FAQ, Values, Team */
.list-item {
  background: #f9f9f9;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.list-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.list-item-header strong {
  color: var(--primary-color);
}

.list-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.list-item-content .form-group {
  margin-bottom: 0;
}

.list-item-content label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.list-item-question,
.list-item-answer,
.list-item-icon,
.list-item-title,
.list-item-content-text,
.list-item-name,
.list-item-role,
.list-item-bio,
.list-item-initials,
.list-item-image-url,
.list-item-feature-icon,
.list-item-feature-title,
.list-item-feature-description,
.list-item-contact-icon,
.list-item-contact-label,
.list-item-contact-value,
.list-item-footer-platform,
.list-item-footer-icon,
.list-item-footer-url {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.875rem;
}

/* Responsive Updates for New Sections */
@media (max-width: 768px) {
  .section-controls {
    flex-direction: column;
  }

  .search-input,
  .filter-select {
    width: 100%;
  }

  .btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    margin: 0.125rem;
  }
}

/* ─── NEWSLETTER STATS & FILTERS ──────────────────────────── */
.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-label {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1E152B;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  margin-right: 0.5rem;
  transition: all 0.3s;
}

.filter-btn:hover {
  background: #f8f9fa;
  border-color: #2DAEA1;
}

.filter-btn.active {
  background: #2DAEA1;
  color: white;
  border-color: #2DAEA1;
}

/* ===== GALLERY SECTION ===== */

.gallery-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .gallery-layout {
    grid-template-columns: 1fr;
  }
}

.gallery-folders-panel {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-folders-header {
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.gallery-folder-tree {
  padding: 0.5rem 0;
  max-height: 500px;
  overflow-y: auto;
}

.gallery-folder-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s;
  position: relative;
}

.gallery-folder-item:hover {
  background: #f0f0f0;
}

.gallery-folder-item.active {
  background: #e8f5f4;
  color: #2DAEA1;
  font-weight: 600;
}

.gallery-folder-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-folder-actions {
  display: none;
  gap: 0.25rem;
}

.gallery-folder-item:hover .gallery-folder-actions {
  display: flex;
}

.btn-sm {
  padding: 0.2rem 0.35rem;
  font-size: 0.75rem;
}

.gallery-images-panel {
  min-width: 0;
}

.gallery-images-toolbar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.gallery-thumb {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  display: block;
}
