: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;
}

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

html {
    scroll-behavior: smooth;
}

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;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (min-width: 768px) {
    img:not(.logo, .social-links img, .toolbar img, .submenu img, nav img),
    video:not(.video-container video) {
        max-width: 50vw;
    }
}

@media (max-width: 767px) {
    img:not(.logo, .social-links img, .toolbar img, .submenu img, nav img),
    video:not(.video-container video) {
        max-width: 100%;
    }
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }

header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    position: relative;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    margin-left: var(--nav-width);
    justify-content: center;
    flex-direction: column;
}

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

.logo {
    max-width: 150px;
    height: auto;
    margin: 20px auto 6px;
}

.language-selector {
    position: absolute;
    right: 15px;
    top: 15px;
}

.language-selector select {
    padding: 5px;
    font-size: 14px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.language-selector select:hover {
    background-color: var(--primary-dark);
}

nav {
    position: fixed;
    left: 0;
    width: var(--nav-width);
    background-color: var(--primary-color);
    font-size: 1.1em;
    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: var(--white);
    transition: var(--transition);
}

nav a:hover {
    background-color: var(--primary-dark);
}

.menu-bar {
    display: flex;
    background-color: var(--text-color);
    padding: 0;
    justify-content: left;
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    min-width: 180px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 1000;
}

.submenu a {
    display: block;
    padding: 10px;
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 250px;
    transition: var(--transition);
}

.submenu a:hover {
    background-color: #b84040;
}

.menu-item {
    position: relative;
    background-color: var(--text-color);
    display: inline-block;
    color: var(--white);
    cursor: pointer;
    padding: 10px;
    transition: var(--transition);
}

.menu-item:hover {
    background-color: #b84040;
}

.menu-item:hover .submenu,
.submenu:hover {
    display: block;
}

.submenu .submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #555;
}

.submenu-item {
    position: relative;
}

.submenu-item:hover .submenu {
    display: block;
}

.submenu img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

main {
    padding: 2rem 1rem;
    margin-left: var(--nav-width);
}

.toolbar {
    display: flex;
    padding: 5px;
    justify-content: left;
    border-left: 2px solid #000;
    border-right: 2px solid #000;
}

.toolbar button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-right: 5px;
    transition: var(--transition);
}

.toolbar button img {
    width: 24px;
    height: 24px;
}

.toolbar button:hover {
    background-color: #b84040;
}

#logger {
    border: 2px solid var(--text-color);
    padding: 10px;
    overflow-y: auto;
    height: 150px;
    margin-top: 10px;
}

.hamburger {
    display: none;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px;
    font-size: 24px;
    cursor: pointer;
}

.tab-menu {
    display: flex;
    justify-content: center;
    background-color: #f7f7f7;
    padding: 10px 0;
    flex-wrap: wrap;
}

.tab-button {
    flex: 1;
    padding: 12px;
    cursor: pointer;
    text-align: center;
    border: none;
    background-color: #f7f7f7;
    font-size: 16px;
    transition: var(--transition);
}

.tab-button:hover, 
.tab-button.active {
    color: var(--primary-color);
    font-weight: bold;
}

.tab-content {
    display: none;
    padding: 20px;
    background-color: var(--white);
}

.tab-content.active {
    display: block;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
    text-align: left;
    padding: 20px;
}

.construction-message {
    font-size: 24px;
    color: var(--primary-color);
    text-align: center;
    padding: 20px;
}

.construction-message p {
    margin: 10px 0;
}

form {
    background: #f9f9f9;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-details {
    margin-top: 2rem;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

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

.social-links a {
    text-decoration: none;
}

.social-links a.linkedin { color: #07405f; }
.social-links a.youtube { color: #ff0000; }
.social-links a.email { color: var(--text-color); }

.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #4CAF50;
    color: var(--white);
    font-weight: bold;
}

strong.green { color: #0b610b; }
strong.red { color: #e40c0c; }
em { color: #d8cbcb; }

tr:hover { background-color: #f1f1f1; }

.dropdown {
    position: relative;
    display: inline-block;
    padding-left: 20px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.no-scroll { overflow: hidden; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in { animation: fadeIn 0.5s ease-in; }

@media (max-width: 767px) {
    header {
        margin-left: 0;
        position: fixed;
        top: 0;
        width: 100%;
        height: 240px;
        padding: 0;
        z-index: 1000;
    }

    .header-content {
        color: var(--white);
        font-size: 20px;
        position: absolute;
        left: 15px;
        top: 40px;        
    }

    .language-selector {
        top: 15px;
        right: 15px;
        z-index: 1002;
    }

    .language-selector select {
        border-radius: 4px;
        padding: 6px 8px;
        border: 1px solid rgba(255,255,255,0.3);
    }

    .hamburger {
        display: block;
        position: absolute;
        left: 15px;
        top: 177px;
    }

    .logo { display: none; }

    .social-links {
        gap: 10px;
        position: absolute;
        right: 15px;
        top: 165px;
    }

    .social-links a {
        color: var(--white);
        font-size: 18px;
    }

    nav {
        top: 245px;
        left: 0;
        width: 240px;
        max-width: 85%;
        height: calc(100vh - 200px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding-left: 15px;
        z-index: 999;
    }

    nav.active {
        transform: translateX(0);
    }

    .nav-links { padding: 0; }

    nav a {
        padding: 0;
        font-size: 16px;
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    main {
        margin-left: 0;
        padding-top: 15px;
        padding: 20px 15px;
        margin-top: 200px;
        width: 100%;
    }

    .submenu {
        position: static;
        display: none;
        background-color: var(--primary-dark);
        box-shadow: none;
        min-width: auto;
    }

    .submenu.active { display: block; }
    .submenu a { padding-left: 40px; }

    .has-submenu::after {
        content: '+';
        margin-left: auto;
        font-size: 18px;
    }

    .has-submenu.active::after { content: '-'; }

    .nav-overlay {
        position: fixed;
        top: 200px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}