/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #444;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Header styles */
.header-hero {
    position: relative;
    width: 100%;
    height: 65px;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: ridge;
    flex-shrink: 0;
}

.overlay {
    background: rgba(0, 0, 0, 0.45);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.hero-text {
    text-align: center;
    color: #fff;
    width: 100%;
}

.hero-text h1 {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.registration-id {
    font-size: 0.8rem;
    margin-top: 0.3rem;
    opacity: 0.95;
    color: #fff;
}

/* Main content layout */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar styles */
.sidebar {
    width: 250px;
    background: #303cc7;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 100;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #383081;
}

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    background: #0a3a65;
}

.sidebar-menu a i {
    margin-right: 10px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: #ffdd57;
}

.sidebar-menu a.active {
    background: rgba(255,221,87,0.15);
    color: #ffdd57;
    border-left: 4px solid #ffdd57;
}

/* Content area */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
}

.content-header {
    padding: 0.8rem 1rem;
    background: #cde2f1;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #303cc7;
    cursor: pointer;
    display: none;
}

.container {
    flex: 1;
    padding: 0rem;
    overflow: hidden;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    text-align: center;
    background-color: #222;
    color: #ccc;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .header-hero {
        height: 120px;
    }

    .hero-text h1 {
        font-size: 1.2rem;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        height: 100%;
        z-index: 1000;
    }

    .sidebar.open {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-menu-toggle {
/*        display: block; */
        display: inline-block;
        transform-origin: center;
        transform: scaleX(8.1);
        line-height: 1;
        vertical-align: middle;
        margin-left: 50px;
    }

    .overlay-mobile {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        display: none;
    }

    .overlay-mobile.open {
        display: block;
    }
}

@media (max-width: 480px) {
    .header-hero {
        height: 75px;
        border-style: double;
        border-color: blue;
    }

    .hero-text h1 {
        font-size: 1.1rem;
        background: #244aaf;
        border-radius: 8px;
        border-style: groove;
        border-width: 3px;
        border-color: #bfbddd;
        padding: 5px;
    }

    .registration-id {
        font-size: 0.7rem;
    }

    .content-header {
        padding: 0.2rem 0.8rem;
    }

    .content-title {
        font-size: 1.1rem;
        margin-right: 5px;
    }
}
