﻿
html, body {
    overflow: hidden;
    height: 100%;
}

.main-panel {
    height: 100vh;
    overflow: hidden;
}

.main-content {
    height: calc(100vh - 60px); /* adjust if header/footer different */
    overflow-y: auto;
}

.premium-button {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.875rem;
    color: #fff;
    background: linear-gradient(to right, #022166, #4169c3);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

    .premium-button:hover {
        background: linear-gradient(to right, #5ab4ff, #3296ff);
    }

    .premium-button .button-content {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-weight: 500;
    }

    .premium-button[data-tooltip]::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 5px 8px;
        border-radius: 4px;
        font-size: 0.75rem;
        white-space: nowrap;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .premium-button:hover::after {
        opacity: 1;
    }

#toggleTheme {
    font-size: 1.2rem;
    background: none;
    border: none;
    color: var(--sci-accent);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

    #toggleTheme:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

.navbar .avatar {
    object-fit: cover;
    border-radius: 50%;
}
/* 🔔 Notification Dropdown */
.notification-dropdown {
    width: 320px;
    background-color: var(--white);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    animation: fadeInDown 0.25s ease-out;
}

/* 📄 Notification Item */
.notification-item {
    background: var(--light-grey-bg);
    color: #333;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.2s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

    .notification-item strong {
        display: block;
        font-weight: 600;
        color: var(--blue);
        font-size: 0.92rem;
        margin-bottom: 4px;
    }

    .notification-item small {
        color: #666;
        font-size: 0.78rem;
    }

    .notification-item:hover {
        background-color: #e9effa;
    }

/* 📜 Scrollbar inside dropdown list */
#notificationList {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

    #notificationList::-webkit-scrollbar {
        width: 6px;
    }

    #notificationList::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

/* 🔘 Notification Count Badge */
#notificationCount {
    background: var(--blue);
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 3px 7px;
    border-radius: 999px;
    position: absolute;
    top: -2px;
    right: -6px;
    display: none;
}

/* 🔔 Bell glow effect */
#notificationBellIcon.glow {
    color: var(--blue);
    text-shadow: 0 0 6px var(--blue);
}


/* 📥 Dropdown animation */
@@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clean Apex-style logo rendering */
.app-sidebar .sidebar-header .logo-text img {
    max-height: 60px;
    max-width: 160px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.sidebar-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.app-sidebar.menu-collapsed .logo-text {
    display: none;
}



.logo-img img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

body.menu-collapsed .logo-text {
    display: none !important;
}

    body.menu-collapsed .logo-text .text {
        display: none !important;
    }

.sidebar-header .logo-text {
    display: flex;
    align-items: center;
}

.sidebar-header .logo-img {
    display: flex;
    align-items: center;
}
