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

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    gap: 0;
}

.navbar {
    display: flex;
    gap: 0;
    background: linear-gradient(
        135deg,
        rgba(80, 180, 220, 0.18) 0%,
        rgba(40, 120, 160, 0.28) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    margin: 0;
    flex-shrink: 0;
}

.nav-link {
    flex: 1;
    padding: 10px 16px;
    text-decoration: none;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.2s;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px;
    cursor: pointer;
    font-family: system-ui, -apple-system, sans-serif;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.content {
    flex: 1;
    position: relative;
    border: 2px solid #333;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: rgba(10, 25, 47, 0.5);
    margin: 0;
}

.content-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px;
    min-height: 100%;
    height: 100%;
    overflow: hidden;
}

.sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
}

.sidebar-panel {
    background: linear-gradient(
        135deg,
        rgba(80, 180, 220, 0.18) 0%,
        rgba(40, 120, 160, 0.28) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 16px;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.sidebar-panel h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-list li {
    margin-bottom: 8px;
}

.link-list a {
    color: #a0d8ff;
    text-decoration: underline;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.link-list a:hover {
    color: #c0e8ff;
}

.button-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.button-placeholder {
    width: 88px;
    height: 31px;
    background: #333;
    border: 1px solid #666;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #999;
}

.main-content {
    flex: 1;
    background: linear-gradient(
        135deg,
        rgba(60, 140, 180, 0.22) 0%,
        rgba(30, 90, 130, 0.32) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
}

.content-inner {
    padding: 30px;
    color: #fff;
}

.content-title {
    color: #5de6f5;
    font-size: 28px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.content-inner h2,
.content-inner h3 {
    color: #fff;
    margin-top: 20px;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.content-inner p {
    color: #fff;
    line-height: 1.7;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.content-inner ul {
    color: #fff;
    margin-left: 20px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.content-inner li {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    margin-bottom: 6px;
}

.content-inner a {
    color: #a0d8ff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.content-inner a:hover {
    color: #c0e8ff;
}

.content-inner em {
    color: #bbb;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 3px solid #1a5f7a;
    outline: 2px dotted #5de6f5;
    outline-offset: 3px;
    box-shadow: inset 0 0 0 1px rgba(93, 230, 245, 0.25);
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.gallery img {
    flex: 1 1 auto;
    min-width: 200px;
    object-fit: cover;
    max-height: 400px;
}

.gallery video {
    flex: 1 1 auto;
    min-width: 200px;
    max-height: 400px;
    border: 3px solid #1a5f7a;
    outline: 2px dotted #5de6f5;
    outline-offset: 3px;
    box-shadow: inset 0 0 0 1px rgba(93, 230, 245, 0.25);
    border-radius: 4px;
}

.gallery-embed {
    flex: 1 1 auto;
    min-width: 200px;
    aspect-ratio: 16 / 9;
    border: 3px solid #1a5f7a;
    outline: 2px dotted #5de6f5;
    outline-offset: 3px;
    box-shadow: inset 0 0 0 1px rgba(93, 230, 245, 0.25);
    border-radius: 4px;
    overflow: hidden;
}

.gallery-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .content-inner {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        gap: 8px;
    }

    .nav-link {
        flex: none;
        width: auto;
    }

    .content-inner {
        padding: 15px;
    }

    .sidebar {
        gap: 10px;
    }

    .sidebar-panel {
        padding: 12px;
    }
}
