/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    font-family: var(--font-tech);
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-logo {
    width: 180px;
    height: 180px;
    filter: drop-shadow(0 0 15px var(--accent-glow));
    margin-bottom: 2rem;
}

.splash-brand {
    text-align: center;
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.brand-name {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    display: block;
    color: var(--text-main);
}

.brand-sub {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    display: block;
    max-width: 350px;
    line-height: 1.4;
}

.loading-bar-container {
    width: 200px;
    height: 2px;
    background: var(--border);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: loadProgress 2.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.loading-text {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    animation: blinkText 1s infinite;
}

/* Animations */
@keyframes scan {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    30% {
        width: 40%;
    }

    70% {
        width: 60%;
    }

    100% {
        width: 100%;
    }
}

@keyframes blinkText {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Layout Components */
.sidebar {
    width: 320px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.5);
}

.aside-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--accent-glow) 0%, rgba(15, 23, 42, 0) 100%);
}

.aside-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.header-bar {
    padding: 0.8rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    scroll-behavior: smooth;
}

/* UI Elements */
.btn {
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover {
    background: var(--accent-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-outline:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

input,
textarea,
select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

textarea {
    min-height: 80px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.card {
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Tabs */
.tabs, .pill-nav {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.tab, .pill-nav button {
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab:hover, .pill-nav button:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.tab.active, .pill-nav button.active {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-panel);
    border: 1px solid var(--accent);
    width: 800px;
    max-width: 95%;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 30px var(--accent-glow);
}