/* Base Styles */
:root {
    --primary-color: #277ab9;
    --primary-dark: #225f93;
    --primary-darker: #1a4f7d;
    --text-color: #333;
    --bg-color: #F2F6FA;
    --white: #fff;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --nav-width: 250px;
}

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

html {
scroll-behavior: smooth;
}


/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header Styles - Unchanged from original */
header {
    background-color: #277ab9;
    color: #fff;
    padding: 15px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    margin-left: 250px;
    justify-content: center;
    flex-direction: column;
}

.header-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-wrap: wrap;
}

.logo {
    height: 80px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 6px;
    max-width: 150px;
    height: auto;
}

.language-selector {
    position: absolute;
    right: 15px;
    top: 15px;
    transform: translateY(-50%);
}

.language-selector select {
    padding: 5px;
    font-size: 14px;
    background-color: #277ab9;
    color: white;
    border: none;
    cursor: pointer;
}

.language-selector select:hover {
    background-color: #225f93;
}

.language-selector select:focus {
    outline: none;
}

/* Navigation Styles - Unchanged from original */
nav {
    position: fixed;
    left: 0;
    width: 250px;
    background-color: #277ab9;
    font-size: 1.1em;
    box-shadow: 0px 0 0px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    min-height: 100%;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-left: 10px;
}

nav a {
    margin: 0;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    color: white;
}

nav a:hover {
    background-color: #225f93;
}

/* Main Content - Unchanged from original */
main {
    padding: 2rem 1rem;
    margin-left: 250px;
}

/* Footer - Unchanged from original */
footer {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #277ab9;
    color: white;
    text-align: center;
    margin-left: 250px;
}

.social-links {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

/* ============================================ */
/* MOBILE STYLES ONLY (Below 768px) */
/* ============================================ */

@media screen and (max-width: 767px) {
    /* Mobile Header Adjustments */
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        margin-left: 0;
        padding: 10px 15px;
        flex-direction: row;
        justify-content: space-between;
        z-index: 1000;
        height: 60px;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        height: 40px;
        margin: 0;
        max-width: 120px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .language-selector {
        position: static;
        transform: none;
        margin-left: auto;
        margin-right: 10px;
    }

    .language-selector select {
        font-size: 12px;
        padding: 3px 5px;
    }

    /* Mobile Navigation */
    nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 60px);
        transition: left 0.3s ease-in-out;
        z-index: 1000;
    }

    nav.active {
        left: 0;
    }

    /* Hamburger Menu */
    .hamburger {
        display: block;
        background: transparent;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        padding: 5px;
        margin-right: 5px;
    }

    /* Overlay for mobile menu */
    .overlay {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .overlay.active {
        display: block;
    }

    /* Mobile Main Content */
    main {
        margin-left: 0;
        padding: 80px 15px 15px; /* Account for fixed header */
    }

    /* Mobile Footer */
    footer {
        margin-left: 0;
        padding: 15px;
        position: relative;
    }

    .social-links {
        position: static;
        margin-top: 15px;
        justify-content: center;
    }

    /* Mobile Tab Menu */
    .tab-menu {
        flex-direction: column;
    }

    .tab-button {
        text-align: left;
        padding: 12px 15px;
    }

    /* Mobile Table Adjustments */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Mobile Logger */
    #logger {
        height: 100px;
        font-size: 14px;
    }
}

/* Additional small mobile adjustments */
@media screen and (max-width: 480px) {
    .logo {
        max-width: 100px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    nav {
        width: 85%;
    }
    
    .tab-content {
        padding: 10px;
    }
}