/* ==========================================================================
   LAURA PREMIUM BOUTIQUE - DYNAMIC GLASSMORPHISM ADMIN PANEL STYLESHEET
   ========================================================================== */

:root {
  --color-primary: #700f5c;
  --color-primary-rgb: 112, 15, 92;
  --color-primary-hover: #560a47;
  --color-primary-light: #fdf5fd;
  --color-secondary: #700f5c;
  
  /* Rich Harmonious Premium Light Glassmorphism HSL/RGBA Palette */
  --bg-gradient: linear-gradient(135deg, #fdf8fd 0%, #f7edf6 100%);
  --panel-bg: rgba(255, 255, 255, 0.75);
  --panel-border: rgba(112, 15, 92, 0.08);
  --panel-shadow: 0 20px 50px rgba(112, 15, 92, 0.05);
  
  --text-white: #1a0817;
  --text-silver: #4d3a4b;
  --text-muted: #7d657a;
  
  --color-star: #d97706;
  --color-success: #059669;
  --color-warning: #d97706;
  --color-info: #2563eb;
  --color-danger: #dc2626;

  --font-sans: 'Outfit', 'Inter', 'Segoe UI', -apple-system, sans-serif;
  --font-serif: 'Didot', 'Playfair Display', 'Cormorant Garamond', serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Global Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Common Typography & Layouts */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.5px;
}

p {
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.serif-title {
  font-family: var(--font-serif);
  font-weight: 600;
}

.hide {
  display: none !important;
}

/* ==========================================================================
   BUTTONS SYSTEM
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(112, 15, 92, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(112, 15, 92, 0.5);
}

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

.btn-outline {
  background-color: transparent;
  border: 1.5px solid rgba(112, 15, 92, 0.2);
  color: var(--text-white);
}

.btn-outline:hover {
  background-color: rgba(112, 15, 92, 0.05);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-text {
  background: none;
  border: none;
  color: var(--color-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  transition: var(--transition);
}

.btn-text:hover {
  color: var(--text-white);
  text-decoration: underline;
}

.btn-block {
  width: 100%;
}

/* Small actions buttons */
.btn-action-trigger {
  padding: 8px 14px;
  font-size: 11px;
  border-radius: 8px;
  border: 1px solid rgba(112, 15, 92, 0.1);
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--text-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.btn-action-trigger:hover {
  background-color: rgba(112, 15, 92, 0.05);
  border-color: var(--color-primary);
}

.btn-whatsapp-chat {
  background-color: #25d366;
  border-color: #25d366;
  color: #ffffff;
  font-weight: 700;
}

.btn-whatsapp-chat:hover {
  background-color: #20ba5a;
  border-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.25);
}

/* ==========================================================================
   GLASSMORPHISM BASE CARDS
   ========================================================================== */
.glass-card {
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: var(--panel-shadow);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(234, 213, 235, 0.2);
}

/* ==========================================================================
   1. LOGIN PORTAL STYLING
   ========================================================================== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 10;
}

.login-card {
  width: 100%;
  max-width: 440px;
  padding: 40px;
  text-align: center;
}

.login-logo-header {
  margin-bottom: 30px;
}

.logo-flower {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
  animation: float 6s ease-in-out infinite;
}

.login-logo-header h1 {
  font-size: 32px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #700f5c 0%, #1a0817 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-logo-header .subtitle {
  font-size: 13px;
  color: var(--text-silver);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Input Fields Styles */
.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-group label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-silver);
  display: block;
  margin-bottom: 8px;
}

.form-input,
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid var(--panel-border);
  border-radius: 12px;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(112, 15, 92, 0.15);
}

.password-hint {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 6px;
  line-height: 1.4;
}

.error-msg {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ff8585;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 20px;
  text-align: center;
}

/* ==========================================================================
   2. DASHBOARD SUITE LAYOUT
   ========================================================================== */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 100;
  border-radius: 0;
  border-left: none;
  border-top: none;
  border-bottom: none;
  background-color: rgba(255, 255, 255, 0.75);
  border-right: 1px solid var(--panel-border);
}

.sidebar-brand {
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--panel-border);
}

.sidebar-logo {
  font-size: 26px;
}

.sidebar-brand h2 {
  font-size: 20px;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 1px;
}

.sidebar-brand .tag {
  font-size: 9px;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 1px;
  display: block;
  margin-top: 2px;
}

.sidebar-menu {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-silver);
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
}

.menu-item svg {
  color: var(--text-muted);
  transition: var(--transition);
}

.menu-item:hover {
  background-color: rgba(112, 15, 92, 0.04);
  color: var(--color-primary);
}

.menu-item:hover svg {
  color: var(--color-primary);
}

.menu-item.active {
  background-color: rgba(112, 15, 92, 0.08);
  border: 1px solid rgba(112, 15, 92, 0.15);
  color: var(--color-primary);
}

.menu-item.active svg {
  color: var(--color-secondary);
}

.count-badge {
  position: absolute;
  right: 18px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(112, 15, 92, 0.4);
}

.sidebar-footer {
  padding: 24px;
  border-top: 1px solid var(--panel-border);
}

/* Main Workspace */
.main-content {
  flex-grow: 1;
  padding: 40px;
  overflow-y: auto;
  height: 100vh;
}

/* Header Navbar bar */
.dashboard-header {
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.dashboard-header h1 {
  font-size: 28px;
  color: var(--color-primary);
}

.admin-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-silver);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #aaa;
}

.status-dot.online {
  background-color: var(--color-success);
  box-shadow: 0 0 10px var(--color-success);
}

/* Tab panes visibility */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeInUp 0.5s ease-out;
}

/* ==========================================================================
   TAB A: DASHBOARD HUB STYLING
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-box {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-box:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.04);
}

.stat-icon.purple { color: #f2c7ed; background-color: rgba(112, 15, 92, 0.25); }
.stat-icon.orange { color: #fed7aa; background-color: rgba(245, 158, 11, 0.2); }
.stat-icon.blue { color: #bfdbfe; background-color: rgba(59, 130, 246, 0.2); }
.stat-icon.green { color: #bbf7d0; background-color: rgba(16, 185, 129, 0.2); }

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

.stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.stat-desc {
  font-size: 11px;
  color: var(--text-silver);
}

/* Split Grid details */
.dashboard-details-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.detail-card {
  padding: 30px;
}

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

.card-header h3 {
  font-size: 18px;
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--panel-border);
}

.data-table td {
  padding: 16px 18px;
  font-size: 13px;
  border-bottom: 1px solid rgba(234, 213, 235, 0.05);
  color: var(--text-silver);
  vertical-align: middle;
}

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

.data-table tr:hover td {
  background-color: rgba(112, 15, 92, 0.02);
  color: var(--color-primary);
}

.avatar-thumbnail {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Badges styling */
.status-pill {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.status-pill.pending { background-color: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.25); }
.status-pill.in_progress { background-color: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.25); }
.status-pill.completed { background-color: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.25); }
.status-pill.cancelled { background-color: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.25); }

.status-pill.unread { background-color: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.25); }
.status-pill.read { background-color: rgba(255, 255, 255, 0.05); color: var(--text-silver); border: 1px solid rgba(255, 255, 255, 0.08); }

/* Dashboard Recent Inbox List */
.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inbox-item {
  padding: 16px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(112, 15, 92, 0.04);
  transition: var(--transition);
}

.inbox-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
}

.inbox-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.inbox-sender {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.inbox-date {
  font-size: 10px;
  color: var(--text-muted);
}

.inbox-msg-teaser {
  font-size: 12px;
  color: var(--text-silver);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   TAB B: CATALOG PRODUCTS LIST HEADER
   ========================================================================== */
.tab-actions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.select-pill {
  padding: 10px 20px !important;
  border-radius: 50px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  background-color: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  cursor: pointer;
  width: auto !important;
}

/* ==========================================================================
   TAB D & MESSAGES PANEL VIEW
   ========================================================================== */
.inbox-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.message-card {
  padding: 24px;
}

.message-header-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.message-subject-info h3 {
  font-size: 16px;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.message-sender-details {
  font-size: 12px;
  color: var(--text-silver);
  display: flex;
  gap: 16px;
}

.message-body-p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-white);
  white-space: pre-line;
  margin-bottom: 20px;
}

.message-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   TAB E: BOUTIQUE CONFIG PANEL
   ========================================================================== */
.settings-card {
  padding: 40px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.success-banner {
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  padding: 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-top: 20px;
  text-align: center;
  font-weight: 600;
  animation: fadeInUp 0.4s;
}

/* ==========================================================================
   3. MODAL DRAWER OVERLAY
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  transition: var(--transition);
}

.drawer-panel {
  width: 100%;
  max-width: 580px;
  background: linear-gradient(135deg, #ffffff 0%, #fdf8fd 100%);
  border-left: 1px solid var(--panel-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(112, 15, 92, 0.05);
}

.drawer-header {
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--panel-border);
}

.drawer-header h2 {
  font-size: 22px;
  color: var(--color-primary);
}

.close-btn {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.close-btn:hover {
  color: #fff;
}

.drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 30px;
}

.drawer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  border-top: 1px solid var(--panel-border);
  padding: 24px 30px;
  background-color: rgba(0, 0, 0, 0.2);
}

.checkbox-group {
  margin-top: 10px;
}

/* Product image upload widgets styling */
.uploader-container {
  display: flex;
  gap: 20px;
  align-items: center;
}

.image-preview-frame {
  width: 110px;
  height: 135px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: rgba(112, 15, 92, 0.02);
  border: 1.5px solid var(--panel-border);
  flex-shrink: 0;
}

.upload-controls {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.upload-hint {
  font-size: 11px;
  color: var(--text-muted);
}

/* Upload Progress Metrics styling */
.upload-progress-bar-wrap {
  margin-top: 16px;
  background-color: rgba(0,0,0,0.2);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
}

.progress-bar-track {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  background-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
  transition: width 0.3s;
}

.progress-text {
  font-size: 11px;
  color: var(--color-secondary);
  font-weight: 600;
}

/* ==========================================================================
   ANIMATIONS UTILITIES
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.animate-fade-in {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-in {
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Scrollbars overrides */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
}
::-webkit-scrollbar-thumb {
  background: rgba(112, 15, 92, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Responsive constraints adjustments */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-wrapper {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
  }
  .main-content {
    padding: 20px;
  }
  .form-group-row {
    grid-template-columns: 1fr;
  }
}
