/* CSS Reset & Variables */
:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(22, 30, 49, 0.7);
    --bg-card-hover: rgba(30, 41, 67, 0.9);
    --bg-modal: #131b2e;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-highlight: rgba(0, 242, 254, 0.35);
    
    --primary: #00f2fe;
    --primary-glow: rgba(0, 242, 254, 0.3);
    --secondary: #4facfe;
    
    --accent-success: #10b981;
    --accent-success-glow: rgba(16, 185, 129, 0.25);
    --accent-warning: #f59e0b;
    --accent-warning-glow: rgba(245, 158, 11, 0.25);
    --accent-purple: #8b5cf6;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #6b7280;
    
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Keyframe Animations */
@keyframes floatGlow {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.08);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseBorder {
    0%, 100% {
        border-color: rgba(0, 242, 254, 0.3);
        box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
    }
    50% {
        border-color: rgba(0, 242, 254, 0.6);
        box-shadow: 0 0 25px rgba(0, 242, 254, 0.3);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Ambient Background Glows with Animation */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
}
.glow-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #00f2fe 0%, rgba(79,172,254,0) 70%);
    top: -100px;
    left: -100px;
    animation: floatGlow 12s ease-in-out infinite;
}
.glow-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #7c3aed 0%, rgba(124,58,237,0) 70%);
    bottom: -100px;
    right: -100px;
    animation: floatGlow 16s ease-in-out infinite reverse;
}
.glow-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #10b981 0%, rgba(16,185,129,0) 70%);
    top: 45%;
    right: 20%;
    animation: floatGlow 10s ease-in-out 2s infinite;
}

/* Container */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
    animation: slideUpFade 0.6s ease-out;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition);
}

.main-header:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b0f19;
    box-shadow: 0 0 20px var(--primary-glow);
    transition: var(--transition);
}

.brand-logo:hover {
    transform: rotate(5deg) scale(1.05);
}

.brand-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text p {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.header-period {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.period-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid var(--border-highlight);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    animation: pulseBorder 3s infinite;
}

.btn-print {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-print:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
}

/* Hero Banner */
.hero-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 41, 67, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    padding: 1.75rem 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    backdrop-filter: blur(12px);
    animation: slideUpFade 0.7s ease-out;
}

.hero-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.meta-info {
    display: flex;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.meta-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-item .value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.meta-item .status-active {
    color: var(--accent-success);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-item .status-active::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--accent-success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-success);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
    animation: slideUpFade 0.8s ease-out;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(4deg);
}

.icon-total {
    background: rgba(0, 242, 254, 0.15);
    color: var(--primary);
}

.icon-completed {
    background: var(--accent-success-glow);
    color: var(--accent-success);
}

.icon-pending {
    background: var(--accent-warning-glow);
    color: var(--accent-warning);
}

.stat-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-progress {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.75rem;
}

.progress-ring-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-success) 100%);
    border-radius: 999px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Control Bar */
.controls-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: slideUpFade 0.9s ease-out;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 0.35rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(79, 172, 254, 0.2) 100%);
    color: #fff;
    border: 1px solid var(--border-highlight);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.tab-btn .badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.dot-success { background-color: var(--accent-success); }
.dot-warning { background-color: var(--accent-warning); }

.search-and-view {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    color: var(--text-muted);
    min-width: 260px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: 0.875rem;
    width: 100%;
}

.view-toggles {
    display: flex;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    padding: 0.25rem;
    border-radius: 999px;
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn.active {
    background: var(--primary);
    color: #0b0f19;
}

/* Progja Display Grid */
.progja-display.grid-mode {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Cards & Stagger Entrance Animation */
.progja-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: popIn 0.5s ease-out cubic-bezier(0.4, 0, 0.2, 1);
}

.progja-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: width 0.3s ease;
}

.progja-card.status-completed::before {
    background: var(--accent-success);
}

.progja-card.status-pending::before {
    background: var(--accent-warning);
}

.progja-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45);
}

.progja-card:hover::before {
    width: 6px;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.card-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-completed {
    background: var(--accent-success-glow);
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-pending {
    background: var(--accent-warning-glow);
    color: var(--accent-warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
    line-height: 1.4;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-detail {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--primary);
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-detail:hover {
    background: var(--primary);
    color: #0b0f19;
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateX(2px);
}

/* Timeline View */
.progja-display.timeline-mode {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.progja-display.timeline-mode::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent-purple) 100%);
    border-radius: 999px;
}

.timeline-node {
    position: relative;
}

.timeline-node::after {
    content: '';
    position: absolute;
    left: -2rem;
    top: 1.5rem;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    transition: var(--transition);
}

.timeline-node:hover::after {
    background: var(--primary);
    scale: 1.25;
}

/* Modal Popup with Zoom Animation */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: #ef4444;
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.status-chip {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-field {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.modal-field:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.field-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.label-warning { color: var(--accent-warning); }
.label-info { color: var(--primary); }
.label-note { color: var(--accent-purple); }

.field-value {
    font-weight: 600;
    color: var(--primary);
}

.field-text {
    color: var(--text-main);
    font-size: 0.95rem;
    white-space: pre-line;
}

/* Footer */
.main-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Print Only Table Styles */
.print-only-table {
    display: none;
}

@media print {
    body {
        background: #fff !important;
        color: #000 !important;
        font-family: Arial, sans-serif !important;
    }
    
    .ambient-glow, .btn-print, .controls-section, .progja-display, .main-footer, .modal-overlay {
        display: none !important;
    }
    
    .app-container {
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .main-header {
        background: none !important;
        border: none !important;
        border-bottom: 2px solid #000 !important;
        border-radius: 0 !important;
        padding: 0 0 10px 0 !important;
        box-shadow: none !important;
        color: #000 !important;
    }
    
    .brand-logo { display: none !important; }
    .brand-text h1 { color: #000 !important; -webkit-text-fill-color: initial !important; }
    .brand-text p { color: #555 !important; }
    
    .hero-banner {
        background: none !important;
        border: 1px solid #ddd !important;
        border-left: 4px solid #000 !important;
        color: #000 !important;
    }
    .hero-text h2, .meta-item .value { color: #000 !important; }
    
    .stats-grid {
        display: flex !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }
    .stat-card {
        border: 1px solid #ccc !important;
        background: #f9f9f9 !important;
        color: #000 !important;
        padding: 10px !important;
    }
    .stat-value { color: #000 !important; }
    
    .print-only-table {
        display: block !important;
        margin-top: 20px !important;
    }
    
    .print-only-table h2 {
        font-size: 14pt;
        margin-bottom: 10px;
    }
    
    .print-only-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 10pt;
    }
    
    .print-only-table th, .print-only-table td {
        border: 1px solid #000;
        padding: 6px 8px;
        text-align: left;
        vertical-align: top;
    }
    
    .print-only-table th {
        background-color: #eee;
        font-weight: bold;
    }
}

/* ==========================================
   ULTRA RESPONSIVE BREAKPOINTS (Mobile & Tablets)
   ========================================== */

/* Tablets & Small Laptops (max-width: 992px) */
@media (max-width: 992px) {
    .app-container {
        padding: 1.5rem 1rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-banner {
        padding: 1.5rem;
    }
}

/* Mobile Devices & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .app-container {
        padding: 1rem 0.75rem;
        width: 100%;
        overflow-x: hidden;
    }

    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 1rem;
        width: 100%;
    }
    
    .header-brand {
        width: 100%;
    }
    
    .header-period {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .period-badge, .btn-print {
        font-size: 0.8rem;
    }
    
    .hero-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.25rem 1rem;
        width: 100%;
    }
    
    .meta-info {
        width: 100%;
        justify-content: space-between;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .meta-item {
        align-items: flex-start;
    }
    
    .controls-section {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
    }
    
    .search-and-view {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-box {
        flex-grow: 1;
        min-width: 0;
        width: 100%;
    }

    .progja-display.grid-mode {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .modal-card {
        padding: 1.5rem 1.25rem;
        max-height: 95vh;
        width: 100%;
    }
}

/* Extra Small Mobile Screens (max-width: 480px) */
@media (max-width: 480px) {
    .app-container {
        padding: 0.75rem 0.5rem;
    }

    .brand-text h1 {
        font-size: 1.05rem;
    }
    
    .header-period {
        flex-direction: column;
        align-items: stretch;
    }

    .period-badge, .btn-print {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .btn-print {
        font-size: 0.825rem;
        padding: 0.6rem 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .filter-tabs {
        width: 100%;
        padding: 0.25rem;
    }

    .tab-btn {
        padding: 0.45rem 0.75rem;
        font-size: 0.78rem;
    }

    .progja-card {
        padding: 1.25rem 1rem;
    }

    .card-title {
        font-size: 1.05rem;
    }

    .modal-card {
        padding: 1.25rem 0.85rem;
        border-radius: var(--radius-md);
    }

    .modal-header h3 {
        font-size: 1.15rem;
    }
}

