/* css/sentiment.css */
:root {
    --nasdem-primary: #1e4fa3;
    --nasdem-secondary: #173d7a;
    --nasdem-cyan: #13a8d8;
    --nasdem-accent: #f7b500;
    --nasdem-dark: #10294f;
    --nasdem-light: #f4f8ff;
    --nasdem-sidebar: #0b1933;
    --nasdem-white: #ffffff;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 88px;
}

body {
    background: #f5f7fb;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #1f2937;
    overflow-x: hidden;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.app-sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    color: #fff;
    overflow: hidden;
    transition: width .25s ease;
    background: radial-gradient(circle at top left, rgba(247,181,0,.18), transparent 28%),
                linear-gradient(180deg, #0b1933 0%, var(--nasdem-secondary) 48%, #1e4fa3 100%);
    box-shadow: 8px 0 28px rgba(15,35,69,.18);
}

.app-sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.app-sidebar .brand {
    min-height: 74px;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.app-sidebar .brand-logo {
    width: 300px;
    height: 70px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.467);
    border-radius: 14px;
    padding: 6px;
}

.app-sidebar .brand-text h6 {
    letter-spacing: .2px;
}

.sidebar-scroll {
    height: calc(100vh - 74px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem .75rem 1.25rem;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.sidebar-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,.04);
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.22);
    border-radius: 999px;
}

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

.sidebar-section-title {
    color: rgba(255,255,255,.45);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: .35rem .25rem .7rem;
}

.app-sidebar .nav {
    padding: 0;
}

.app-sidebar .nav-link,
.sidebar-group-toggle {
    position: relative;
    width: 100%;
    color: rgba(255,255,255,.84);
    border-radius: 14px;
    margin-bottom: .34rem;
    padding: .78rem .85rem;
    display: flex;
    align-items: center;
    gap: .78rem;
    font-weight: 700;
    font-size: .88rem;
    line-height: 1.15;
    transition: all .18s ease;
    text-decoration: none;
    border: 0;
    background: transparent;
    text-align: left;
}

.app-sidebar .nav-link i,
.sidebar-group-toggle i:first-child {
    width: 21px;
    min-width: 21px;
    text-align: center;
    font-size: .95rem;
    color: rgba(255,255,255,.82);
}

.app-sidebar .nav-link:hover,
.sidebar-group-toggle:hover {
    background: rgba(255,255,255,.10);
    color: #fff;
    transform: translateX(2px);
}

.app-sidebar .nav-link.active,
.sidebar-group-toggle.active {
    background: linear-gradient(135deg, #1e4fa3 0%, #13a8d8 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(19,168,216,.22);
}

.app-sidebar .nav-link.active::before,
.sidebar-group-toggle.active::before {
    content: "";
    position: absolute;
    left: -.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 26px;
    border-radius: 99px;
    background: #f7b500;
}

.menu-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-chevron {
    margin-left: auto;
    font-size: .72rem !important;
    width: auto !important;
    min-width: auto !important;
    opacity: .72;
    transition: transform .18s ease;
}

.sidebar-group-toggle[aria-expanded="true"] .sidebar-chevron {
    transform: rotate(180deg);
}

.sidebar-submenu {
    margin: .15rem 0 .55rem 0;
    padding: .25rem 0 .25rem 1.1rem;
    border-left: 1px solid rgba(255,255,255,.12);
}

.sidebar-submenu .nav-link {
    font-size: .8rem;
    font-weight: 650;
    padding: .66rem .7rem;
    border-radius: 12px;
    margin-bottom: .25rem;
    color: rgba(255,255,255,.72);
    background: transparent;
    box-shadow: none;
}

.sidebar-submenu .nav-link i {
    font-size: .82rem;
    width: 18px;
    min-width: 18px;
}

.sidebar-submenu .nav-link:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.sidebar-submenu .nav-link.active {
    background: rgba(255,255,255,.14);
    color: #fff;
}

.app-sidebar.collapsed .menu-text,
.app-sidebar.collapsed .brand-text,
.app-sidebar.collapsed .sidebar-section-title,
.app-sidebar.collapsed .sidebar-chevron,
.app-sidebar.collapsed .sidebar-submenu {
    display: none !important;
}

.app-sidebar.collapsed .brand {
    justify-content: center;
}

.app-sidebar.collapsed .nav-link,
.app-sidebar.collapsed .sidebar-group-toggle {
    justify-content: center;
    padding: .82rem .7rem;
}

.app-sidebar.collapsed .nav-link i,
.app-sidebar.collapsed .sidebar-group-toggle i:first-child {
    margin: 0;
}

/* Main Content */
.main-content {
    flex: 1;
    min-width: 0;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    transition: margin-left .25s ease, width .25s ease;
}

body.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed-width) !important;
    width: calc(100% - var(--sidebar-collapsed-width)) !important;
}

.content-inner {
    padding: 1.25rem;
}

.page-card {
    background: #fff;
    border: 1px solid rgba(15, 35, 69, 0.07);
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(16, 41, 79, 0.06);
}

/* Buttons */
.btn-nasdem-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    background: linear-gradient(135deg, var(--nasdem-primary), var(--nasdem-secondary));
    border: none;
    color: #fff;
    font-weight: 600;
    min-height: 42px;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.btn-nasdem-primary:hover {
    color: #fff;
    opacity: .95;
}

.btn-nasdem-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    background: linear-gradient(135deg, #f7b500, #ffcc33);
    border: none;
    color: #1f2937;
    font-weight: 700;
    min-height: 42px;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.btn-nasdem-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    border: 1px solid var(--nasdem-primary);
    color: var(--nasdem-primary);
    background: #fff;
    font-weight: 600;
    min-height: 42px;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.btn-nasdem-outline:hover {
    background: var(--nasdem-primary);
    color: #fff;
}

/* Mobile */
.mobile-sidebar-link {
    background: rgba(255,255,255,.06);
}

.mobile-sidebar-link.active {
    background: rgba(19,168,216,.35) !important;
}

.mobile-submenu {
    padding-left: 1rem;
    border-left: 1px solid rgba(255,255,255,.12);
    margin: .25rem 0 .75rem .5rem;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        display: none;
    }
    
    .main-content,
    body.sidebar-collapsed .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .content-inner {
        padding: 1rem;
    }
}