/*
Theme Name: Child Timer
Theme URI: https://10minutetimer.us/
Description: Premium, Dark-themed GeneratePress child theme for 10minutetimer.us.
Author: Antigravity
Author URI: https://10minutetimer.us/
Template: generatepress
Version: 2.0.0
*/

/* -------------------------------------------------------------
   1. VARIABLES & RESET
------------------------------------------------------------- */
:root {
    /* DEFAULT (DARK) THEME */
    --bg-body: #0f1115;
    --bg-container: #1b1e26;
    --bg-glass: rgba(27, 30, 38, 0.85);

    --primary: #00f3ff;
    --primary-hover: #00c4ce;
    --secondary: #7000ff;
    --accent-red: #ff2a6d;

    --text-main: #ffffff;
    --text-muted: #a0a5b0;

    --border-color: rgba(255, 255, 255, 0.05);

    /* Spacing & Borders */
    --radius-lg: 16px;
    --radius-md: 8px;
    --radius-pill: 50px;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 15px rgba(0, 243, 255, 0.3);

    /* Font Sizes */
    --fs-timer-lg: 8rem;
    --fs-timer-sm: 4rem;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-clock: 'Digital-7 Mono', monospace;
}

/* LIGHT THEME OVERRIDES */
[data-theme="light"] {
    --bg-body: #f0f2f5;
    --bg-container: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.9);

    --primary: #007bff;
    /* Darker blue for light mode visibility */
    --primary-hover: #0056b3;
    --secondary: #6610f2;
    --accent-red: #dc3545;

    --text-main: #212529;
    --text-muted: #6c757d;

    --border-color: rgba(0, 0, 0, 0.1);

    --shadow-card: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 10px rgba(0, 123, 255, 0.2);
}

/* Font Face */
@font-face {
    font-family: 'Digital-7 Mono';
    src: url('assets/fonts/digital-7-mono.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Base Resets */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
}

/* -------------------------------------------------------------
   2. HEADER & FOOTER
------------------------------------------------------------- */
/* Fix Site Title Color */
.main-title a,
.site-branding a {
    color: var(--text-main) !important;
}

/* Fix GP Backgrounds to match Dark Theme */
.inside-article,
.sidebar .widget,
.comments-area,
.site-content {
    background-color: transparent !important;
    box-shadow: none !important;
}

.separate-containers .inside-article {
    background-color: transparent !important;
}

/* Toggle Button */
.menu-item-theme-toggle button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.menu-item-theme-toggle button:hover {
    background: var(--bg-container);
    border-color: var(--primary);
}

/* GeneratePress Overrides for Dark Theme */
.site-header {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-navigation,
.main-navigation ul ul {
    background: transparent !important;
}

.main-navigation a {
    color: var(--text-main) !important;
    font-weight: 500;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a {
    color: var(--primary) !important;
}

.site-footer {
    background-color: var(--bg-container) !important;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0;
}

.site-footer a {
    color: var(--text-main);
}

.site-footer a:hover {
    color: var(--primary);
}

/* -------------------------------------------------------------
   3. HERO SECTION
------------------------------------------------------------- */
.hero-section {
    padding: 6rem 1rem;
    background: radial-gradient(circle at top center, rgba(0, 243, 255, 0.05), transparent 70%);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-main);
    background: linear-gradient(to right, #fff, #b4b4b4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* -------------------------------------------------------------
   4. COMPONENTS & UTILITIES
------------------------------------------------------------- */
/* Glass Cards */
.card-glass {
    background: var(--bg-container);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(5px);
    /* Fallback */
}

/* Buttons */
.button,
button,
input[type="button"],
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Primary Button (Neon Cyan) */
.button.primary,
#btn-start,
#sw-btn-start,
#btn-set-alarm {
    background: var(--primary);
    color: #000;
    /* Contrast for light cyan */
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.button.primary:hover,
#btn-start:hover,
#sw-btn-start:hover,
#btn-set-alarm:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.6);
}

/* Secondary/Ghost Button */
.button.ghost,
.button.secondary {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    box-shadow: none;
}

.button.ghost:hover,
.button.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 243, 255, 0.05);
}

/* Danger/Reset Button */
#btn-reset,
#sw-btn-reset {
    background: transparent;
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

#btn-reset:hover,
#sw-btn-reset:hover {
    background: var(--accent-red);
    color: #fff;
}

/* -------------------------------------------------------------
   5. FEATURE GRID
------------------------------------------------------------- */
.features-section {
    padding: 2rem 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-glass);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    line-height: 1;
}

.feature-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* -------------------------------------------------------------
   6. TOOL INTERFACES (Common)
------------------------------------------------------------- */
.timer-container,
.stopwatch-container,
.alarm-container,
.clock-container {
    background: var(--bg-glass);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    max-width: 900px;
    margin: 4rem auto;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Decoration line at top */
.timer-container::before,
.stopwatch-container::before,
.alarm-container::before,
.clock-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.clock-digits {
    font-family: var(--font-clock);
    font-size: var(--fs-timer-lg);
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    letter-spacing: 4px;
    margin: 2rem 0;
}

/* Controls Wrapper */
.timer-controls,
.stopwatch-controls,
.alarm-input {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Inputs */
input[type="time"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    font-family: var(--font-main);
    outline: none;
}

input[type="time"]:focus {
    border-color: var(--primary);
}

/* Timer Presets */
.timer-presets {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.timer-presets .button {
    font-size: 0.9rem;
    padding: 8px 16px;
    min-width: 60px;
}

/* Laps & Grid */
.laps-list {
    width: 100%;
    max-width: 400px;
    margin-top: 2rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 0;
}

.laps-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: monospace;
    color: var(--text-muted);
}

.tz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tz-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.tz-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.tz-time {
    font-family: var(--font-clock);
    font-size: 2.5rem;
    color: var(--primary);
}

.tz-date {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* -------------------------------------------------------------
   8. UTILITIES & RESPONSIVE
------------------------------------------------------------- */
.hidden {
    display: none !important;
}

.mt-4 {
    margin-top: 1rem;
}

.text-center {
    text-align: center;
}

@media (max-width: 768px) {
    :root {
        --fs-timer-lg: 4.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .timer-container,
    .stopwatch-container,
    .alarm-container,
    .clock-container {
        padding: 1.5rem;
        margin: 2rem 1rem;
    }

    .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Alarm Responsive */
    .digital-clock-orange {
        font-size: 4rem !important;
    }

    .time-picker-row {
        gap: 10px;
    }

    #picker-hour,
    #picker-min {
        width: 60px;
    }

    .picker-btn {
        width: 30px;
    }
}

/* -------------------------------------------------------------
   9. ALARM PAGE REDESIGN (Black & Orange)
------------------------------------------------------------- */
/* View Controls */
.alarm-view-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.control-btn {
    background: transparent;
    border: 1px solid #333;
    color: #666;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.control-btn:hover {
    color: #ff9f00;
    border-color: #ff9f00;
}

.alarm-app-container {
    background: #000;
    color: #ff9f00;
    /* Orange */
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 2rem;
}

/* Main Clock */
.digital-clock-orange {
    font-family: var(--font-clock);
    font-size: calc(9rem * var(--zoom-level, 1));
    /* Large */
    color: #ff9f00;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 159, 0, 0.3);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1rem;
}

.digital-clock-orange .ampm {
    font-size: 0.4em;
    /* Smaller AM/PM */
    margin-left: 10px;
}

.digital-date-orange {
    font-family: var(--font-clock);
    font-size: 2rem;
    color: #ff9f00;
    margin-top: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

/* Buttons */
.btn-green {
    background: #28a745 !important;
    color: #fff !important;
    border: none;
    box-shadow: none;
    border-radius: 4px;
    /* Slight radius */
    padding: 10px 30px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.btn-green:hover {
    background: #218838 !important;
}

.btn-red {
    background: #dc3545 !important;
    color: #fff !important;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
}

.btn-red:hover {
    background: #c82333 !important;
}

.ghost-dark {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 8px 20px;
    border-radius: 4px;
}

.ghost-dark:hover {
    background: #444;
}

/* Modal */
.alarm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(5px);
}

.alarm-modal-content {
    background: #555;
    /* Dark grey */
    color: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-weight: 400;
    font-size: 1.2rem;
    color: #fff;
}

.close-icon {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

/* Picker */
.time-picker-row {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.time-col {
    display: flex;
    flex-direction: column;
}

.time-col label {
    font-size: 0.8rem;
    color: #ddd;
    margin-bottom: 5px;
}

.custom-input-group {
    display: flex;
}

.picker-btn {
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

input#picker-hour,
input#picker-min,
#picker-ampm {
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 1.2rem;
    border: 1px solid #ccc;
    border-left: none;
    border-right: none;
    background: #fff;
    color: #333;
}

#picker-ampm {
    width: 50px;
    font-weight: bold;
    border: 1px solid #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Options */
.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sound-select-group {
    flex: 1;
    margin-right: 15px;
}

.sound-controls {
    display: flex;
    gap: 5px;
}

select#alarm-sound-select {
    width: 100%;
    border-radius: 0;
    padding: 8px;
}

.btn-icon {
    width: 40px;
    background: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
}

.title-row label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #ddd;
}

input.full-width-input {
    width: 100%;
    padding: 8px;
    border-radius: 0;
    border: 1px solid #ccc;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #666;
    display: flex;
    justify-content: space-between;
}

.footer-right {
    display: flex;
    gap: 10px;
}

/* Active Bar */
.alarm-active-bar {
    margin-top: auto;
    width: 100%;
    background: #111;
    padding: 20px;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.active-info {
    font-family: var(--font-clock);
    color: #ff9f00;
    font-size: 1.5rem;
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

/* Bottom Sections */
.alarm-bottom-container {
    max-width: 1000px;
    margin: 2rem auto;
    width: 100%;
}

.alarm-grid-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.alarm-panel {
    background: #0f0f0f;
    padding: 1.5rem;
    border: 1px solid #333;
    /* Dark grey border */
}

.alarm-panel h3 {
    color: #ccc;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

/* Presets Grid */
.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.preset-btn {
    background: #0099ff;
    /* Custom Blue */
    color: #fff;
    border: none;
    padding: 12px 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    border-radius: 0;
    /* Square buttons */
}

.preset-btn:hover {
    background: #007acc;
}

/* Recent List */
.recent-list-header {
    text-align: right;
    margin-top: -35px;
    margin-bottom: 15px;
}

.header-link {
    color: #999;
    font-size: 0.85rem;
    cursor: pointer;
}

.header-link:hover {
    color: #fff;
}

.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #222;
    color: #0099ff;
    cursor: pointer;
    font-size: 0.95rem;
}

.recent-list li:hover {
    color: #fff;
}

.recent-time {
    color: #ccc;
}

/* Instructions */
.alarm-instructions-panel {
    background: #0f0f0f;
    padding: 1.5rem;
    border-top: 1px solid #333;
    color: #aaa;
}

.alarm-instructions-panel h3 {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.instruction-content p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.instructions-text p {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Holidays */
.holiday-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.holiday-item {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    font-size: 0.9rem;
}

.holiday-name {
    color: #0099ff;
    cursor: pointer;
}

.holiday-name:hover {
    color: #fff;
}

.holiday-date {
    color: #fff;
}

.holiday-days {
    color: #666;
    text-align: right;
}

@media (max-width: 900px) {
    .timer-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Fullscreen Styles */
#timer-app-v2:fullscreen {
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#timer-app-v2:fullscreen .timer-header-display {
    margin: 0;
}

#timer-app-v2:fullscreen #timer-display {
    font-size: 30vw;
    line-height: 1;
    margin: 0;
    text-shadow: 0 0 50px rgba(255, 159, 0, 0.4);
}

#timer-app-v2:fullscreen .timer-footer-grid {
    display: none;
}

#timer-app-v2:fullscreen .btn-green,
#timer-app-v2:fullscreen .timer-active-bar {
    position: absolute;
    bottom: 10vh;
}

#timer-app-v2:fullscreen .timer-view-controls {
    position: absolute;
    top: 40px;
    right: 40px;
}

/* Edit Timer Modal Redesign */
.edit-timer-modal {
    background-color: #444 !important;
    max-width: 500px !important;
    color: #eee !important;
    border-radius: 4px !important;
}

.edit-timer-modal .modal-header {
    border-bottom: 1px solid #555;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-timer-modal h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
    color: #fff;
}

.edit-timer-modal .modal-body {
    padding: 20px;
}

.modal-row {
    margin-bottom: 15px;
}

.section-label {
    display: block;
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 8px;
}

/* Segmented Picker */
.segment-picker {
    display: flex;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    height: 40px;
    align-items: center;
}

.segment-picker .picker-btn {
    background: #e0e0e0;
    border: none;
    color: #444;
    width: 35px;
    height: 100%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.segment-picker .picker-btn:hover {
    background: #d0d0d0;
}

.segment-picker .picker-select {
    flex: 1;
    border: none !important;
    background: transparent !important;
    color: #333 !important;
    text-align: center;
    font-size: 1.1rem;
    padding: 0 5px;
    appearance: none;
    cursor: pointer;
    font-weight: bold;
}

/* Custom Radio */
.custom-radio {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-right: 20px;
    font-size: 0.9rem;
    position: relative;
}

.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-mark {
    height: 18px;
    width: 18px;
    background-color: #fff;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    border: 1px solid #ccc;
}

.custom-radio input:checked~.radio-mark {
    background-color: #00a2ff;
    border-color: #00a2ff;
}

.radio-mark:after {
    content: "";
    position: absolute;
    display: none;
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

.custom-radio input:checked~.radio-mark:after {
    display: block;
}

/* Custom Checkbox */
.custom-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-mark {
    height: 18px;
    width: 18px;
    background-color: #fff;
    border-radius: 2px;
    margin-right: 8px;
    border: 1px solid #ccc;
    position: relative;
}

.custom-checkbox input:checked~.checkbox-mark {
    background-color: #00a2ff;
    border-color: #00a2ff;
}

.checkbox-mark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked~.checkbox-mark:after {
    display: block;
}

/* Sound Row */
.sound-row-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sound-select-main {
    flex: 1;
    background: #fff !important;
    color: #333 !important;
    border: none !important;
    height: 40px;
    border-radius: 4px;
    padding: 0 10px;
}

.icon-btn-square {
    background: #e0e0e0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    color: #444;
    cursor: pointer;
    font-size: 1rem;
}

.full-width-input {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    border: none;
    padding: 0 10px;
    background: #fff !important;
    color: #333 !important;
}

.date-input,
.time-input {
    height: 40px;
    border-radius: 4px;
    border: none;
    padding: 0 10px;
    background: #fff !important;
    color: #333 !important;
    margin-right: 10px;
}

/* Footer Buttons */
.edit-timer-modal .modal-footer {
    background: #333;
    padding: 15px 20px;
    border-top: none;
    display: flex;
    justify-content: space-between;
}

.edit-timer-modal .btn-green {
    background-color: #4cbd7a !important;
    border: none !important;
    color: #fff !important;
    padding: 10px 30px !important;
    border-radius: 4px !important;
    font-weight: bold;
}

.edit-timer-modal .ghost-dark {
    background-color: #fff !important;
    color: #444 !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
}

.ml-4 {
    margin-left: 1rem;
}

.horizontal {
    display: flex;
    gap: 15px;
}

/* Running Timer View Fixes */
.timer-running-title {
    color: #ff9f00;
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 2px;
}

#timer-app-v2.timer-active-running {
    background-color: #000 !important;
    color: #fff !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.timer-active-running .timer-footer-grid {
    display: none;
}

.timer-active-running .timer-header-display {
    margin: 0;
    text-align: center;
}

.timer-active-running #timer-display {
    font-size: calc(15vw * var(--zoom-level, 1));
    margin: 20px auto 60px;
    line-height: 1.2;
    display: block;
}

.btn-blue {
    background-color: #00a2ff !important;
    color: #fff !important;
}

.btn-yellow {
    background-color: #ffb400 !important;
    color: #fff !important;
}

.btn-salmon {
    background-color: #f36d6d !important;
    color: #fff !important;
}

.timer-active-bar .button {
    padding: 12px 25px;
    border-radius: 2px;
    font-weight: bold;
    min-width: 120px;
}


.timer-active-bar {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    /* Added margin-top */
}

.timer-active-bar .button {
    flex: 0 1 auto;
    border: none !important;
    font-size: 1rem;
    padding: 12px 20px !important;
    transition: transform 0.2s, background-color 0.2s;
    cursor: pointer;
}

.timer-active-bar .button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}


/* Timer Result Modal */
.timer-result-modal {
    background: #666 !important;
    /* Darker grey as per screenshot */
    border-radius: 8px !important;
    max-width: 500px !important;
}

.timer-result-modal .modal-header {
    background: #444 !important;
    border-bottom: 2px solid #555 !important;
}

.timer-result-modal .modal-body {
    background: #666 !important;
    color: #fff !important;
}

.result-cartoon {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    background: #fff;
}

.result-title-main {
    font-weight: bold;
    letter-spacing: 1px;
}

.result-duration-sub {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}

.btn-green-solid {
    background-color: #4cbd7a !important;
    color: #fff !important;
}

.btn-salmon-solid {
    background-color: #f36d6d !important;
    color: #fff !important;
}


/* Polish Result Modal */
.result-modal-body {
    padding: 40px 20px;
}

.result-icon-container {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.result-title-main {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.result-duration-sub {
    font-size: 1.8rem;
    color: #ccc;
    margin-bottom: 20px;
}

.timer-result-modal .modal-footer {
    justify-content: center !important;
    gap: 20px;
    padding: 25px !important;
}

.timer-result-modal .button {
    min-width: 130px;
    border-radius: 4px !important;
    font-size: 1.1rem;
}

/* Timer Specific Base Styles */
.timer-app-container {
    --zoom-level: 1;
    /* Initial zoom variable */
    background: #000 !important;
    color: #ff9f00;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100vw !important;
    left: 50% !important;
    transform: translateX(-50%);
    border-radius: 0;
    overflow: hidden;
    margin-top: 2rem;
    padding: 60px 20px;
}

.timer-header-display {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timer-view-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

/* Ensure footer grid works */
.timer-footer-grid {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .timer-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-section h3 {
    color: #ff9f00;
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.presets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.presets-grid a {
    color: #ccc;
    text-decoration: none;
    padding: 5px 0;
    font-size: 0.95rem;
}

.presets-grid a:hover {
    color: #ff9f00;
}


/* Timer Modal Styling (Segmented Pickers & Modes) */
.mode-selector {
    display: flex;
    background: #444;
    border-radius: 4px;
    padding: 2px;
    margin-bottom: 20px;
}

.mode-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    color: #ccc;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.mode-selector input[type='radio'] {
    display: none;
}

.mode-selector input[type='radio']:checked+.mode-btn {
    background: #00a2ff;
    color: #fff;
}

.segmented-picker {
    display: flex;
    justify-content: center;
    gap: 30px;
    background: #444;
    padding: 20px;
    border-radius: 6px;
    margin: 15px 0;
}

.picker-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.picker-col select {
    background: #333 !important;
    color: #fff !important;
    border: 1px solid #555 !important;
    font-size: 1.5rem !important;
    padding: 5px 10px !important;
    border-radius: 4px;
    width: 70px;
}

.picker-col span {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.on-zero-options {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.on-zero-btn {
    flex: 1;
    padding: 8px;
    background: #444;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    color: #ccc;
    font-size: 0.85rem;
}

.on-zero-options input[type='radio']:checked+.on-zero-btn {
    background: #ff9f00;
    color: #000;
}

.full-width-input {
    width: 100%;
    background: #333 !important;
    border: 1px solid #555 !important;
    color: #fff !important;
    padding: 10px !important;
    border-radius: 4px;
    margin-top: 5px;
}

.sound-row-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sound-select-main {
    flex: 1;
    background: #333 !important;
    color: #fff !important;
    border: 1px solid #555 !important;
    height: 40px;
}

/* Checkbox Polish */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #ccc;
    cursor: pointer;
}


/* Recently Used & Holiday Polish */
.recent-item,
.holiday-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #222;
}

.recent-label,
.holiday-name {
    color: #fff;
    cursor: pointer;
}

.recent-label:hover {
    color: #ff9f00;
}

.recent-duration,
.holiday-date,
.holiday-days {
    color: #888;
    font-size: 0.9rem;
}