/* =========================================================
   Global Reset
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* =========================================================
   THEME TOKENS (Light default, overridden in .dark-mode)
   ========================================================= */

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --bg-color: #e6ecf4;
--text-color: #4b5563;   /* Slate-600 = soft dark gray */
--muted-text: #6b7280;   /* Slate-500 = soft medium gray */

    --surface-color: #e6ecf4;
    --surface-strong: #eef3fb;

    /* global neumorphic shadows – LIGHT */
    --neu-raised-shadow:
        10px 10px 24px rgba(163, 177, 198, 0.9),
        -10px -10px 24px rgba(255, 255, 255, 1);
    --neu-pressed-shadow:
        inset 8px 8px 18px rgba(163, 177, 198, 0.95),
        inset -8px -8px 18px rgba(255, 255, 255, 0.98);

    background: var(--bg-color);
    color: var(--text-color);

    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 16px;
}

/* DARK MODE – like your reference image */
body.dark-mode {
    /* ===== macOS-inspired soft dark gray ===== */

    --bg-color: #1c1c1e;            /* system background (SF Dark) */
    --surface-color: #1d1d1f;       /* grouped background */
    --surface-strong: #2c2c2e;      /* control surfaces, input + chips */

    /* TEXT */
    --text-color: #e5e5e7;          /* Apple neutral white */
    --muted-text: #9e9ea2;          /* secondary gray */

    /* SHADOWS (softened + neutral to mimic macOS translucency) */
    --neu-raised-shadow:
        8px 8px 20px rgba(0, 0, 0, 0.72),     /* dark outer */
        -6px -6px 14px rgba(255, 255, 255, 0.06); /* subtle highlight */

    --neu-pressed-shadow:
        inset 6px 6px 14px rgba(0, 0, 0, 0.80),
        inset -4px -4px 10px rgba(255, 255, 255, 0.08);

    background: var(--bg-color);
    color: var(--text-color);
}



/* =========================================================
   App Shell
   ========================================================= */

.app-bg {
    /* Neomorphic style: remove glass gradients, keep subtle tint if desired */
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 60%);
    opacity: 0.6;
    pointer-events: none;
    z-index: -2;
}

.app-shell {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

/* Container Card (primary neuromorphic surface) */
.container {
    background: var(--surface-color);
    border-radius: 24px;
    padding: 18px 18px 20px;
    box-shadow: var(--neu-raised-shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - 32px);
    overflow: hidden;
}

.input-field input {
    /* raised by default */
    box-shadow: var(--neu-raised-shadow);
}

.card,
.summary-pill,
.table-wrapper{
    background: var(--surface-strong);
    box-shadow: var(--neu-raised-shadow);
}

.secondary-btn {
    /* make it a bit lighter than the card so it “pops” */
    background: #f5f7ff;

    font-size: 0.70rem;
    color: #4b5563;

    padding: 8px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;

    /* STRONGER RAISED NEUMORPHIC SHADOW FOR LIGHT MODE */
    box-shadow:
        6px 6px 12px rgba(163, 177, 198, 0.85),
        -6px -6px 12px rgba(255, 255, 255, 0.98);

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.secondary-btn:hover {
    transform: translateY(-1px);
}
/* Undo (Cancel Entry) button – smaller, tucked under Add Entry */
.undo-btn {
    align-self: flex-end;
    font-size: 0.78rem;
    padding: 8px 16px;
    margin-top: 6px;
}

/* Keep it consistent in dark mode */
body.dark-mode .undo-btn {
    /* inherits secondary-btn shadows/colors; override only if needed */
}


body.dark-mode .secondary-btn {
    color: #d1d5db; /* light gray text for dark background */
    box-shadow:
        2px 4px 8px rgba(0, 0, 0, 0.85),
        -1px -1px 2px rgba(148, 163, 184, 0.30);
}


/* keep text colors consistent */
.section-title { color: var(--text-color); }
.section-subtitle,
.helper-text { color: var(--muted-text); }

/* =========================================================
   Header
   ========================================================= */

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logo block – neuromorphic */
.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface-strong);
    box-shadow:
        6px 6px 10px var(--shadow-dark),
        -6px -6px 10px var(--shadow-light);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text h1 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.02em;
    color: var(--text-color);
}

.brand-text p {
    font-size: 0.78rem;
    margin: 3px 0 0;
    color: var(--muted-text);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Version pill – soft emboss */
.version-pill {
    font-size: 0.72rem;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--text-color);
    background: var(--surface-strong);
    box-shadow:
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    border: none;
}

/* =========================================================
   Language Toggle – flat neumorphic bar
   ========================================================= */

.language-toggle {
    display: inline-flex;
    padding: 2px;
    border-radius: 999px;
    background: var(--surface-strong);
    box-shadow:
        1px 2px 4px rgba(15, 23, 42, 0.20),
        -1px -1px 2px rgba(255, 255, 255, 0.35);
}

body.dark-mode .language-toggle {
    box-shadow:
        2px 4px 8px rgba(0, 0, 0, 0.85),
        -1px -1px 2px rgba(148, 163, 184, 0.30);
}


.lang-btn {
    border: none;
    background: transparent;
    color: var(--muted-text);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 999px;
    cursor: pointer;

        /* NEW tighter raised shadow */
    box-shadow:
        1px 2px 3px rgba(15, 23, 42, 0.15),
        -1px -1px 2px rgba(255, 255, 255, 0.30);

    transition:
        background 180ms cubic-bezier(0.25, 0.8, 0.25, 1),
        color 180ms cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 180ms cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 180ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.dark-mode .lang-btn {
    box-shadow:
        2px 3px 6px rgba(0, 0, 0, 0.8),
        -1px -1px 2px rgba(148, 163, 184, 0.25);
}

.lang-btn.active {
    background: var(--accent-soft);
    color: var(--accent);
    box-shadow:
        inset 1px 1px 3px rgba(0, 0, 0, 0.45),
        inset -1px -1px 2px rgba(255, 255, 255, 0.25);
}

body.dark-mode .lang-btn.active {
    box-shadow:
        inset 1px 1px 3px rgba(0, 0, 0, 0.85),
        inset -1px -1px 2px rgba(148, 163, 184, 0.25);
}

/* =========================================================
   Dark Mode Switch – circular neuromorphism
   ========================================================= */

.dark-mode-toggle {
    display: flex;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--surface-strong);
    border-radius: 999px;
    transition: 260ms cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow:
        5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    border-radius: 50%;
    background: var(--surface-strong);
    box-shadow:
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    transition: 260ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

input:checked + .slider {
    background: var(--accent-soft);
}

input:checked + .slider:before {
    transform: translateX(18px);
}

/* =========================================================
   Tabs
   ========================================================= */

.tab-navigation {
    display: flex;
    gap: 8px;
    background: var(--surface-strong);
    border-radius: 999px;
    padding: 4px;
    box-shadow:
        inset 4px 4px 8px var(--inner-shadow-dark),
        inset -4px -4px 8px var(--inner-shadow-light);
}

.tab-button {
    flex: 1;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--muted-text);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 10px;
    cursor: pointer;
    transition:
        background 200ms cubic-bezier(0.25, 0.8, 0.25, 1),
        color 200ms cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 220ms cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 200ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tab-button.active {
    background: var(--surface-strong);
    color: var(--text-color);
    box-shadow: var(--neu-pressed-shadow);
}

/* =========================================================
   Main Content Area
   ========================================================= */

.tab-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
    padding-bottom: 2px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Card – inner surface */
.card {
    position: relative;
    background: var(--surface-color);
    border-radius: 18px;
    padding: 16px 14px 18px;
    box-shadow:
        14px 14px 26px var(--shadow-dark),
        -14px -14px 26px var(--shadow-light);
}

/* Section Titles */
.section-title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
}

.section-subtitle {
    margin: 0 0 12px;
    font-size: 0.8rem;
    color: var(--muted-text);
}

/* =========================================================
   Fields / Inputs
   ========================================================= */

.input-field {
    position: relative;
    margin-bottom: 14px;
}

/* Neomorphic inputs */
.input-field input {
    width: 100%;
    border-radius: 12px;
    padding: 14px 12px 10px;
    border: none;
    background: var(--surface-strong);
    color: var(--text-color);
    font-size: 16px;
    outline: none;
    box-shadow:
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
    transition:
        box-shadow 200ms cubic-bezier(0.35, 0.85, 0.35, 1),
        transform 200ms cubic-bezier(0.35, 0.85, 0.35, 1),
        background 200ms cubic-bezier(0.35, 0.85, 0.35, 1);
}

.input-field input:focus {
    box-shadow: var(--neu-pressed-shadow);
}

/* Floating Label */
.input-field input::placeholder {
    color: transparent;
}

.input-field label {
    position: absolute;
    left: 12px;
    top: 12px;
    font-size: 0.8rem;
    color: var(--muted-text);
    pointer-events: none;
    transition:
        top 190ms cubic-bezier(0.35, 0.85, 0.35, 1),
        font-size 190ms cubic-bezier(0.35, 0.85, 0.35, 1),
        padding 190ms cubic-bezier(0.35, 0.85, 0.35, 1),
        color 190ms cubic-bezier(0.35, 0.85, 0.35, 1),
        background 190ms cubic-bezier(0.35, 0.85, 0.35, 1),
        box-shadow 210ms cubic-bezier(0.35, 0.85, 0.35, 1),
        border-color 210ms cubic-bezier(0.35, 0.85, 0.35, 1),
        transform 190ms cubic-bezier(0.35, 0.85, 0.35, 1);
}

/* Label pill */
.input-field input:focus + label,
.input-field input:not(:placeholder-shown) + label {
    top: -12px;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--surface-color);
    color: var(--accent);
    border: 1px solid rgba(148,163,184,0.6);
    box-shadow:
        2px 2px 4px var(--shadow-dark),
        -2px -2px 4px var(--shadow-light);
    z-index: 1;
}

/* Disabled state for sick day fields */
input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* =========================================================
   Layout small rows
   ========================================================= */

.dual-row {
    display: flex;
    align-items: flex-end;
    margin-bottom: 6px;
}

/* Add a bit of vertical space between Name and the Date row */
.dual-row.date-row {
    margin-top: 6px;
}

/* Nudge End Time slightly to the right – works on iOS & Android */
.end-time-field {
    margin-left: 12px;
}

/* =========================================================
   Chips / Sick Day toggle
   ========================================================= */
/* Sick Day chip sits lower so it doesn't collide */
.chip-group {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 8px;
}

/* Chip label wrapper */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;   /* no background / shadow on wrapper */
    padding: 0;
    border-radius: 999px;
    box-shadow: none;          /* <- kills the white/black cloud */
}


/* Hide checkbox */
.chip-toggle input {
    display: none;
}

/* The visible pill (span) – RAISED by default */
.chip-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface-strong);
    color: #4b5563; /* Slate-600 */

    font-size: 0.70rem;   /* adjust as needed */

    box-shadow:
        1px 2px 4px rgba(15, 23, 42, 0.20),
        -1px -1px 2px rgba(255, 255, 255, 0.35);

    transition: box-shadow 160ms ease, transform 140ms ease, background 160ms ease;
}

/* Dark mode default (still raised) */
body.dark-mode .chip-toggle span {
    background: var(--surface-strong);
    /* NEW TEXT COLOR FOR DARK MODE */
    color: #d1d5db; /* Slate-300 - crisp but not blinding */
    box-shadow:
        2px 4px 8px rgba(0, 0, 0, 0.85),
        -1px -1px 2px rgba(148, 163, 184, 0.30);
}

/* DEPRESSED when clicked / toggled ON */
.chip-toggle input:checked + span {
    background: var(--surface-strong);
    color: var(--text-color);

    box-shadow:
        inset 2px 2px 4px rgba(15, 23, 42, 0.6),
        inset -1px -1px 2px rgba(255, 255, 255, 0.18);

    transform: translateY(2px);
}

body.dark-mode .chip-toggle input:checked + span {
    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.9),
        inset -1px -1px 2px rgba(148, 163, 184, 0.25);
}
/* Workday summary chip row */
.workday-summary-row {
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
}

/* Workday summary chip pill */
.workday-summary-chip {
    display: none; /* hidden until a date is selected */
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface-strong);
    font-size: 0.70rem;
    color: #4b5563;

    box-shadow:
        1px 2px 4px rgba(15, 23, 42, 0.20),
        -1px -1px 2px rgba(255, 255, 255, 0.35);
}

/* Dark mode */
body.dark-mode .workday-summary-chip {
    background: var(--surface-strong);
    color: #d1d5db;
    box-shadow:
        2px 4px 8px rgba(0, 0, 0, 0.85),
        -1px -1px 2px rgba(148, 163, 184, 0.30);
}


/* =========================================================
   Options row
   ========================================================= */

.options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0;
}

.collapsible {
    margin-top: 4px;
}

/* Success pulse for Add Entry button (desktop + iOS Safari) */
@-webkit-keyframes add-entry-success-pulse {
    0% {
        -webkit-transform: translateY(0) scale(1);
        transform: translateY(0) scale(1);
        box-shadow: var(--neu-raised-shadow);
    }
    50% {
        -webkit-transform: translateY(-1px) scale(1.05);
        transform: translateY(-1px) scale(1.05);
        box-shadow:
            16px 16px 32px rgba(15, 23, 42, 0.55),
            -10px -10px 26px rgba(255, 255, 255, 0.9);
    }
    100% {
        -webkit-transform: translateY(0) scale(1);
        transform: translateY(0) scale(1);
        box-shadow: var(--neu-raised-shadow);
    }
}

@keyframes add-entry-success-pulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: var(--neu-raised-shadow);
    }
    50% {
        transform: translateY(-1px) scale(1.05);
        box-shadow:
            16px 16px 32px rgba(15, 23, 42, 0.55),
            -10px -10px 26px rgba(255, 255, 255, 0.9);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: var(--neu-raised-shadow);
    }
}

.primary-btn.success-pulse {
    -webkit-animation: add-entry-success-pulse 0.45s ease-out;
    animation: add-entry-success-pulse 0.45s ease-out;
    will-change: transform, box-shadow;
}


/* =========================================================
   Buttons
   ========================================================= */

.actions-row {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.actions-row.stacked {
    flex-direction: column;
}

.primary-btn,
.secondary-btn {
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 180ms cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 210ms cubic-bezier(0.25, 0.8, 0.25, 1),
        background 190ms cubic-bezier(0.25, 0.8, 0.25, 1),
        filter 190ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Accent primary button – still fits neuromorphic */
.primary-btn {
    background: var(--surface-strong);   /* ⬅ matches your UI */
    color: #0b1120;
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;

    /* raised look */
    box-shadow:
        6px 6px 2px rgba(0, 0, 0, 0.35),
        -4px -4px 2px rgba(255, 255, 255, 0.35);

    transition:
        box-shadow 160ms ease,
        transform 160ms ease,
        filter 160ms ease;
}

/* Dark mode variant – same behavior, just tuned for dark background */
body.dark-mode .primary-btn {
    color: #020617;
    box-shadow:
        6px 6px 14px rgba(0, 0, 0, 0.7),
        -4px -4px 10px rgba(148, 163, 184, 0.4);
}

/* quick pressed effect on click */
.primary-btn:active,
.secondary-btn:active {
    box-shadow: var(--neu-pressed-shadow);
}

/* Secondary button as soft surface */
.secondary-btn {
    background: var(--surface-strong);
    color: var(--text-color);
    box-shadow:
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
}

.secondary-btn:hover {
    transform: translateY(-1px);
}

/* =========================================================
   Notification
   ========================================================= */

.notification {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
    border: 1px solid rgba(22,163,74,0.35);
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition:
        opacity 200ms cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 200ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.dark-mode .notification {
    background: rgba(22, 163, 74, 0.18);
    color: #bbf7d0;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   Total Hours pill
   ========================================================= */

.summary-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--surface-strong);
    box-shadow:
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    color: var(--text-color);
    font-size: 0.78rem;
    margin-bottom: 10px;
}

/* Helper text */
.helper-text {
    font-size: 0.76rem;
    color: var(--muted-text);
    margin: 2px 2px 0;
}

/* =========================================================
   Table – flat neuromorphic slab
   ========================================================= */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 4px;
    border-radius: 12px;
    background: var(--surface-strong);
    box-shadow:
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
    border: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

thead {
    background: var(--surface-color);
}

thead th {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 8px 6px;
    color: var(--text-color);
    white-space: nowrap;
}

tbody tr:nth-child(odd),
tbody tr:nth-child(even) {
    background: var(--surface-strong);
}

tbody td {
    font-size: 0.7rem;
    padding: 7px 6px;
    color: var(--text-color);
    text-align: center;
}

/* Delete button */
.delete-button {
    border: none;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #b91c1c;
    background: var(--surface-strong);
    box-shadow:
        3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light);
    cursor: pointer;
    transition:
        transform 160ms cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 190ms cubic-bezier(0.25, 0.8, 0.25, 1),
        background 180ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

.delete-button:active {
    transform: scale(0.95);
}

/* =========================================================
   Sick Day Animation (unchanged)
   ========================================================= */

.sick-day-animation {
    pointer-events: none;
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 9999;
}

.sick-day-animation .emoji {
    position: absolute;
    top: -10%;
    animation: fall 1.4s linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 480px) {
    .container {
        padding: 14px 14px 16px;
        border-radius: 22px;
    }
}


/* Make the dark mode toggle RAISED */
.switch .slider {
    background: var(--surface-strong, #ffffff);
    box-shadow:
        6px 6px 14px rgba(0, 0, 0, 0.28),
        -6px -6px 14px rgba(255, 255, 255, 0.6);
}

/* Make the knob also raised */
.switch .slider:before {
    background: var(--surface-strong, #ffffff);
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.28),
        -4px -4px 10px rgba(255, 255, 255, 0.6);
}

.switch input:checked + .slider {
    box-shadow:
        inset 6px 6px 14px rgba(0, 0, 0, 0.35),
        inset -6px -6px 14px rgba(255, 255, 255, 0.12);
}


/* Raised default state for Add Entry (and other primary buttons) */
.primary-btn {
    background: var(--surface-strong);   /* ⬅ matches your UI */
    color: #0b1120;
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;

    /* raised look */
    box-shadow:
        6px 6px 2px rgba(0, 0, 0, 0.35),
        -4px -4px 2px rgba(255, 255, 255, 0.35);

    transition:
        box-shadow 160ms ease,
        transform 160ms ease,
        filter 160ms ease;
}

/* Dark mode variant – same behavior, just tuned for dark background */
body.dark-mode .primary-btn {
    color: #020617;
    box-shadow:
        6px 6px 14px rgba(0, 0, 0, 0.7),
        -4px -4px 10px rgba(148, 163, 184, 0.4);
}

/* Pressed-in effect while the user is actively clicking/tapping */
.primary-btn:active {
    /* inner (sunken) shadow */
    box-shadow:
        inset 4px 4px 10px rgba(0, 0, 0, 0.65),
        inset -4px -4px 10px rgba(255, 255, 255, 0.12);
    transform: translateY(1px); /* small physical “press” */
    filter: brightness(0.96);
}
/* =========================================================
   Sick Day button – muted green, tuned per mode
   ========================================================= */

/* LIGHT MODE */
#sick-day + span {
    background: #e6f4ea;          /* muted soft green */
    color: #2d5a3f;
    box-shadow:
        1px 2px 4px rgba(15, 23, 42, 0.25),
        -1px -1px 2px rgba(255, 255, 255, 0.35) !important;
}

#sick-day:checked + span {
    background: #d7ecdf;
    color: #234c34;
    box-shadow:
        inset 2px 2px 4px rgba(15, 23, 42, 0.40),
        inset -1px -1px 2px rgba(255, 255, 255, 0.20) !important;
    transform: translateY(2px);
}

/* DARK MODE */
body.dark-mode #sick-day + span {
    background: #22362c;          /* deep muted green (no glow) */
    color: #cce7d6;               /* soft mint text */
    box-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.80),      /* darker outer */
        -2px -2px 4px rgba(125, 150, 140, 0.15) !important; /* softer highlight */
}

body.dark-mode #sick-day:checked + span {
    background: #1a2c23;          /* deeper pressed-in green */
    color: #d9f2e4;
    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.85),
        inset -1px -1px 2px rgba(125, 150, 140, 0.20) !important;
    transform: translateY(2px);
}
/* Force Add Entry text color in dark mode */
body.dark-mode .primary-btn {
    color: #e5e7eb !important;  /* light gray/white text */
}
/* =========================================================
   UNIQUE DAYS COUNTER (BOTTOM RIGHT)
   Matches existing neumorphic design
   ========================================================= */

.days-counter-container {
    position: absolute;
    bottom: 34px;   /* ← raised back to original “sweet spot” */
    left: 20px;
    z-index: 20;
}


.days-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--surface-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--neu-raised-shadow);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.dark-mode .days-circle {
    background: var(--surface-color);
    box-shadow: var(--neu-raised-shadow);
}

.days-number {
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1;
}

.days-label {
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--muted-text);
    letter-spacing: 0.5px;
}
/* =========================================================
   UNIQUE DAYS COUNTER — SMALLER + BOTTOM-LEFT OF CARD
   ========================================================= */

.days-counter-container {
    position: absolute;
    bottom: 24px;    /* inside the card */
    left: 24px;
    z-index: 20;
}

.days-circle {
    width: 80px;     /* smaller */
    height: 80px;
    border-radius: 50%;
    background: var(--surface-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--neu-raised-shadow);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.dark-mode .days-circle {
    background: var(--surface-color);
    box-shadow: var(--neu-raised-shadow);
}

.days-number {
    font-size: 1.2rem;   /* scaled down */
    font-weight: 600;
    color: var(--text-color);
    line-height: 1;
}

.days-label {
    margin-top: 2px;
    font-size: 0.55rem;   /* scaled down */
    color: var(--muted-text);
    letter-spacing: 0.3px;
}
/* Make the days counter ignore all taps/clicks (for Android Chrome especially) */
/*.days-circle,
.days-circle * {
    pointer-events: none;
}*/
/* Ensure primary button is always clickable above any overlays */
.primary-btn {
    position: relative;
    z-index: 50;
}
/* =========================================================
   SICK DAY MODE COLOR SCHEME
   - Soft green in light mode
   - Forest green in dark mode
   - Only colors are affected; layout & shadows unchanged
   ========================================================= */

/* Light mode sick theme */
body.sick-mode {
    --bg-color: #e8f7ec;          /* soft green background */
    --surface-color: #f4fdf7;     /* light panel */
    --surface-strong: #ffffff;
    --text-color: #1f3321;        /* deep greenish text */
    --muted-text: #4c6f4f;
}

/* Dark mode sick theme (body has both .dark-mode and .sick-mode) */
body.dark-mode.sick-mode {
    --bg-color: #07170a;          /* forest green background */
    --surface-color: #122218;     /* dark green panel */
    --surface-strong: #1b3123;
    --text-color: #e4f3e7;        /* light greenish text */
    --muted-text: #97b79c;
}

/* (Optional) keep main button in harmony with sick theme */
body.sick-mode .primary-btn {
    background: var(--surface-strong);
    color: var(--text-color);
}

body.dark-mode.sick-mode .primary-btn {
    background: var(--surface-strong);
    color: var(--text-color);
}
/* =========================================================
   Unique Days Circle – Glow on increment
   Blue glow in light mode, soft white in dark mode
   ========================================================= */

/* Color token for glow */
body {
    --day-glow-color: rgba(37, 99, 235, 0.85); /* blue for light mode */
}

body.dark-mode {
    --day-glow-color: rgba(255, 255, 255, 0.85); /* soft white for dark mode */
}

/* Ensure the circle can host the pseudo-element */
.days-circle {
    position: relative;
}

/* One-shot glow animation */
.days-circle-glow::before {
    content: "";
    position: absolute;
    inset: -6px;                /* just outside the circle */
    border-radius: 50%;
    border: 2px solid var(--day-glow-color);
    opacity: 0;
    pointer-events: none;
    animation: days-circle-glow-pulse 0.7s ease-out;
}

/* Pulse outward + fade */
@keyframes days-circle-glow-pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* =========================================================
   Days overlay panel (press-and-hold info)
   ========================================================= */

.days-overlay {
    position: fixed;
    display: none;
    background: var(--surface-color);
    box-shadow: var(--neu-raised-shadow);
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 0.7rem;
    color: var(--text-color);
    max-width: 260px;
    min-width: 200px;
    pointer-events: none;   /* overlay itself never steals clicks */
    z-index: 999;
}

.days-overlay.visible {
    display: block;
}

.days-overlay-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.days-overlay-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.days-overlay-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.days-overlay-list li {
    padding: 2px 0;
}

.days-overlay-date {
    font-weight: 500;
    margin-right: 4px;
}

.days-overlay-jobs {
    display: block;
    font-size: 0.7rem;
    color: var(--muted-text);
}

.days-overlay-empty {
    margin: 0;
    color: var(--muted-text);
}

/* Make cards a positioning context for the day counter */
.card {
    position: relative;
}

/* =========================================================
   Time Entry Live Preview
   ========================================================= */

.time-preview {
    margin-top: 8px;
    padding: 10px 14px;
    background: var(--surface-color);
    border-radius: 14px;
    box-shadow: var(--neu-inset-shadow);
    font-size: 0.8rem;
    color: var(--muted-text);
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px;
}

.time-preview-line {
    font-size: 0.75rem;
    color: var(--text-color);
}
/* Layout for days counter + hours preview row */
.days-counter-container {
    position: absolute;
    left: 20px;
    bottom: 52px;   /* adjust as needed to sit where you like */
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Small, subtle text next to the circle */
.hours-preview {
    font-size: 0.75rem;
    color: var(--muted-text);
    white-space: nowrap;
}
/* Layout for days counter + hours preview row */
.days-counter-container {
    position: absolute;
    left: 20px;
    bottom: 52px;          /* adjust this to move the whole row up/down */
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Small, subtle text next to the circle */
.hours-preview {
    font-size: 0.75rem;
    color: var(--muted-text);
    white-space: nowrap;
}
.chip-group {
    display: flex;
    flex-direction: column;   /* stack Sick Day + Summary vertically */
    align-items: flex-end;    /* move them to the RIGHT side */
    gap: 6px;
}

