/* GLOBAL RESET & VARIABLES */
:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #121826;
    --bg-card: rgba(22, 30, 49, 0.7);
    --bg-card-hover: rgba(29, 39, 64, 0.85);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-focus: rgba(99, 102, 241, 0.4);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary: #6366f1; /* Indigo */
    --primary-light: rgba(99, 102, 241, 0.15);
    --primary-hover: #4f46e5;
    
    --secondary: #14b8a6; /* Teal */
    --secondary-light: rgba(20, 184, 166, 0.15);
    
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.15);
    --danger-border: rgba(239, 68, 68, 0.3);
    
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.15);
    --warning-border: rgba(245, 158, 11, 0.3);
    
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.15);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 40px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* HEADER */
.app-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
    margin-bottom: 32px;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
}

.logo h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
}

.logo h1 span {
    color: var(--primary);
}

.tagline {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
}

/* LAYOUT CONTAINER */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    align-items: start;
}

/* SIDEBAR (SETTINGS) */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.config-section {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.config-section:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.config-section h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

/* FORM ELEMENTS */
.form-group {
    margin-bottom: 18px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

input[type="text"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    background-color: rgba(10, 15, 26, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--border-focus);
}

.input-with-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-suffix input {
    padding-right: 40px;
}

.input-with-suffix .suffix {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.help-text {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* INFO TOOLTIPS */
.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: help;
    vertical-align: middle;
    margin-left: 4px;
    transition: color 0.2s ease;
    outline: none;
}

.info-tooltip:hover,
.info-tooltip:focus {
    color: var(--primary);
}

.info-tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: normal;
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.info-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--border-color) transparent transparent transparent;
}

.info-tooltip:hover .info-tooltip-text,
.info-tooltip:focus .info-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* TOGGLES & CHECKBOXES */
.toggle-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    user-select: none;
    padding-left: 32px;
}

.toggle-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(10, 15, 26, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.toggle-container:hover input ~ .checkmark {
    border-color: var(--primary);
}

.toggle-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.toggle-container input:checked ~ .checkmark:after {
    display: block;
}

.toggle-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ACCORDION (ADVANCED SETTINGS) */
.accordion details {
    border-radius: var(--radius-sm);
}

.accordion summary {
    list-style: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary .chevron {
    transition: transform 0.25s ease;
    color: var(--text-muted);
}

.accordion details[open] summary .chevron {
    transform: rotate(180deg);
}

.accordion-content {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* STRATEGY CARDS */
.strategy-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.strategy-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(10, 15, 26, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.strategy-card input[type="radio"] {
    margin-top: 4px;
    accent-color: var(--primary);
}

.strategy-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.15);
}

.strategy-card.active {
    background: var(--primary-light);
    border-color: var(--primary);
}

.strategy-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.strategy-desc {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* RANGE SLIDER */
.range-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

input[type="range"] {
    flex: 1;
    accent-color: var(--primary);
    background: rgba(10, 15, 26, 0.8);
    height: 6px;
    border-radius: 3px;
    cursor: pointer;
}

.range-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    min-width: 65px;
    text-align: right;
}

/* ACTIONS BUTTONS */
.sidebar-actions {
    display: flex;
    gap: 12px;
}

.btn {
    flex: 1;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 10px 16px;
    font-size: 13px;
}

/* RESULTS AREA */
.results-area {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* SUMMARY CARDS DASHBOARD */
.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.summary-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.summary-card h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.summary-card.highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(20, 184, 166, 0.05) 100%);
    border-color: rgba(99, 102, 241, 0.25);
}

.days-left-counter {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 10px 0;
}

.days-left-counter span:first-child {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.days-left-counter .unit {
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-card-footer {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* PROGRESS BARS */
.progress-bar-container {
    background: rgba(10, 15, 26, 0.6);
    height: 8px;
    border-radius: 4px;
    width: 100%;
    overflow: hidden;
    margin: 12px 0 6px 0;
}

.progress-bar-container.double {
    height: 10px;
    display: flex;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    background-color: var(--primary);
    transition: width 0.5s ease-out;
}

.progress-bar.sgi-color {
    background-color: var(--primary);
    border-radius: 4px 0 0 4px;
}

.progress-bar.low-color {
    background-color: var(--secondary);
    border-radius: 0 4px 4px 0;
}

.days-split {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.days-split-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.days-split-item .label {
    color: var(--text-secondary);
}

.days-split-item .value {
    font-weight: 600;
}

.days-status {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.days-status.warning {
    color: var(--warning);
}

.days-status.success {
    color: var(--success);
}

/* NOTIFICATIONS / ALERTS */
.notifications-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(10, 15, 26, 0.4);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    align-items: flex-start;
}

.alert-danger {
    background: var(--danger-light);
    border-color: var(--danger-border);
    color: #fca5a5;
}

.alert-warning {
    background: var(--warning-light);
    border-color: var(--warning-border);
    color: #fcd34d;
}

.alert-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-content h4 {
    font-size: 14px;
    margin-bottom: 4px;
    color: inherit;
    font-weight: 700;
}

.alert-content p {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
}

.alert-content strong {
    font-weight: 600;
}

/* PLANNER TABLE / GRID */
.planner-section {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    font-size: 20px;
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.planner-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.planner-table th {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
}

.planner-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.planner-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

.planner-table tbody tr.year-divider {
    background-color: rgba(99, 102, 241, 0.05);
    font-weight: 600;
}

.planner-table tbody tr.year-divider td {
    padding: 8px 16px;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.08em;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

/* MONTH CELL FORMATTING */
.month-cell {
    display: flex;
    flex-direction: column;
}

.month-cell .month-name {
    font-weight: 600;
    color: var(--text-primary);
}

.month-cell .child-age {
    font-size: 11px;
    color: var(--text-muted);
}

/* DYNAMIC TABLE SELECTS & SLIDERS */
.cell-config {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cell-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cell-row label {
    margin-bottom: 0;
    font-size: 11px;
    min-width: 60px;
}

.planner-table select {
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 4px;
}

.planner-table select.status-select {
    font-weight: 500;
}

.status-active-FP {
    color: #a5b4fc; /* soft purple tint */
}

.status-active-Work {
    color: #94a3b8;
}

.status-active-Both {
    color: #5eead4;
}

.weekly-days-control {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.weekly-days-control input[type="range"] {
    height: 4px;
}

.weekly-days-control .days-val {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 32px;
}

.day-type-btn-group {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.day-type-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 10px;
    padding: 4px 6px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: var(--transition);
}

.day-type-btn.active {
    background-color: var(--primary);
    color: white;
}

.day-type-btn.active.low-type {
    background-color: var(--secondary);
}

/* DUBBELDAGAR CELL */
.double-days-cell {
    text-align: center;
}

.double-days-checkbox {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* FINANCIALS CELL */
.economy-cell {
    display: flex;
    flex-direction: column;
}

.economy-cell .total-net {
    font-size: 14px;
    font-weight: 700;
    color: var(--success);
}

.economy-cell .details {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* SGI STATUS CELL */
.sgi-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
}

.sgi-status-badge.protected {
    background-color: var(--success-light);
    color: #6ee7b7;
}

.sgi-status-badge.danger {
    background-color: var(--danger-light);
    color: #fca5a5;
}

.sgi-status-badge.info {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

/* SGI STATUS DOTS (moved from inline) */
.sgi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.sgi-dot-success {
    background-color: var(--success);
}

.sgi-dot-danger {
    background-color: var(--danger);
}

/* DOUBLE DAYS INPUT (moved from inline) */
.double-days-input {
    width: 50px;
    text-align: center;
    background: rgba(10, 15, 26, 0.8);
    border: 1px solid var(--border-color);
    color: white;
    padding: 4px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 13px;
}

.double-days-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* TOAST NOTIFICATIONS */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.toast-visible {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.toast-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.toast-info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

.toast-icon {
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
}

/* ECONOMY CHART */
.chart-section {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.chart-container {
    position: relative;
    width: 100%;
    height: 320px;
}

/* SITE FOOTER */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    padding: 48px 0 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer-brand h3 span {
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 360px;
}

.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.footer-disclaimer {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.footer-disclaimer h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.footer-disclaimer p {
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 900px;
}

.footer-disclaimer a {
    color: var(--primary);
    text-decoration: none;
}

.footer-disclaimer a:hover {
    text-decoration: underline;
}

.footer-disclaimer strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

/* PRINT STYLING */
.print-footer {
    display: none;
}

@media print {
    body {
        background-color: white;
        color: black;
        font-size: 12px;
        padding-bottom: 0;
    }
    
    .no-print, #toast-container, .chart-section {
        display: none !important;
    }
    
    .app-container {
        display: block;
        max-width: 100%;
        padding: 0;
    }
    
    .results-area {
        gap: 20px;
    }
    
    .summary-card {
        background: white !important;
        border: 1px solid #ddd !important;
        color: black !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .summary-card h3 {
        color: #555 !important;
    }
    
    .days-left-counter span:first-child {
        color: black !important;
    }
    
    .progress-bar-container {
        background: #eee !important;
        border: 1px solid #ccc;
    }
    
    .progress-bar {
        background-color: #333 !important;
    }
    
    .progress-bar.sgi-color {
        background-color: #555 !important;
    }
    
    .progress-bar.low-color {
        background-color: #999 !important;
    }
    
    .planner-section {
        background: white !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }
    
    .planner-table {
        font-size: 11px;
    }
    
    .planner-table th {
        background-color: #f3f4f6 !important;
        color: black !important;
        border: 1px solid #ddd !important;
    }
    
    .planner-table td {
        border: 1px solid #ddd !important;
        padding: 8px 10px;
    }
    
    .print-footer {
        display: block !important;
        margin-top: 40px;
        border-top: 1px solid #ddd;
        padding-top: 20px;
        font-size: 10px;
        color: #666;
        text-align: center;
    }
    
    .day-type-btn-group,
    .weekly-days-control input[type="range"] {
        display: none !important;
    }
    
    /* Show text representations of inputs for print */
    .print-val-only {
        display: inline !important;
    }
    
    .print-hide {
        display: none !important;
    }
}

.print-val-only {
    display: none;
}

/* RESPONSIVENESS */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Transform planner table into responsive cards */
    .table-responsive {
        border: none;
        overflow-x: visible;
    }
    
    .planner-table, 
    .planner-table thead, 
    .planner-table tbody, 
    .planner-table tr, 
    .planner-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .planner-table thead {
        display: none;
    }
    
    .planner-table tr {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        margin-bottom: 20px;
        padding: 20px;
        backdrop-filter: blur(8px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .planner-table tr:hover {
        background: rgba(255, 255, 255, 0.03);
    }
    
    .planner-table tr.year-divider {
        background: rgba(99, 102, 241, 0.08);
        border: 1px solid rgba(99, 102, 241, 0.2);
        border-radius: var(--radius-md);
        text-align: center;
        padding: 8px 16px;
        margin-bottom: 20px;
    }
    
    .planner-table tr.year-divider td {
        padding: 0;
        border: none;
        text-align: center;
    }
    
    .planner-table td {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 12px 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
        text-align: left;
    }
    
    .planner-table td:last-child {
        border-bottom: none;
    }
    
    /* Month Header Cell styling */
    .planner-table td[data-label="Månad / Ålder"] {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 12px;
        margin-bottom: 8px;
    }
    
    .planner-table td[data-label="Månad / Ålder"]::before {
        display: none;
    }
    
    /* Inline label using data-label attribute */
    .planner-table td::before {
        content: attr(data-label);
        font-family: var(--font-heading);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 11px;
        letter-spacing: 0.05em;
        color: var(--primary);
        margin-bottom: 4px;
        display: block;
    }
    
    .cell-config {
        gap: 10px;
    }
    
    .cell-row {
        justify-content: space-between;
        gap: 16px;
    }
    
    .weekly-days-control {
        justify-content: flex-end;
        flex: 1;
    }
    
    .day-type-btn-group {
        width: auto;
    }
    
    .double-days-cell {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    
    .double-days-cell .help-text {
        margin-top: 0;
    }
    
    .economy-cell {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .header-content {
        padding: 0 16px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .logo {
        justify-content: center;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .tagline {
        font-size: 12px;
        text-align: center;
    }
    
    .app-container {
        padding: 0 16px;
    }
    
    .config-section {
        padding: 16px;
    }
    
    .planner-section {
        padding: 16px;
    }
    
    .chart-section {
        padding: 16px;
    }
    
    .chart-container {
        height: 240px;
    }
    
    .results-summary {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .summary-card {
        padding: 14px;
        border-radius: var(--radius-md);
    }
    
    .summary-card h3 {
        font-size: 10px;
        margin-bottom: 8px;
    }
    
    .days-left-counter span:first-child {
        font-size: 28px;
    }
    
    .days-left-counter .unit {
        font-size: 11px;
    }
    
    .days-split-item {
        font-size: 11px;
    }
    
    .days-status {
        font-size: 10px;
        margin-top: 4px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 8px auto 0;
    }
    
    .footer-content {
        padding: 0 16px;
    }
    
    .footer-disclaimer p {
        text-align: left;
    }
}
