
:root {
    --primary: #2563eb;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --border: #e2e8f0;
    --danger: #ef4444;
    --success: #22c55e;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
}

#app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.main-header h1 { margin: 0; font-size: 1.8rem; }
.highlight { color: var(--primary); }

.total-hours-badge {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
}

.input-card, .history-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

h2 { margin-top: 0; margin-bottom: 20px; font-size: 1.3rem; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.hidden { display: none; }
.other-input { margin-top: 8px; border-color: var(--primary) !important; background: #f0f7ff; }

.btn-save {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-save:hover { opacity: 0.9; }

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-print {
    padding: 8px 16px;
    background: var(--text);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 12px; border-bottom: 2px solid var(--border); font-size: 0.85rem; color: #64748b; }
td { padding: 12px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }

.btn-del { color: var(--danger); border: none; background: none; cursor: pointer; font-size: 1.2rem; }

/* --- RSL PRINT STYLES --- */
.print-only { display: none; }

@media print {
    @page { size: landscape; margin: 0.5in; }
    #app-container { display: none; }
    .print-only { display: block; }
    
    .report-header {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        margin-bottom: 20px;
    }
    .rsl-logo-placeholder {
        position: absolute;
        left: 0;
        font-weight: bold;
        border: 2px solid black;
        padding: 5px;
    }
    .report-title { font-size: 24px; font-weight: bold; }
    
    .rsl-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
    .rsl-table th, .rsl-table td { border: 1px solid #000; padding: 8px; text-align: left; }
    
    .footer-grid { 
        display: grid; 
        grid-template-columns: repeat(3, 1fr); 
        gap: 20px; 
        margin-top: 20px; 
    }
    .footer-box { border: 1px solid #000; padding: 10px; height: 60px; }
}
