/* ============================================================
   SOCIAL MEDIA AUTOMATION DASHBOARD - PREMIUM GLASS STYLES
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #070913;
    --bg-secondary: rgba(13, 17, 38, 0.45);
    --bg-tertiary: rgba(22, 28, 59, 0.65);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #6366f1; /* Modern Indigo */
    --accent-secondary: #a855f7; /* Vibrant Purple */
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #f43f5e;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.4);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.6);
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Ambient Orbs */
body::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 12s infinite alternate ease-in-out;
}

body::after {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 18s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(50px) scale(1.1); }
}

.app {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    width: 280px;
    background: rgba(10, 11, 24, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: var(--transition);
}

.logo {
    padding: 30px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 26px;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.6));
    animation: pulseIcon 3s infinite ease-in-out;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.6)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.8)); }
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    flex: 1;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    color: #fff;
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background: rgba(0,0,0,0.15);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-success);
    box-shadow: 0 0 10px var(--accent-success);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

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

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

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

.main {
    flex: 1;
    margin-left: 280px;
    padding: 32px 48px;
    max-width: calc(100% - 280px);
    transition: var(--transition);
}

/* ============================================================
   TOP NAV BAR
   ============================================================ */

.top-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.search-box-wrapper {
    position: relative;
    width: 320px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    background: rgba(16, 20, 38, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px 12px 42px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
    background: rgba(16, 20, 38, 0.6);
}

.top-nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-secondary);
    transition: var(--transition);
    padding: 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

.notification-bell:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.bell-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    background: var(--accent-danger);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-danger);
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(16, 20, 38, 0.45);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px 16px 6px 8px;
    backdrop-filter: blur(10px);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.profile-details {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

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

.page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* ============================================================
   DEMO BANNER
   ============================================================ */

.demo-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-banner a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
    transition: var(--transition);
}

.demo-banner a:hover {
    color: var(--accent-primary);
}

.demo-sparkle {
    font-size: 18px;
    animation: rotateSparkle 4s infinite linear;
}

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

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* ============================================================
   PAGES & CARDS (GLASSMORPHISM)
   ============================================================ */

.page {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.page.active {
    display: block;
}

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

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

.page-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 600;
}

/* GLASS CARD LAYOUT */
.stat-card, .chart-card, .activity-card, .analytics-card, .trend-card, .settings-card, .generator-card {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-card:hover, .chart-card:hover, .activity-card:hover, .analytics-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* ============================================================
   STATS GRID
   ============================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

.stat-card {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.stat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.stat-val-wrapper {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.stat-change {
    font-size: 11px;
    font-weight: 700;
}

.text-success { color: var(--accent-success); }
.text-purple { color: var(--accent-secondary); }

.stat-chart-box {
    width: 90px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Neon glow card variations */
.stat-card.glow-purple { border-bottom: 2px solid var(--accent-secondary); }
.stat-card.glow-purple:hover {
    border-color: var(--accent-secondary);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(168, 85, 247, 0.35);
}

.stat-card.glow-cyan { border-bottom: 2px solid var(--accent-primary); }
.stat-card.glow-cyan:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(99, 102, 241, 0.35);
}

.stat-card.glow-orange { border-bottom: 2px solid var(--accent-warning); }
.stat-card.glow-orange:hover {
    border-color: var(--accent-warning);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(245, 158, 11, 0.35);
}

.stat-card.glow-magenta { border-bottom: 2px solid #ec4899; }
.stat-card.glow-magenta:hover {
    border-color: #ec4899;
    box-shadow: var(--shadow-lg), 0 0 25px rgba(236, 72, 153, 0.35);
}

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

.charts-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 24px;
    margin-bottom: 36px;
}

.chart-card {
    padding: 28px;
}

.chart-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chart-card canvas {
    max-height: 280px;
}

/* ============================================================
   ACTIVITY FEED
   ============================================================ */

.activity-card {
    padding: 28px;
}

.activity-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

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

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent-primary);
    transition: var(--transition);
}

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

.activity-item.success { border-left-color: var(--accent-success); }
.activity-item.error { border-left-color: var(--accent-danger); }
.activity-item.warning { border-left-color: var(--accent-warning); }

.activity-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
}

.activity-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
}

.activity-item.loading {
    justify-content: center;
    border-left: none;
    padding: 30px;
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.1);
}

.activity-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

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

.activity-queue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 36px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent-secondary);
    transition: var(--transition);
}

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

.queue-platform {
    font-size: 20px;
    display: flex;
    align-items: center;
}

.queue-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.queue-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.queue-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.queue-time {
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .activity-queue-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   TABLES (SCHEDULED PAGE)
   ============================================================ */

.filters {
    display: flex;
    gap: 12px;
}

select {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

select:hover {
    border-color: var(--accent-primary);
}

.posts-table-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.posts-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 16px 24px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.posts-table td {
    padding: 18px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.posts-table tbody tr {
    transition: var(--transition);
}

.posts-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
    background: rgba(255, 255, 255, 0.05);
}

.status-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-published { background: rgba(16, 185, 129, 0.15); color: var(--accent-success); }
.status-pending { background: rgba(245, 158, 11, 0.15); color: var(--accent-warning); }
.status-ready { background: rgba(99, 102, 241, 0.15); color: var(--accent-primary); }
.status-failed { background: rgba(244, 63, 94, 0.15); color: var(--accent-danger); }

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

.date-range {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.date-range .btn {
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    background: transparent;
    color: var(--text-secondary);
}

.date-range .btn.active {
    background: var(--accent-primary);
    color: white;
}

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

.analytics-card {
    padding: 28px;
}

.analytics-card.full-width {
    grid-column: span 2;
}

.analytics-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.platform-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.platform-stat-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
}

.platform-stat-name {
    font-size: 14px;
    font-weight: 700;
    text-transform: capitalize;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 12px;
}

.platform-stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.platform-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* ============================================================
   GENERATOR PAGE
   ============================================================ */

.generator-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
}

.generator-card {
    padding: 28px;
}

.generator-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-control {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.input-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

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

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.checkbox-label:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.checkbox-label input {
    accent-color: var(--accent-primary);
}

.checkbox-label.selected {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border-color: var(--accent-primary);
}

/* RESULTS PREVIEW */
.generate-result {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.generate-result.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.generate-result h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    color: var(--accent-success);
    margin-bottom: 12px;
}

/* ============================================================
   TRENDS PAGE
   ============================================================ */

.trends-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 28px;
}

.trend-card {
    padding: 28px;
}

.trend-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    margin-bottom: 24px;
}

.trend-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.trend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.trend-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
    border-color: var(--accent-primary);
}

.trend-rank {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-primary);
    width: 28px;
}

.trend-info {
    flex: 1;
    margin-left: 8px;
}

.trend-keyword {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.trend-volume {
    font-size: 12px;
    color: var(--text-muted);
}

.trend-growth {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-success);
}

/* ============================================================
   SETTINGS PAGE
   ============================================================ */

.settings-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 28px;
}

.settings-card {
    padding: 28px;
}

.settings-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    margin-bottom: 24px;
}

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

.platform-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.platform-status-name {
    font-size: 14px;
    font-weight: 700;
}

.platform-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-connected { background: rgba(16, 185, 129, 0.15); color: var(--accent-success); }
.status-disconnected { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.info-value {
    font-size: 14px;
    font-weight: 600;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */

.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 600;
    color: white;
    min-width: 300px;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: var(--transition);
}

.toast.success { border-left: 4px solid var(--accent-success); }
.toast.error { border-left: 4px solid var(--accent-danger); }
.toast.info { border-left: 4px solid var(--accent-primary); }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   RESPONSIVENESS
   ============================================================ */

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .charts-grid, .analytics-grid, .generator-grid, .trends-grid, .settings-grid {
        grid-template-columns: 1fr;
    }
    .analytics-card.full-width {
        grid-column: span 1;
    }
    .platform-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 80px;
    }
    .logo-text, .status-indicator, .sidebar-footer .version, .nav-item span:not(.nav-icon) {
        display: none;
    }
    .main {
        margin-left: 80px;
        max-width: calc(100% - 80px);
        padding: 20px;
    }
}

/* ============================================================
   BOTTOM SECTION: TITLES & MEDIA CARD QUEUE
   ============================================================ */

.section-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title-wrapper h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.view-all-link {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.view-all-link:hover {
    color: var(--text-primary);
    transform: translateX(3px);
}

.scheduled-media-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.media-card {
    position: relative;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: var(--transition);
}

.media-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(99, 102, 241, 0.15);
}

.media-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: var(--transition);
}

.media-card:hover .media-card-img {
    opacity: 0.95;
}

.media-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.media-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 12px;
    background: linear-gradient(to top, rgba(7, 9, 19, 0.9) 0%, rgba(7, 9, 19, 0.3) 70%, transparent 100%);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 4;
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    margin-left: 12px;
}

.dot-purple { background-color: var(--accent-secondary); box-shadow: 0 0 8px var(--accent-secondary); }
.dot-cyan { background-color: var(--accent-primary); box-shadow: 0 0 8px var(--accent-primary); }

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

.chart-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.8px;
}

.chart-legend-select {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

@media (max-width: 1200px) {
    .scheduled-media-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .scheduled-media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
