:root {
    /* Imperial Republic Colors & Dark Theme Palette */
    --bg-dark: #0f1115;
    --bg-panel: rgba(25, 28, 36, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);

    --text-main: #e2e8f0;
    --text-muted: #94a3b8;

    --accent-gold: #fbbf24;
    --accent-red: #e11d48;
    --accent-glow: rgba(225, 29, 72, 0.4);

    --glass-blur: blur(16px);
    --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 15px var(--accent-glow);

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Animated Orbs for depth */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: drift 20s infinite alternate linear;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-red);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #4338ca;
    /* Deep blue/purple for contrast */
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-gold);
    top: 40%;
    left: 40%;
    opacity: 0.15;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 30px) scale(1.1);
    }
}

/* App Layout */
.app-container {
    display: flex;
    height: 100vh;
    padding: 1.5rem;
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-subtle);
}

/* Sidebar */
.sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.logo-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition-fast);
    font-weight: 600;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transform: translateX(5px);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.15), rgba(225, 29, 72, 0.05));
    color: var(--accent-red);
    border-left: 3px solid var(--accent-red);
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

/* Custom Scrollbar for Main Content */
.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.content-section {
    display: none;
    padding: 3rem;
    animation: fadeIn var(--transition-smooth) forwards;
}

.content-section.active-section {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--text-muted));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-body {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.section-body p {
    margin-bottom: 1.5rem;
}

/* Search Box Specifics */
.glass-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-fast);
}

.glass-input:focus-within {
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(225, 29, 72, 0.2);
}

.glass-input input {
    background: none;
    border: none;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    width: 250px;
}

.glass-input i {
    color: var(--text-muted);
}

/* Awards Grid */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Award Card */
.award-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.award-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
    transform: scaleX(0);
    transition: transform var(--transition-smooth);
}

.award-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.award-card:hover::before {
    transform: scaleX(1);
}

.flex-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
}

.award-image-container {
    height: 150px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
}

.medal-img {
    max-height: 80px;
    max-width: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.ribbon-img {
    max-height: 35px;
    max-width: 120px;
    object-fit: contain;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-medal {
    max-height: 140px;
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.2));
}

.modal-ribbon {
    max-height: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.award-img-placeholder {
    color: var(--text-muted);
    font-size: 2rem;
    opacity: 0.5;
}

.award-info h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.award-abbr {
    display: inline-block;
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-gold);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.award-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modal for full award details */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transform: scale(0.95);
    transition: transform var(--transition-fast);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 1024px) {
    .app-container {
        flex-direction: column;
        height: auto;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
    }

    .sidebar-header {
        padding: 0;
        border: none;
    }

    .nav-links {
        flex-direction: row;
        padding: 0;
        overflow-x: auto;
    }

    .nav-link {
        white-space: nowrap;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}