/* --- Base Styles --- */
body {
    overflow-x: hidden;
    background-color: #0f172a;
    color: #e2e8f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ================= ANIMATION STYLES (RESTORED) ================= */
#intro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f172a; /* Matches body bg */
    z-index: 9999; /* Ensure it sits on top of everything */
    transition: opacity 1.5s ease-out; /* The fade out effect */
}

.intro-content {
    text-align: center;
    transition: transform 1.2s ease-in, opacity 1.2s ease-in;
}

#intro-logo {
    max-width: 400px;
    width: 80%;
    height: auto;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: bold;
}

/* Blinking dots animation */
.dots { animation: blink 1.5s infinite; }
@keyframes blink { 
    0% { opacity: 0; } 
    50% { opacity: 1; } 
    100% { opacity: 0; } 
}

/* The "Dissolve" State (Added by JS) */
.sequence-start .intro-content {
    transform: scale(1.5); /* Grow slightly */
    opacity: 0; /* Fade out */
}

.sequence-start #intro-container {
    opacity: 0; /* Fade out background */
}

/* ================= DASHBOARD STYLES ================= */
#wrapper {
    display: flex;
    min-height: 100vh;
    /* Initially hidden for the reveal */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

/* The "Reveal" Class (Added by JS) */
.content-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* --- Sidebar Styles --- */
#sidebar-wrapper {
    min-height: 100vh;
    width: 250px;
    margin-left: 0;
    transition: margin 0.25s ease-out;
    background-color: #1e293b !important;
}

#sidebar-wrapper .sidebar-heading {
    padding: 1.5rem;
    font-size: 1.2rem;
    text-align: center;
    border-bottom: 1px solid #334155;
}

.sidebar-logo {
    width: 80px;
    margin-bottom: 10px;
}

#sidebar-wrapper .list-group-item {
    background-color: transparent;
    color: #94a3b8;
    border: none;
    padding: 15px 20px;
}

#sidebar-wrapper .list-group-item:hover,
#sidebar-wrapper .list-group-item.active-link {
    background-color: #334155;
    color: #fff;
    border-left: 4px solid #0d6efd;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    text-align: center;
    border-top: 1px solid #334155;
}

/* --- Page Content --- */
#page-content-wrapper {
    width: 100%;
    padding: 20px;
}

/* Mobile Toggle */
#wrapper.toggled #sidebar-wrapper {
    margin-left: -250px;
}

/* --- Card Customization --- */
.card {
    background-color: #1e293b;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.license-preview {
    background-color: #0f172a;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px dashed #475569;
}

.hover-card {
    transition: transform 0.2s;
    cursor: pointer;
}
.hover-card:hover {
    transform: translateY(-5px);
    border-color: #0d6efd !important;
}

.d-none { display: none !important; }
