/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM (IMAGE ALIGNED)
   ========================================================================== */
:root {
    /* Colors matches the Komdigi maintenance layout */
    --bg-page: #060913;
    --bg-card: #0d1222;
    --bg-subcard: #090c16;
    --border-color: #1e293b;
    --border-subcard: #151b2d;
    
    /* Brand Colors */
    --color-primary: #1d4ed8;
    --color-primary-hover: #2563eb;
    --color-orange: #f59e0b;
    --color-orange-glow: rgba(245, 158, 11, 0.4);
    --color-green: #10b981;
    --color-green-glow: rgba(16, 185, 129, 0.4);
    
    /* Text Colors */
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --text-body: #cbd5e1;
    
    /* Typography */
    --font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-page);
    color: var(--text-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    overflow-x: hidden;
    position: relative;
}

/* Background floating container */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* ==========================================================================
   MAIN DASHBOARD CARD
   ========================================================================== */
.dashboard-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 1000px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    animation: scaleUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.dashboard-header {
    display: flex;
    align-items: center;
    gap: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.header-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 160px;
    text-align: center;
}

.school-logo {
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.2));
}

.logo-subtitle {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.header-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.main-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.main-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.5;
}

/* ==========================================================================
   DASHBOARD GRID
   ========================================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.grid-col {
    background-color: var(--bg-subcard);
    border: 1px solid var(--border-subcard);
    border-radius: 12px;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   LEFT COLUMN: STATUS & TIMING
   ========================================================================== */
.left-col {
    gap: 1.5rem;
}

/* Status Badges */
.status-badges {
    display: flex;
    gap: 1rem;
}

.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 100px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.orange-dot {
    background-color: var(--color-orange);
    box-shadow: 0 0 10px var(--color-orange-glow);
    animation: blink 2s infinite ease-in-out;
}

.green-dot {
    background-color: var(--color-green);
    box-shadow: 0 0 10px var(--color-green-glow);
}

.badge-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-body);
}

/* Timing Cards */
.timing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.time-card {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px stroke rgba(255, 255, 255, 0.05);
    outline: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.time-card-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.time-card-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    line-height: 1.4;
}

/* Progress Section */
.progress-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.progress-info {
    font-size: 0.85rem;
    color: var(--text-white);
    font-weight: 600;
}

.time-left-highlight {
    color: var(--text-white);
}

.progress-bar-bg {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #3b82f6; /* Blue progress fill */
    border-radius: 100px;
    transition: width 1s linear;
}

/* Actions Section */
.actions-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.dashboard-btn {
    width: 100%;
    padding: 1.1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--text-white);
    border: none;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--color-primary); /* Matches the same blue in layout */
    color: var(--text-white);
    border: none;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.btn-secondary:hover {
    background-color: var(--color-primary-hover);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.1rem;
}

/* ==========================================================================
   RIGHT COLUMN: INFORMATIONS
   ========================================================================== */
.right-col .section-title {
    line-height: 1.5;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-list-item {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-body);
}

/* Custom Bullet Point (White Dot) */
.info-list-item::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    background-color: var(--text-white);
    border-radius: 50%;
}

.info-list-item strong {
    color: var(--text-white);
    font-weight: 600;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.dashboard-footer {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.copyright-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   ANIMATIONS & PARTICLES
   ========================================================================== */
.floating-element {
    position: absolute;
    fill: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    animation: float infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(8deg);
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   RESPONSIVE LAYOUTS
   ========================================================================== */
@media (max-width: 900px) {
    .dashboard-card {
        padding: 2rem;
        gap: 2rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .header-logo-section {
        min-width: unset;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .grid-col {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.4rem;
    }

    .main-subtitle {
        font-size: 0.95rem;
    }

    .timing-grid {
        grid-template-columns: 1fr;
    }
    
    .status-badges {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .badge-item {
        width: 100%;
        justify-content: center;
    }
}
