/* InfluLenz Theme and Core Design Tokens */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

html {
    font-size: 85% !important;
}

/* Light Theme (Default Rose/Pink) */
:root, [data-theme="light"], [data-theme="light-pink"] {
    --bg-primary: #fff5f7;
    --bg-sidebar: rgba(255, 255, 255, 0.7);
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-dropdown: #ffffff;
    --bg-input: rgba(255, 255, 255, 0.4);
    --border-glass: rgba(255, 255, 255, 0.3);
    --text-primary: #2b2b2b;
    --text-muted: #6c757d;
    --accent-color: #ff527b;
    --accent-hover: #e04167;
    --accent-soft: rgba(255, 82, 123, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(255, 107, 139, 0.08);
    --sidebar-width: 220px;
    --border-color: rgba(255, 107, 139, 0.15);
}

/* Light Violet */
[data-theme="light-violet"], [data-theme="violet"] {
    --bg-primary: #f8f5ff;
    --bg-sidebar: rgba(255, 255, 255, 0.7);
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-dropdown: #ffffff;
    --bg-input: rgba(255, 255, 255, 0.4);
    --border-glass: rgba(255, 255, 255, 0.3);
    --text-primary: #2b2b2b;
    --text-muted: #6c757d;
    --accent-color: #8f52ff;
    --accent-hover: #7a3de0;
    --accent-soft: rgba(143, 82, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(143, 82, 255, 0.08);
    --sidebar-width: 220px;
    --border-color: rgba(143, 82, 255, 0.15);
}

/* Light Blue */
[data-theme="light-blue"], [data-theme="blue"] {
    --bg-primary: #f0f7ff;
    --bg-sidebar: rgba(255, 255, 255, 0.7);
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-dropdown: #ffffff;
    --bg-input: rgba(255, 255, 255, 0.4);
    --border-glass: rgba(255, 255, 255, 0.3);
    --text-primary: #2b2b2b;
    --text-muted: #6c757d;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --accent-soft: rgba(59, 130, 246, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(59, 130, 246, 0.08);
    --sidebar-width: 220px;
    --border-color: rgba(59, 130, 246, 0.15);
}

/* Light Green */
[data-theme="light-green"], [data-theme="green"] {
    --bg-primary: #f0fdf4;
    --bg-sidebar: rgba(255, 255, 255, 0.7);
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-dropdown: #ffffff;
    --bg-input: rgba(255, 255, 255, 0.4);
    --border-glass: rgba(255, 255, 255, 0.3);
    --text-primary: #2b2b2b;
    --text-muted: #6c757d;
    --accent-color: #10b981;
    --accent-hover: #059669;
    --accent-soft: rgba(16, 185, 129, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(16, 185, 129, 0.08);
    --sidebar-width: 220px;
    --border-color: rgba(16, 185, 129, 0.15);
}

/* Light Orange */
[data-theme="light-orange"], [data-theme="orange"] {
    --bg-primary: #fffaf7;
    --bg-sidebar: rgba(255, 255, 255, 0.7);
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-dropdown: #ffffff;
    --bg-input: rgba(255, 255, 255, 0.4);
    --border-glass: rgba(255, 255, 255, 0.3);
    --text-primary: #2b2b2b;
    --text-muted: #6c757d;
    --accent-color: #f97316;
    --accent-hover: #ea580c;
    --accent-soft: rgba(249, 115, 22, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(249, 115, 22, 0.08);
    --sidebar-width: 220px;
    --border-color: rgba(249, 115, 22, 0.15);
}

/* Light Red */
[data-theme="light-red"], [data-theme="red"] {
    --bg-primary: #fef2f2;
    --bg-sidebar: rgba(255, 255, 255, 0.7);
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-dropdown: #ffffff;
    --bg-input: rgba(255, 255, 255, 0.4);
    --border-glass: rgba(255, 255, 255, 0.3);
    --text-primary: #2b2b2b;
    --text-muted: #6c757d;
    --accent-color: #ef4444;
    --accent-hover: #dc2626;
    --accent-soft: rgba(239, 68, 68, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(239, 68, 68, 0.08);
    --sidebar-width: 220px;
    --border-color: rgba(239, 68, 68, 0.15);
}

/* Light Grey / Black */
[data-theme="light-black"], [data-theme="black"] {
    --bg-primary: #f3f4f6;
    --bg-sidebar: rgba(255, 255, 255, 0.7);
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-dropdown: #ffffff;
    --bg-input: rgba(255, 255, 255, 0.4);
    --border-glass: rgba(255, 255, 255, 0.3);
    --text-primary: #2b2b2b;
    --text-muted: #6c757d;
    --accent-color: #4b5563;
    --accent-hover: #374151;
    --accent-soft: rgba(75, 85, 99, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(75, 85, 99, 0.08);
    --sidebar-width: 220px;
    --border-color: rgba(75, 85, 99, 0.15);
}

/* Light Brown */
[data-theme="light-brown"], [data-theme="brown"] {
    --bg-primary: #faf6f0;
    --bg-sidebar: rgba(255, 255, 255, 0.7);
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-dropdown: #ffffff;
    --bg-input: rgba(255, 255, 255, 0.4);
    --border-glass: rgba(255, 255, 255, 0.3);
    --text-primary: #2b2b2b;
    --text-muted: #6c757d;
    --accent-color: #8b5a2b;
    --accent-hover: #704720;
    --accent-soft: rgba(139, 90, 43, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(139, 90, 43, 0.08);
    --sidebar-width: 220px;
    --border-color: rgba(139, 90, 43, 0.15);
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem; /* Clean, modern body size */
    line-height: 1.5;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.glass-panel:hover {
    box-shadow: 0 12px 40px 0 rgba(255, 107, 139, 0.15);
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: var(--bg-sidebar);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid var(--border-glass);
    transition: all 0.3s ease;
    overflow-x: hidden;
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 30px;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Desktop Sidebar collapse behaviors (width 70px) */
@media (min-width: 768px) {
    .sidebar.collapsed {
        width: 70px !important;
        left: 0 !important;
    }
    
    .sidebar.collapsed .sidebar-text {
        display: none !important;
    }
    
    .sidebar.collapsed .sidebar-header-info {
        display: none !important;
    }
    
    .sidebar.collapsed .sidebar-footer {
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center !important;
    }
    
    .sidebar.collapsed .sidebar-footer .d-flex {
        justify-content: center !important;
    }
    
    .sidebar.collapsed .fa-chevron-down {
        display: none !important;
    }
    
    .sidebar.collapsed .collapse:not(.show) {
        display: none !important;
    }

    .sidebar.collapsed .collapse {
        padding-left: 0 !important;
    }

    .sidebar.collapsed .collapse .nav-link {
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center;
    }

    .sidebar.collapsed .collapse .nav-link i {
        margin-right: 0 !important;
        font-size: 1.05rem;
    }
    
    .sidebar.collapsed .nav-link {
        text-align: center;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .sidebar.collapsed .nav-link i {
        margin-right: 0 !important;
        font-size: 1.15rem;
    }
    
    .main-content.expanded {
        margin-left: 70px !important;
    }
}

/* Mobile Sidebar drawer behaviors (slide-out 260px) */
@media (max-width: 767.98px) {
    .sidebar {
        left: -260px;
    }
    
    .sidebar.collapsed {
        left: 0 !important;
        width: 260px !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .main-content.expanded {
        margin-left: 0 !important;
    }
}

/* Buttons */
.btn {
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    box-shadow: none !important;
}

.btn-pink {
    background-color: var(--accent-color);
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.1px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-pink:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
    box-shadow: none;
}

.btn-pink:active {
    opacity: 0.9;
}

.btn-outline-pink {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.1px;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-outline-pink:hover {
    background-color: var(--accent-soft);
    color: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: none;
}

/* Spinner Loader Animation */
.animate-spin {
    animation: spin 0.8s linear infinite;
    display: inline-block;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Right Drawer Module */
.right-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: var(--bg-primary);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 1050;
    transition: right 0.3s ease-in-out;
    border-left: 1px solid var(--border-glass);
    padding: 30px;
    overflow-y: auto;
}

.right-drawer.open {
    right: 0;
}

/* Custom Table Design */
.table-container {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: var(--accent-soft);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 14px;
}

.table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.form-control, .form-select, textarea {
    background-color: var(--bg-input) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary) !important;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-control:focus, .form-select:focus, textarea:focus {
    background-color: var(--bg-dropdown) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 0.25rem var(--accent-soft) !important;
    color: var(--text-primary) !important;
}

/* Montserrat Heading Accents */
h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
h5 { font-size: 0.95rem; font-weight: 600; }
h6 { font-size: 0.85rem; font-weight: 600; }

.text-pink {
    color: var(--accent-color) !important;
}

/* Badge status custom colors */
.badge-status {
    padding: 5px 12px 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.badge-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-active { background: transparent !important; padding: 0 !important; color: #198754; font-weight: 500; font-size: 0.85rem; }
.badge-active::before { background: #198754; box-shadow: 0 0 6px rgba(25, 135, 84, 0.6); }
.badge-pending { background: #fff3cd; color: #664d03; }
.badge-pending::before { background: #d97706; }
.badge-suspended { background: #f8d7da; color: #842029; }
.badge-suspended::before { background: #dc3545; }
.badge-disabled { background: #e2e3e5; color: #41464b; }
.badge-disabled::before { background: #6c757d; }
.badge-locked { background: #cfe2ff; color: #084298; }
.badge-locked::before { background: #084298; }

/* Campaign statuses with dot indicators (no pill background) */
.badge-live { background: transparent !important; padding: 0 !important; color: #198754; font-weight: 500; font-size: 0.85rem; }
.badge-live::before { background: #198754; box-shadow: 0 0 6px rgba(25, 135, 84, 0.6); }
.badge-ended { background: transparent !important; padding: 0 !important; color: #6c757d; font-weight: 500; font-size: 0.85rem; }
.badge-ended::before { background: #6c757d; }
.badge-draft { background: transparent !important; padding: 0 !important; color: #cc9a06; font-weight: 500; font-size: 0.85rem; }
.badge-draft::before { background: #ffc107; box-shadow: 0 0 6px rgba(255, 193, 7, 0.5); }
.badge-upcoming { background: transparent !important; padding: 0 !important; color: #0d6efd; font-weight: 500; font-size: 0.85rem; }
.badge-upcoming::before { background: #0d6efd; box-shadow: 0 0 6px rgba(13, 110, 253, 0.5); }
.badge-completed { background: transparent !important; padding: 0 !important; color: #6c757d; font-weight: 500; font-size: 0.85rem; }
.badge-completed::before { background: #6c757d; }
.badge-cancelled { background: transparent !important; padding: 0 !important; color: #dc3545; font-weight: 500; font-size: 0.85rem; }
.badge-cancelled::before { background: #dc3545; box-shadow: 0 0 6px rgba(220, 53, 69, 0.5); }

/* Micro-animations */
.hover-lift {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.hover-lift:hover {
    border-color: var(--accent-hover) !important;
    box-shadow: 0 8px 30px var(--accent-soft) !important;
}
.pulse-hover {
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
.pulse-hover:hover {
    opacity: 0.85;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Solid non-transparent background for dropdown menus to prevent background bleed */
.dropdown-menu.glass-panel {
    background-color: var(--bg-dropdown) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Premium Gradient Cover Templates for Cards */
.gradient-cover-0 { background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%); }
.gradient-cover-1 { background: linear-gradient(135deg, #A18CD1 0%, #FBC2EB 100%); }
.gradient-cover-2 { background: linear-gradient(135deg, #84FAB0 0%, #8FD3F4 100%); }
.gradient-cover-3 { background: linear-gradient(135deg, #A6C0FE 0%, #F68084 100%); }
.gradient-cover-4 { background: linear-gradient(135deg, #FCCB90 0%, #D57EEB 100%); }
.gradient-cover-5 { background: linear-gradient(135deg, #E0C3FC 0%, #8EC5FC 100%); }
.gradient-cover-6 { background: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%); }
.gradient-cover-7 { background: linear-gradient(135deg, #43E97B 0%, #38F9D7 100%); }
.gradient-cover-8 { background: linear-gradient(135deg, #FA709A 0%, #FEE140 100%); }
.gradient-cover-9 { background: linear-gradient(135deg, #30CFD0 0%, #330867 100%); }
.gradient-cover-10 { background: linear-gradient(135deg, #5EE7DF 0%, #B490CA 100%); }
.gradient-cover-11 { background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%); }


/* Social Media Brand Colors */
.text-instagram { color: #E1306C !important; }
.bg-instagram { background-color: #E1306C !important; color: white !important; }
.border-instagram { border-color: #E1306C !important; }

.text-youtube { color: #FF0000 !important; }
.bg-youtube { background-color: #FF0000 !important; color: white !important; }
.border-youtube { border-color: #FF0000 !important; }

.text-facebook { color: #1877F2 !important; }
.bg-facebook { background-color: #1877F2 !important; color: white !important; }
.border-facebook { border-color: #1877F2 !important; }

.text-linkedin { color: #0A66C2 !important; }
.bg-linkedin { background-color: #0A66C2 !important; color: white !important; }
.border-linkedin { border-color: #0A66C2 !important; }
