:root {
    --primary-color: #333;
    --secondary-color: #2abb51;
    --bg-color: rgb(52, 168, 83);
}

/* Bootstrap-like alert styles */
.alert {
    position: relative;
    padding: 0.75rem 1rem;
    margin: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    text-align: left;
}
.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}
.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}
.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}
.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

.secondary-color {
    color: var(--secondary-color);
}


body {
    margin: 0px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    color: #464646;
    /* Ensure body never exceeds viewport width on mobile */
    width: auto;
    max-width: 100vw;
    overflow-x: hidden;
    background-color: #f3f6f9;
    user-select: none;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    padding: 0px;
    margin: 0px;
}

header {
    user-select: none;
    background-color: #fff;
    color: #333;
    padding: 0.5em 2.5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #999;
}

#error {
    color: red;
    font-size: 0.8em;
    font-weight: bold;
    margin-top: 1em;
}

#error.visible {
    display: block;
}

#error.hidden {
    display: none;
}

.logo {
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    user-select: none;
    color: #444;

}

.sub-logo {
    font-size: 0.5em;
    font-weight: 300;
    color: #666;
}
.profile-btn {
    background-color: var(--bg-color);
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1em;
    cursor: pointer;
    user-select: none;
    padding: 5px;
    text-transform: uppercase;
}
.profile-btn:hover {
    background-color: #fff;
    color: var(--bg-color);
}
#company-switcher-select{
    width: fit-content;
    padding: 0.5em 1em;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    font-size: 1em;
    font-weight: 500;
    
}

.header-left, .header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}


nav {
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-btns {
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 17px;
}
.notification-btn {
    border: none;
    cursor: pointer;
    font-weight: bold;
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc2626;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.session-btns button {
    background-color: #fff;
    border: none;
    padding: 0.7em 1.3em;
    margin: 0.5em;
    cursor: pointer;
    font-weight: bold;
}

.login-btn {
    border-radius: 15px;
    background-color: var(--bg-color) !important;
    color: #fff;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 0;
}

#overlay-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(3px);
}
#overlay-blur.show {
    display: block;
}
#overlay-blur.hide {
    display: none;
}
footer.modern-footer {
    user-select: none;
    background-color: #111827;
    color: #9ca3af;
    padding: 0;
    bottom: 0;
    width: 100%;
}

footer.modern-footer.footer-transparent {
    background-color: transparent;
    color: #6b7280;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4em 2em 2em;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 4em;
    margin-bottom: 3em;
    padding-bottom: 2em;
    border-bottom: 1px solid #374151;
}

.footer-brand {
    flex: 1;
    max-width: 300px;
}

.footer-brand .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5em;
}

.footer-tagline {
    font-size: 0.95em;
    line-height: 1.6;
    color: #9ca3af;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 4em;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5em 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5em;
}

.footer-copyright {
    font-size: 0.875em;
    color: #6b7280;
}

.footer-copyright a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-copyright a:hover {
    color: var(--secondary-color);
}

.footer-language {
    display: flex;
    gap: 0.5em;
}

.lang-link {
    padding: 0.4em 0.8em;
    border-radius: 6px;
    font-size: 0.875em;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #374151;
}

.lang-link:hover {
    background: #1f2937;
    color: #fff;
    border-color: #4b5563;
}

.lang-link.active {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

.footer-minimal {
    padding: 2em;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: 2em;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2em;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1em;
        text-align: center;
    }
    
    footer.modern-footer {
        display: block !important;
    }
}
.notification-box {
    display: flex;
    position: fixed;
    top: 60px;
    right: 16px;
    max-height: 480px;
    background-color: #fff;
    width: 360px;
    border-radius: 12px;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    flex-direction: column;
}
.hidden {
    display: none !important;
}
.notification-box-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 480px;
}
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
}
.notification-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}
.mark-all-read {
    background: none;
    border: none;
    color: #2abb51;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}
.mark-all-read:hover {
    background: #f0fdf4;
}
.notification-list {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 360px;
}
.notification-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s;
}
.notification-item:hover {
    background: #f8fafc;
}
.notification-item.unread {
    background: #f0fdf4;
}
.notification-item.unread:hover {
    background: #dcfce7;
}
.notification-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #0f172a;
    margin-bottom: 4px;
}
.notification-message {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}
.notification-time {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 6px;
}
.notification-empty {
    padding: 32px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}
.notification-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #fff;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    max-width: 320px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}
.notification-toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.toast-message {
    font-size: 0.85rem;
    opacity: 0.9;
}
@media (max-width: 480px) {
    .notification-box {
        width: calc(100vw - 32px);
        right: 16px;
        left: 16px;
    }
}
.navigation-bar {
    width: 100%;
    position: relative;
    padding: 10px;

}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

nav a {
    text-decoration: none;
    color: #333;
    padding-bottom: 0.5em;
}

nav a.selected {
    border-bottom: 2px solid var(--secondary-color);
}

a {
    text-decoration: none;
    color: #333;
}
.content{
    min-height: calc(100vh - 288px);
    top:80px;
}

.small-menu {
    display: none;
    cursor: pointer;
}

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.logout-btn {
    background-color: var(--bg-color) !important;
    color: #fff;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;  
}
.logout-btn:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

.language-option {
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.2s ease;
}
.quick-nav-text {
    font-size: 16px;
    font-weight: 500;
    width: 85px;
    text-align: center;
    text-wrap: nowrap;
}
.quick-nav-text p {
    margin: 0;
    padding: 0;
}
.label-icon {
    font-size: 1.5rem;
}

.label-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #444;
}

.language-option:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

.language-option.active {
    background: var(--primary-color);
    color: white;
}

.small-menu-content {
    display: none;
    position: absolute;
    top:auto;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;

}

.small-menu-content.show {
    display: block;
}

.small-menu-content .item {
    font-size: .9rem;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    font-weight: 500;
    color: #666;
}

.small-menu-content .item:last-child {
    border-bottom: none;
}
.small-menu-content .item a {
    display: block;
    text-decoration: none;
    color: #666;
    padding: 10px;
    border-radius: 5px;
    
}

.small-menu-content .item a:hover {
    background-color: #f0f0f0;
}


@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@media screen and (max-width: 960px) {
    body {
        font-size: 13px;
    }

    nav {
        gap: 10px;
    }

    .block-content {
        flex-direction: column;
        gap: 10px;
        margin: 0px;
        padding-left: 0px;
        padding-right: 0px;
    }
    .block-media,
    .block-text {
        flex-direction: column;
        width: 100%;
        position: relative;
        margin: 0px;
        padding-left: 0px;
        padding-right: 0px;
    }

    img,
    video {
        width: 100%;
    }

    .block-media>img {
        border: none;
    }

    .top>svg {
        display: none;
    }

    .logo {
        font-size: 1.2em;
    }

    header {
        padding: 0.5em 1em;
    }

    .session-btns button {
        padding: 0.5em 1em;
    }

    .block-text-multiple {
        width: 100%;
    }

    .sub-logo {
        display: none;
    }

}

@media screen and (max-width: 768px) {
    .small-menu {
        display: block;
    }

    body {
        font-size: 10px;
        height: 100vh;
        height: 100dvh;
    }

    nav,
    .session-btns {
        display: none;
    }
    footer>.logo{
        display: none;
    }
    footer{
        display: none;
    }
    .language-switcher {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        flex-wrap: wrap;
        justify-content: center;
    }
}

