/* ============================================
   SEWDANI ADMIN DASHBOARD - MODERN GLASSMORPHISM DESIGN
   One-to-One Clone of Reference Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Dancing+Script:wght@700&display=swap');

:root {
    /* Primary Colors */
    --primary-pink: #e91e8c;
    --primary-pink-light: #f06ba8;
    --primary-pink-pale: #fce4ec;
    --primary-pink-gradient: linear-gradient(135deg, #f8bbd9 0%, #f06ba8 100%);
    
    /* Legacy aliases for backward compatibility */
    --primary-color: #e91e8c;
    --primary-dark: #c2185b;
    --primary-light: #f8bbd9;
    
    /* Status Colors */
    --success-color: #2e7d32;
    --warning-color: #f57f17;
    --danger-color: #c62828;
    
    /* Background Colors */
    --bg-gradient: linear-gradient(135deg, #fce4ec 0%, #e8f5e9 25%, #e3f2fd 50%, #fce4ec 75%, #fff3e0 100%);
    --bg-main: linear-gradient(180deg, #fef0f5 0%, #fdf2f8 50%, #fef7f0 100%);
    
    /* Card & Surface Colors */
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --card-border: rgba(255, 255, 255, 0.8);
    
    /* Sidebar Glassmorphism */
    --sidebar-bg: linear-gradient(180deg, 
        rgba(252, 228, 236, 0.85) 0%, 
        rgba(248, 187, 217, 0.75) 30%,
        rgba(240, 107, 168, 0.65) 60%,
        rgba(233, 30, 140, 0.55) 100%);
    --sidebar-blur: blur(20px);
    --sidebar-width: 240px;
    
    /* Text Colors */
    --text-dark: #1a1a2e;
    --text-medium: #4a4a5a;
    --text-light: #8a8a9a;
    --text-white: #ffffff;
    
    /* Button Colors */
    --btn-edit-bg: #f8bbd9;
    --btn-edit-text: #c2185b;
    --btn-delete-bg: transparent;
    --btn-delete-border: #e0e0e0;
    --btn-delete-text: #757575;
    
    /* Misc */
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 12px;
    --border-radius-xs: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */

.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-main);
    position: relative;
}

/* ============================================
   SIDEBAR - GLASSMORPHISM STYLE
   ============================================ */

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    background: var(--sidebar-bg);
    backdrop-filter: var(--sidebar-blur);
    -webkit-backdrop-filter: var(--sidebar-blur);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><linearGradient id="g" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1)"/><stop offset="100%" style="stop-color:rgba(255,255,255,0)"/></linearGradient></defs><rect fill="url(%23g)" width="100" height="100"/></svg>');
    pointer-events: none;
    z-index: -1;
}

/* Sidebar Header / Logo */
.sidebar-header {
    padding: 28px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-header h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-pink);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-header h2::before {
    content: '✂';
    font-size: 1.4rem;
}

.sidebar-header p {
    display: none;
}

/* Sidebar Menu */
.sidebar-menu {
    padding: 20px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    margin-bottom: 4px;
    border-radius: var(--border-radius-sm);
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
}

.menu-item.active {
    background: var(--primary-pink);
    color: var(--text-white);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
}

.menu-item.active:hover {
    transform: none;
    background: var(--primary-pink);
}

.menu-item i {
    width: 22px;
    margin-right: 14px;
    font-size: 1.1rem;
    text-align: center;
}

/* Sidebar Footer Items (Settings, Logout) */
.sidebar-menu .menu-item:nth-last-child(1),
.sidebar-menu .menu-item:nth-last-child(2) {
    margin-top: auto;
}

.sidebar-menu .menu-item:last-child {
    margin-top: 8px;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    gap: 24px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    padding: 8px;
    border-radius: var(--border-radius-xs);
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 480px;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-container input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text-dark);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-container input::placeholder {
    color: var(--text-light);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-pink-light);
    box-shadow: 0 4px 16px rgba(233, 30, 140, 0.1);
}

.search-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
}

/* Header Right Side */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-medium);
    font-size: 1.2rem;
    transition: var(--transition);
    position: relative;
    border: none;
    cursor: pointer;
}

.header-icon:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-pink);
}

.header-icon .badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary-pink);
    border-radius: 50%;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 8px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.9);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-pink-pale);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.user-info i {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Hide old page title from header */
.page-title {
    display: none;
}

.user-actions {
    display: none;
}

/* ============================================
   CONTENT WRAPPER
   ============================================ */

.content-wrapper {
    padding: 32px;
    flex: 1;
}

/* Page Title Section */
.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.page-header .subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Sort/Filter Controls */
.controls-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 24px;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.sort-dropdown select {
    padding: 8px 32px 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-xs);
    background: var(--card-bg);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* ============================================
   PRODUCT CARDS GRID
   ============================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Drag Handle */
.product-card .drag-handle {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: grab;
    opacity: 0.5;
    transition: var(--transition);
    z-index: 10;
}

.product-card:hover .drag-handle {
    opacity: 1;
}

.product-card .drag-handle:active {
    cursor: grabbing;
}

/* Product Image */
.product-card .product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #fef0f5 0%, #fff5f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.product-card .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Product Info */
.product-card .product-info {
    padding: 20px;
}

.product-card .product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}

.product-card .current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-pink);
}

.product-card .original-price {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
}

/* Product Actions */
.product-card .product-actions {
    display: flex;
    gap: 12px;
}

.btn-edit,
.btn-delete {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--border-radius-xs);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-edit {
    background: var(--btn-edit-bg);
    color: var(--btn-edit-text);
    border: none;
}

.btn-edit:hover {
    background: #f48fb1;
    transform: translateY(-2px);
}

.btn-delete {
    background: var(--btn-delete-bg);
    color: var(--btn-delete-text);
    border: 1px solid var(--btn-delete-border);
}

.btn-delete:hover {
    background: #ffebee;
    border-color: #ef9a9a;
    color: #c62828;
}

/* ============================================
   ALERTS / NOTIFICATIONS
   ============================================ */

.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.alert i {
    font-size: 1.2rem;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-danger {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.alert-warning {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #f57f17;
    border: 1px solid #ffe082;
}

/* ============================================
   FORMS
   ============================================ */

.edit-form,
.new-product-form {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.edit-form h2,
.new-product-form h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-pink-pale);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background: #fafafa;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-pink);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(233, 30, 140, 0.1);
}

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

/* General form-control class for inputs */
.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background: #fafafa;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-pink);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(233, 30, 140, 0.1);
}

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

input[type="date"].form-control,
input[type="datetime-local"].form-control {
    cursor: pointer;
}

/* Text muted helper class */
.text-muted {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
    display: block;
}

small.text-muted {
    display: block;
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Checkbox Styling */
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500 !important;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-pink);
    cursor: pointer;
}

/* File Input */
.file-input {
    padding: 12px !important;
    border: 2px dashed rgba(0, 0, 0, 0.15) !important;
    background: #fafafa !important;
    cursor: pointer;
}

.file-input:hover {
    border-color: var(--primary-pink) !important;
    background: var(--primary-pink-pale) !important;
}

/* Section Titles in Forms */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 28px 0 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Info Text */
.info-text {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 6px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: var(--primary-pink);
    color: white;
}

.btn:hover {
    background: var(--primary-pink-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(233, 30, 140, 0.3);
}

.secondary-btn {
    background: #f5f5f5;
    color: var(--text-medium);
}

.secondary-btn:hover {
    background: #eeeeee;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

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

.delete-btn:hover {
    background: #ffcdd2;
}

.buttons-container {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-medium);
    font-weight: 500;
    margin-bottom: 20px;
    transition: var(--transition);
}

.back-link::before {
    content: '←';
    font-size: 1.2rem;
}

.back-link:hover {
    color: var(--primary-pink);
}

/* ============================================
   IMAGE MANAGER
   ============================================ */

.image-manager {
    margin: 20px 0;
}

.image-manager h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.image-item {
    position: relative;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.image-item .image-path {
    display: block;
    padding: 8px;
    font-size: 0.75rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

.image-delete-toggle {
    display: flex;
    cursor: pointer;
}

.image-delete-toggle input {
    display: none;
}

.image-delete-toggle .delete-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-light);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-delete-toggle:hover .delete-icon {
    background: #ffebee;
    color: #c62828;
}

.image-delete-toggle input:checked + .delete-icon {
    background: #c62828;
    color: white;
}

/* ============================================
   DETAIL ITEMS
   ============================================ */

.detail-items-container {
    margin-bottom: 12px;
}

.detail-item-row {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.detail-item {
    flex: 1;
}

.remove-detail-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius-xs);
    border: 1px solid #ef9a9a;
    background: #ffebee;
    color: #c62828;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.remove-detail-btn:hover {
    background: #c62828;
    color: white;
}

.add-detail-btn {
    padding: 10px 20px;
    background: var(--primary-pink-pale);
    color: var(--primary-pink);
    border: none;
    border-radius: var(--border-radius-xs);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.add-detail-btn:hover {
    background: var(--primary-pink);
    color: white;
}

/* ============================================
   STATISTICS CARDS
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--primary-pink-pale);
    color: var(--primary-pink);
}

.stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.stat-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* ============================================
   CHARTS
   ============================================ */

/* Chart Grid Layout */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 1200px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }
}

.chart-container {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    /* Fixed height to prevent infinite growth */
    min-height: 350px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.chart-container h3,
.chart-container .chart-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.chart-container .chart-title i {
    color: var(--primary-color);
}

/* Chart canvas wrapper - critical for preventing infinite growth */
.chart-wrapper {
    height: 280px;
    max-height: 300px;
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Canvas element inside chart container */
.chart-container canvas,
.chart-wrapper canvas,
.chart-canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: 280px !important;
}

/* Single chart container (not in grid) */
.chart-container.chart-single {
    max-height: 450px;
}

.chart-container.chart-single canvas {
    max-height: 380px !important;
}

/* ============================================
   TABLES
   ============================================ */

.table-container {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

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

th, td {
    padding: 16px 20px;
    text-align: left;
}

th {
    background: #fafafa;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-medium);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.95rem;
}

tr:hover {
    background: rgba(233, 30, 140, 0.02);
}

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

/* ============================================
   MODAL STYLES
   ============================================ */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal {
    background: white;
    border-radius: var(--border-radius-lg);
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.close-modal {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-medium);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.close-modal:hover {
    background: rgba(198, 40, 40, 0.1);
    color: var(--danger-color);
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    color: var(--text-medium);
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-footer form {
    display: inline;
}

/* ============================================
   PRODUCT LIST (DRAG & DROP)
   ============================================ */

.product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-list-item {
    background: var(--card-bg);
    border-radius: var(--border-radius-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.product-list-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.product-list-item.sortable-ghost {
    opacity: 0.5;
    background: var(--primary-pink-pale);
}

.product-list-item.sortable-chosen {
    box-shadow: 0 8px 24px rgba(233, 30, 140, 0.2);
}

.product-list-item .drag-handle {
    color: var(--text-light);
    cursor: grab;
    font-size: 1.2rem;
}

.product-list-item .product-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-xs);
    object-fit: cover;
    background: #fafafa;
}

.product-list-item .product-details {
    flex: 1;
}

.product-list-item .product-name {
    font-weight: 600;
    color: var(--text-dark);
}

.product-list-item .product-category {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient);
    padding: 20px;
}

.login-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

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

.login-logo {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
}

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

.login-form .form-control {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: #fafafa;
    transition: var(--transition);
}

.login-form .form-control:focus {
    outline: none;
    border-color: var(--primary-pink);
    background: white;
    box-shadow: 0 0 0 4px rgba(233, 30, 140, 0.1);
}

.login-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-pink);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover {
    background: var(--primary-pink-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(233, 30, 140, 0.3);
}

.login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header {
        padding: 0 16px;
    }
    
    .header-search {
        display: none;
    }
    
    .content-wrapper {
        padding: 20px 16px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .buttons-container {
        flex-direction: column;
    }
    
    .buttons-container .btn {
        width: 100%;
    }
    
    .user-name {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.product-card,
.stat-card,
.chart-container {
    animation: fadeIn 0.4s ease-out;
}

/* Stagger animation for grid items */
.products-grid .product-card:nth-child(1) { animation-delay: 0.05s; }
.products-grid .product-card:nth-child(2) { animation-delay: 0.1s; }
.products-grid .product-card:nth-child(3) { animation-delay: 0.15s; }
.products-grid .product-card:nth-child(4) { animation-delay: 0.2s; }
.products-grid .product-card:nth-child(5) { animation-delay: 0.25s; }
.products-grid .product-card:nth-child(6) { animation-delay: 0.3s; }

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Sidebar scrollbar */
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   SOLD OUT BADGE
   ============================================ */

.sold-out-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #c62828;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
}

.sold-out-status {
    font-weight: 500;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-medium);
}

.empty-state p {
    font-size: 0.95rem;
}

/* ============================================
   ADD NEW PRODUCT BUTTON
   ============================================ */

.add-product-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-pink);
    color: white;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    text-decoration: none;
}

.add-product-btn:hover {
    background: var(--primary-pink-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(233, 30, 140, 0.3);
}

.add-product-btn i {
    font-size: 1rem;
}

/* ============================================
   STATS CARDS - FOR ANALYTICS & OTHER PAGES
   ============================================ */

.stats-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    text-align: left;
    transition: var(--transition);
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.stats-card > i {
    font-size: 2rem;
    color: var(--primary-pink);
    opacity: 0.9;
}

.stats-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stats-icon i {
    font-size: 1.5rem;
    color: white;
}

.stats-info {
    flex: 1;
}

.stats-card .stats-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.stats-card .stats-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 4px;
}

.stats-card .stats-change {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 8px;
}

/* ============================================
   TABS NAVIGATION
   ============================================ */

.tabs-container {
    margin-bottom: 30px;
}

.tabs-nav {
    display: flex;
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    flex-wrap: wrap;
}

.tab-button {
    flex: 1;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 120px;
    font-family: inherit;
    font-size: 0.95rem;
}

.tab-button:hover {
    background: rgba(233, 30, 140, 0.05);
    color: var(--primary-pink);
}

.tab-button.active {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.1), rgba(248, 187, 217, 0.2));
    color: var(--primary-pink);
    font-weight: 600;
    border-bottom: 3px solid var(--primary-pink);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

/* ============================================
   CARDS FOR ORDERS, BLOG POSTS, ETC.
   ============================================ */

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transition: var(--transition);
}

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

.card-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(to right, rgba(254, 240, 245, 0.5), rgba(255, 255, 255, 0.5));
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: var(--primary-pink);
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #fafafa;
}

/* ============================================
   BADGE STYLES
   ============================================ */

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-success {
    background: rgba(46, 125, 50, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background: rgba(245, 127, 23, 0.1);
    color: var(--warning-color);
}

.badge-danger {
    background: rgba(198, 40, 40, 0.1);
    color: var(--danger-color);
}

.badge-primary {
    background: rgba(233, 30, 140, 0.1);
    color: var(--primary-pink);
}

.badge-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-medium);
}

/* ============================================
   FILTER CONTROLS
   ============================================ */

.filter-controls {
    background: var(--card-bg);
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.filter-select {
    padding: 10px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-xs);
    font-size: 0.9rem;
    color: var(--text-dark);
    background: #fafafa;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 4px rgba(233, 30, 140, 0.1);
}

/* ============================================
   ACTION BUTTONS (SMALL)
   ============================================ */

.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: var(--border-radius-xs);
}

.btn-primary {
    background: var(--primary-pink);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-pink-light);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background: rgba(198, 40, 40, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(198, 40, 40, 0.2);
}

.btn-danger:hover {
    background: var(--danger-color);
    color: white;
}

.btn-success {
    background: rgba(46, 125, 50, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.btn-success:hover {
    background: var(--success-color);
    color: white;
}

.btn-warning {
    background: rgba(245, 127, 23, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(245, 127, 23, 0.2);
}

.btn-warning:hover {
    background: var(--warning-color);
    color: white;
}

/* Icon Buttons (for actions in tables) */
.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-medium);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-icon:hover {
    background: rgba(233, 30, 140, 0.1);
    color: var(--primary-pink);
    transform: translateY(-2px);
}

.btn-icon.delete {
    background: rgba(198, 40, 40, 0.08);
    color: var(--danger-color);
}

.btn-icon.delete:hover {
    background: var(--danger-color);
    color: white;
}

.action-buttons-small {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Table responsive wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ============================================
   LAYOUT HELPERS
   ============================================ */

.layout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* ============================================
   POST/BLOG CARDS
   ============================================ */

.post-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.post-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #fef0f5 0%, #fff5f8 100%);
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.post-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-status.published {
    background: rgba(46, 125, 50, 0.1);
    color: var(--success-color);
}

.post-status.draft {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-medium);
}

/* ============================================
   ORDER CARDS
   ============================================ */

.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.order-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transition: var(--transition);
}

.order-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.order-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, rgba(254, 240, 245, 0.5), rgba(255, 255, 255, 0.5));
}

.order-ref {
    font-weight: 600;
    color: var(--primary-pink);
}

.order-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.order-content {
    padding: 20px;
}

.customer-info {
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.customer-info strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-dark);
}

/* ============================================
   INVOICE STYLES
   ============================================ */

.invoice-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.items-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: 20px;
}

.items-table th {
    text-align: left;
    padding: 12px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
}

.items-table td {
    background: #fafafa;
    padding: 12px;
    vertical-align: middle;
}

.items-table tr.item-row td:first-child {
    border-top-left-radius: var(--border-radius-xs);
    border-bottom-left-radius: var(--border-radius-xs);
}

.items-table tr.item-row td:last-child {
    border-top-right-radius: var(--border-radius-xs);
    border-bottom-right-radius: var(--border-radius-xs);
}

.item-input {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-xs);
    padding: 10px 12px;
    width: 100%;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.item-input:focus {
    border-color: var(--primary-pink);
    outline: none;
    box-shadow: 0 0 0 4px rgba(233, 30, 140, 0.1);
}

.totals-preview {
    background: linear-gradient(135deg, rgba(254, 240, 245, 0.5), rgba(255, 255, 255, 0.5));
    padding: 25px;
    border-radius: var(--border-radius-sm);
    margin-top: 30px;
    border: 1px solid rgba(233, 30, 140, 0.1);
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.total-row.grand-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-pink);
    padding-top: 12px;
    border-top: 2px solid rgba(233, 30, 140, 0.2);
    margin-top: 12px;
}

/* ============================================
   PROMO CODE STYLES
   ============================================ */

.code-display {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-pink);
    background: rgba(233, 30, 140, 0.1);
    padding: 6px 12px;
    border-radius: var(--border-radius-xs);
}

.progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-pink);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ============================================
   COMMENTS STYLES
   ============================================ */

.comment-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-pink-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.comment-meta {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    color: var(--text-dark);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.comment-content {
    color: var(--text-medium);
    line-height: 1.6;
}

/* ============================================
   CATEGORY MANAGEMENT STYLES
   ============================================ */

.category-item {
    background: var(--card-bg);
    border-radius: var(--border-radius-sm);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.category-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.category-drag-handle {
    cursor: grab;
    color: var(--text-light);
    margin-right: 16px;
    font-size: 1.2rem;
}

.category-drag-handle:hover {
    color: var(--primary-pink);
}

.category-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-xs);
    overflow: hidden;
    margin-right: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sortable ghost/chosen states */
.sortable-ghost {
    opacity: 0.5;
    background: var(--primary-pink-pale);
}

.sortable-chosen {
    box-shadow: 0 8px 24px rgba(233, 30, 140, 0.2);
}

/* ============================================
   PROJECT CARDS
   ============================================ */

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #fef0f5 0%, #fff5f8 100%);
}

.project-info {
    padding: 20px;
}

.project-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fce4ec 0%, #fff5f8 50%, #f8e1f4 100%);
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(233, 30, 140, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.8);
}

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

.login-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.login-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
}

.login-form {
    margin-top: 24px;
}

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

.login-form .form-control {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.login-form .form-control:focus {
    border-color: var(--primary-pink);
    background: white;
    box-shadow: 0 0 0 4px rgba(233, 30, 140, 0.1);
    outline: none;
}

.login-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
    transition: color 0.3s;
}

.login-form .form-control:focus + .login-icon,
.login-form .form-group:focus-within .login-icon {
    color: var(--primary-pink);
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-pink), #f06292);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(233, 30, 140, 0.35);
}

.login-footer {
    text-align: center;
    margin-top: 32px;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ============================================
   SEARCH DROPDOWN STYLES
   ============================================ */

.search-container {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

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

.search-result-item:hover {
    background: rgba(233, 30, 140, 0.05);
}

.search-result-item i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fce4ec, #fff);
    border-radius: 10px;
    color: var(--primary-pink);
    font-size: 0.9rem;
}

.search-result-item span {
    font-weight: 500;
}

.search-no-results {
    padding: 24px;
    text-align: center;
    color: var(--text-light);
}

/* ============================================
   DASHBOARD SPECIFIC STYLES
   ============================================ */

.welcome-banner {
    background: linear-gradient(135deg, var(--primary-pink), #f06292);
    border-radius: 20px;
    padding: 32px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    box-shadow: 0 10px 40px rgba(233, 30, 140, 0.25);
}

.welcome-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.welcome-content p {
    opacity: 0.9;
    font-size: 1rem;
}

.welcome-date {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-actions {
    margin-bottom: 28px;
}

.quick-actions h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-actions h2 i {
    color: var(--primary-pink);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.action-card {
    background: white;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(233, 30, 140, 0.12);
    border-color: rgba(233, 30, 140, 0.2);
}

.action-card i {
    font-size: 1.75rem;
    color: var(--primary-pink);
    margin-bottom: 12px;
    display: block;
}

.action-card span {
    font-weight: 500;
    font-size: 0.9rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

.dashboard-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.dashboard-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-card .card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-card .card-header h3 i {
    color: var(--primary-pink);
}

.view-all {
    color: var(--primary-pink);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}

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

.dashboard-card .card-body {
    padding: 16px 24px 24px;
}

.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 2.5rem;
    opacity: 0.3;
    margin-bottom: 12px;
}

.empty-state p {
    margin-bottom: 16px;
}

.btn-small {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-pink);
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-small:hover {
    background: var(--primary-dark);
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 10px;
    transition: background 0.2s;
}

.recent-item:hover {
    background: #f5f5f5;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-info strong {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.item-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-meta .amount {
    font-weight: 600;
    color: var(--text-dark);
}

.item-meta .status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

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

.status-completed, .status-published {
    background: #e8f5e9;
    color: #2e7d32;
}

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

.status-draft {
    background: #f5f5f5;
    color: #616161;
}

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

.edit-link {
    color: var(--text-light);
    padding: 4px;
    transition: color 0.2s;
}

.edit-link:hover {
    color: var(--primary-pink);
}

/* ============================================
   PROMO MANAGEMENT STYLES
   ============================================ */

.promo-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
    transition: all 0.3s;
}

.promo-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.promo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.promo-code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-pink);
    background: #fce4ec;
    padding: 8px 16px;
    border-radius: 8px;
    letter-spacing: 1px;
}

.promo-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.promo-status.inactive {
    background: #f5f5f5;
    color: #616161;
}

.promo-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.promo-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.promo-detail label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-detail span {
    font-weight: 600;
    color: var(--text-dark);
}

.promo-actions {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ============================================
   EDIT FORM STYLING
   ============================================ */

.edit-form {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 28px;
}

.edit-form h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.edit-form .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-pink);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.edit-form .back-link:hover {
    text-decoration: underline;
}

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

.edit-form .form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.edit-form input[type="text"],
.edit-form input[type="number"],
.edit-form input[type="email"],
.edit-form input[type="url"],
.edit-form input[type="date"],
.edit-form input[type="file"],
.edit-form textarea,
.edit-form select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.edit-form input:focus,
.edit-form textarea:focus,
.edit-form select:focus {
    outline: none;
    border-color: var(--primary-pink);
    background: white;
    box-shadow: 0 0 0 4px rgba(233, 30, 140, 0.1);
}

.edit-form textarea {
    min-height: 120px;
    resize: vertical;
}

.edit-form .info-text {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
}

.edit-form .image-preview {
    margin: 16px 0;
}

.edit-form .image-preview img {
    max-width: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.edit-form .buttons-container {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ============================================
   CARD GRID FOR PROJECTS
   ============================================ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.project-card .drag-handle {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: var(--text-light);
}

.project-card .drag-handle:hover {
    color: var(--primary-pink);
    background: white;
}

.project-card .product-image {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #fce4ec, #fff);
}

.project-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .product-image img {
    transform: scale(1.05);
}

.project-card .product-details {
    padding: 20px;
}

.project-card .product-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.project-card .product-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

/* ============================================
   DATA TABLES
   ============================================ */

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

.data-table th {
    background: #fafafa;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.data-table td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.95rem;
    color: var(--text-dark);
}

.data-table tr:hover {
    background: rgba(233, 30, 140, 0.02);
}

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

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(to right, rgba(254, 240, 245, 0.5), rgba(255, 255, 255, 0.5));
}

.table-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-header h2 i {
    color: var(--primary-pink);
}

/* ============================================
   ANALYTICS PAGE SPECIFIC
   ============================================ */

.realtime-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.realtime-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.realtime-section .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: none;
}

.realtime-section .section-title i {
    color: var(--primary-pink);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.realtime-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 992px) {
    .realtime-grid {
        grid-template-columns: 1fr;
    }
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #fafafa;
    border-radius: 10px;
    transition: background 0.2s;
}

.activity-item:hover {
    background: #f5f5f5;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-pink), #f06292);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
    min-width: 0;
}

.activity-location {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.activity-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* Progress bars for traffic sources */
.progress-item {
    margin-bottom: 16px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-pink), #f06292);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Visitor Table */
.visitors-table {
    width: 100%;
    border-collapse: collapse;
}

.visitors-table th {
    background: #fafafa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.visitors-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.9rem;
}

.visitors-table tr:hover {
    background: rgba(233, 30, 140, 0.02);
}

/* Map Container */
.map-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.map-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-title i {
    color: var(--primary-pink);
}

.map-stats {
    display: flex;
    gap: 24px;
}

.map-stat {
    text-align: center;
}

.map-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-pink);
}

.map-stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#visitor-map {
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-light);
}

.map-loading i {
    font-size: 2rem;
    color: var(--primary-pink);
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
    display: block;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.map-loading-text {
    font-size: 0.9rem;
}

/* ============================================
   COMMENTS PAGE
   ============================================ */

.comment-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.comment-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-pink), #f06292);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.comment-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.comment-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.comment-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

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

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

.comment-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 14px;
    padding: 14px;
    background: #fafafa;
    border-radius: 10px;
}

.comment-post {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 14px;
}

.comment-post a {
    color: var(--primary-pink);
    text-decoration: none;
}

.comment-post a:hover {
    text-decoration: underline;
}

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

/* ============================================
   INVOICE PAGE
   ============================================ */

.invoice-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.invoice-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary-pink-pale);
    display: flex;
    align-items: center;
    gap: 10px;
}

.invoice-card h3 i {
    color: var(--primary-pink);
}

.invoice-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.items-table th {
    background: #fafafa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-medium);
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.items-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.items-table input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fafafa;
}

.items-table input:focus {
    outline: none;
    border-color: var(--primary-pink);
    background: white;
}

/* ============================================
   NO PRODUCTS / EMPTY STATE
   ============================================ */

.no-products {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.no-products i {
    font-size: 4rem;
    color: var(--primary-pink-pale);
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.no-products p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   SORTABLE STYLING
   ============================================ */

.sortable-ghost {
    opacity: 0.4;
}

.sortable-chosen {
    background: rgba(233, 30, 140, 0.05) !important;
}

.sortable-drag {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* ============================================
   MOBILE RESPONSIVE FIXES
   ============================================ */

@media (max-width: 768px) {
    .edit-form {
        padding: 20px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .invoice-row {
        grid-template-columns: 1fr;
    }
    
    .comment-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .data-table {
        font-size: 0.85rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }
}
