/* ==========================================================================
   1. BASE STYLES & VARIABLES
   ========================================================================== */
/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #0b0f19;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
} */

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    text-align: center;
    padding: 90px 20px 60px;
}

.hero-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    background: #3b82f6;
    filter: blur(140px);
    opacity: .18;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.hero h1 {
    position: relative;
    z-index: 1;
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.hero h1 span {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: auto;
    color: #7c7c7c !important;
    font-size: 18px;
    line-height: 1.7;
}

/* ==========================================================================
   3. LAYOUT CONTAINERS & GLASS CARDS
   ========================================================================== */
.dashboard-container {
    max-width: 1300px;
    margin: auto;
    padding: 20px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgb(0 0 0 / 22%);
    border-radius: 24px;
}

.main-card {
    padding: 28px;
    margin-bottom: 28px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.section-header.simple {
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.section-header p {
    color: #7c7c7c;
}

/* ==========================================================================
   4. FORM ACTIONS & BUTTONS
   ========================================================================== */
.add-btn,
.primary-btn,
.secondary-btn {
    border: none;
    height: 52px;
    padding: 0 22px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s ease;
}

.add-btn,
.primary-btn {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    box-shadow: 0 10px 24px rgba(59, 130, 246, .25);
}

.add-btn:hover,
.primary-btn:hover {
    transform: translateY(-2px);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bottom-actions {
    margin-top: 28px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   5. PLANNER INPUT GRID (TOP ADDITION SECTION)
   ========================================================================== */
.task-input-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.task-input-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 60px;
    gap: 16px;
    align-items: center;
}

.task-input-row input,
.task-input-row select {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    color: black !important;
    padding: 0 16px;
    outline: none;
    font-size: 15px;
}

.task-input-row input[type="date"] {
    font-family: inherit;
}

.task-input-row input:focus,
.task-input-row select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .15);
}

.task-input-row input::placeholder {
    color: #94a3b8;
}

.remove-row-btn {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 14px;
    background: #ef4444;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: .25s ease;
}

.remove-row-btn:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   6. STATISTICS GRID
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    padding: 24px;
}

.stat-title {
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
}

/* ==========================================================================
   7. PROGRESS BAR CARD
   ========================================================================== */
.progress-card {
    padding: 24px;
    margin-bottom: 28px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-weight: 600;
}

.progress-track {
    width: 100%;
    height: 14px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
    width: 0%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
    transition: .4s ease;
}

/* ==========================================================================
   8. FILTER SYSTEM
   ========================================================================== */
.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    transition: .25s;
}

.filter-btn.active {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border: none;
}

/* ==========================================================================
   9. HIGH DEFINITION SPREADSHEET EXCEL LAYOUT (ACADEMIC AGENDA GRID)
   ========================================================================== */
.result-card {
    padding: 24px;
    margin-bottom: 50px;
}

.agenda-table-wrapper {
    width: 100%;
    overflow-x: auto; /* Active scrolling fallback structure for small screen views */
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
/*     background: rgba(11, 15, 25, 0.6); */
}

.excel-styled-table {
	background-color:#8b9ea1;
    width: 100% !important;
    border-collapse: collapse !important; /* Guarantees pure individual borders cleanly map together */
    text-align: left !important;
    font-size: 15px;
    min-width: 800px !important; /* Forces spreadsheet horizontal layout blueprint on tablets/desktop */
}

.excel-styled-table th,
.excel-styled-table td {
    padding: 14px 18px !important;
    border: 1px solid white !important; /* Clean spreadsheet structural cell rules */
}

.excel-styled-table th {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 0.6px !important;
}

.excel-styled-table tbody tr {
    transition: background-color 0.2s ease;
}

.excel-styled-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Completion Horizontal Matrix Line through rule */
.excel-styled-table tr.completed-row td {
    opacity: 0.45;
    background: rgba(255, 255, 255, 0.005) !important;
}

.excel-styled-table tr.completed-row .task-title-cell {
    text-decoration: line-through !important;
    color: #94a3b8 !important;
}

.task-title-cell {
    font-weight: 600 !important;
    color: #ffffff !important;
    word-break: break-word !important;
}

.task-date-cell {
    color: #cbd5e1 !important;
    white-space: nowrap !important;
}

/* Central badge structures */
.type-badge, .priority-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* TYPE MATRICES */
.type-assignment { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.type-exam { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.type-project { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.type-reading { background: rgba(16, 185, 129, 0.15); color: #34d399; }

/* PRIORITY LEVELS */
.priority-low { background: rgba(59, 130, 246, .15); color: #60a5fa; }
.priority-medium { background: rgba(245, 158, 11, .15); color: #f59e0b; }
.priority-high { background: rgba(239, 68, 68, .15); color: #ef4444; }

/* Dynamic Operation Panel buttons inside cell */
.task-actions-cell {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.task-btn {
    height: 34px;
    padding: 0 12px !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: .2s ease;
    white-space: nowrap;
}

.complete-btn { background: #10b981; color: #fff; }
.edit-btn { background: #f59e0b; color: #fff; }
.delete-btn { background: #ef4444; color: #fff; }

.task-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

/* EMPTY COMPONENT STATE */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-state p {
    color: #7c7c7c;
}

/* ==========================================================================
   10. MOBILE RESPONSIVE MEDIA BREAKPOINTS
   ========================================================================== */
@media(max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .task-input-row {
        grid-template-columns: 1fr;
        gap: 12px;
        background: rgba(255, 255, 255, 0.02);
        padding: 16px;
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .remove-row-btn {
        width: 100%;
        height: 48px;
    }
}

@media(max-width: 768px) {
    .hero h1 {
        font-size: 38px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-buttons, .filter-btn {
        width: 100%;
        flex: 1;
    }
}