:root {
    --bg-body: transparent;
    --bg-card: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --default-accent: #10b981;
    --primary-btn: #0f172a;
    --border-radius: 12px;
    --font-family: 'Roboto', sans-serif;
}

#htp-app-container {
    font-family: var(--font-family);
    background: var(--bg-body);
    color: var(--text-primary);
    padding: 10px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Header */
.htp-header-section {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #10b981;
    margin-bottom: 25px;
}

.htp-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.htp-title-group h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 5px 0;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
}

.htp-subtitle {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
}

.htp-btn-new {
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.htp-btn-new:hover {
    opacity: 0.9;
}

/* Timer Section */
.htp-timer-container {
    text-align: center;
}

.htp-timer-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef2ff;
    color: #4f46e5;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.htp-timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

@media (max-width: 600px) {
    .htp-timer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.htp-time-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.htp-time-val {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
}

.htp-time-lbl {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 5px;
    text-transform: uppercase;
}

.htp-timer-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.htp-btn-start {
    background: var(--default-accent);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
}

.htp-btn-reset {
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Habits Grid */
.htp-habit-wrapper {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #10b981;
    margin-bottom: 25px;
    --habit-color-local: var(--habit-color, var(--default-accent));
}

.htp-habit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Changed to start for badges */
    margin-bottom: 25px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 15px;
}

@media (max-width: 640px) {
    .htp-habit-header {
        flex-direction: column;
        gap: 16px;
    }
    .htp-habit-stats {
        width: 100%;
        justify-content: space-between;
    }
}

.htp-habit-meta {
    font-size: 0.8rem;
    color: var(--habit-color-local);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.htp-habit-title {
    font-size: 1.5rem;
    color: #111827;
    font-weight: 700;
    margin: 0 0 5px 0;
}

/* Motivation & Badges */
.htp-motivation-msg {
    font-size: 0.9rem;
    color: #4b5563;
    font-style: italic;
    margin-top: 5px;
    margin-bottom: 8px;
}

.htp-badges-row {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.htp-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    background: #fef3c7;
    color: #d97706;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid #fcd34d;
    font-weight: 600;
}

.htp-badge.silver {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #e5e7eb;
}

.htp-badge.gold {
    background: #fef9c3;
    color: #ca8a04;
    border-color: #facc15;
}

.htp-habit-stats {
    display: flex;
    align-items: start;
    gap: 20px;
}

.htp-streak-info {
    font-size: 0.9rem;
    color: #374151;
    margin-right: 10px;
    text-align: right;
}

.htp-percent {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    text-align: right;
}

.htp-fraction {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* DROP DOWN MENU */
.htp-action-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    width: 200px;
    display: none;
    z-index: 100;
    overflow: hidden;
}

.htp-action-menu.active {
    display: block;
}

.htp-action-menu button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
}

.htp-action-menu button:hover {
    background: #f9fafb;
}

.htp-action-menu button.text-red {
    color: #ef4444;
}

.htp-action-menu button.text-red:hover {
    background: #fef2f2;
}

.htp-action-menu hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 0;
}

.htp-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.htp-icon-btn:hover {
    border-color: #d1d5db;
    color: #111827;
}

.htp-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 12px;
}

/* DAY BOX */
.htp-day-box {
    aspect-ratio: 1;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.htp-day-box:hover {
    transform: scale(1.05);
}

/* COMPLETED STATE */
.htp-day-box.active.completed {
    background: var(--habit-color-local);
    /* border-color handled inline */
    color: white;
    font-size: 0;
}

.htp-day-box.active.completed::after {
    content: '✓';
    font-size: 1.6rem;
    display: block;
}

/* FAILED STATE */
.htp-day-box.active.failed {
    background: #ef4444;
    border-color: #ef4444 !important;
    /* Force red border for fail */
    color: white;
    font-size: 0;
}

.htp-day-box.active.failed::after {
    content: '✕';
    font-size: 1.4rem;
    display: block;
}

/* Modal */
.htp-modal {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.htp-modal.active {
    opacity: 1;
    pointer-events: all;
}

.htp-modal-content {
    background: white;
    color: #111827;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 520px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    position: relative;
}

.htp-form-group {
    margin-bottom: 20px;
}

.htp-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #111827;
    font-size: 1rem;
}

.htp-input:focus {
    border-color: var(--primary-btn);
    background: white;
    outline: none;
}

.htp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .htp-grid-2 {
        grid-template-columns: 1fr;
    }
}

.htp-form-row {
    margin-bottom: 20px;
}

/* Sticky action bar to prevent hiding on mobile */
.htp-modal-actions {
    position: sticky;
    bottom: 0;
    background: white;
    padding-top: 12px;
    margin-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Close X button */
.htp-close-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.htp-close-x:hover {
    background: #f9fafb;
}

/* 24h hour selector */
.htp-time-toggle {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 10px;
}

.htp-time-toggle button {
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
}

.htp-time-toggle button.active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.htp-hours-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 2px;
    scrollbar-width: thin;
}

.htp-hour-pill {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #111827;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}

.htp-hour-pill.selected-start {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.htp-hour-pill.selected-end {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

/* Manual time input in one row */
.htp-time-row {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0;
}

.htp-time-section {
    display: grid;
    gap: 12px;
}

.htp-time-title {
    font-weight: 700;
    color: #111827;
    font-size: 0.95rem;
}

.htp-time-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    border-radius: 12px;
}

.htp-time-block-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.htp-time-block .htp-24h-toggle {
    margin-left: 0;
}

.htp-time-duration-inline {
    margin-left: auto;
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 600;
}

.htp-time-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 8px;
    border-radius: 12px;
}

.htp-time-label {
    font-size: 0.85rem;
    color: #334155;
    font-weight: 700;
}

.htp-time-subtitle {
    font-weight: 700;
    color: #334155;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.htp-time-picker {
    margin-top: 8px;
    width: 100%;
}

.htp-picker-title {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 700;
    margin: 6px 0;
}

.htp-chip-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

@media (max-width: 640px) {
    .htp-chip-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.htp-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 8px;
    text-align: center;
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
}

.htp-chip.active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.htp-hhmm {
    display: flex;
    align-items: center;
    gap: 4px;
}

.htp-time-num {
    width: 56px;
    text-align: center;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
}

.htp-24h-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 6px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.htp-time-step-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #374151;
}

.htp-time-step-btn:hover {
    background: #f3f4f6;
}

/* Color Picker Swatches */
.htp-color-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.htp-color-option {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.2s;
}

.htp-color-option:hover {
    transform: scale(1.1);
}

.htp-color-radio {
    display: none;
}

.htp-color-radio:checked+.htp-color-option {
    border-color: #111827;
    transform: scale(1.1);
}

/* Mini Timer (Per Habit) */
.htp-habit-footer {
    border-top: 1px solid #f3f4f6;
    margin-top: 20px;
    padding-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.htp-mini-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
}

.htp-timer-display-small {
    font-family: monospace;
    font-weight: 600;
    font-size: 1rem;
    color: #374151;
    min-width: 80px;
    text-align: center;
}

.htp-timer-btn-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--habit-color-local);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: transform 0.1s;
}

.htp-timer-btn-small:hover {
    transform: scale(1.1);
}

.htp-timer-btn-small.paused {
    background: #e5e7eb;
    color: #6b7280;
}

/* LARGE ACTION BUTTONS (MODAL) */
.htp-action-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.htp-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.htp-action-btn.complete {
    border-color: #10b981;
    color: #059669;
    background: #ecfdf5;
}

.htp-action-btn.fail {
    border-color: #ef4444;
    color: #b91c1c;
    background: #fef2f2;
}

.htp-action-btn.clear {
    border-color: #9ca3af;
    color: #4b5563;
}

/* --- Version 4.0 Improved UI --- */

/* Centered Timer Wrapper */
.htp-timer-wrapper-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.htp-timer-label-small {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 5px;
}

.htp-timer-digital {
    font-family: 'Roboto', monospace;
    /* Monospace for alignment */
    font-size: 2rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
}

.htp-timer-toggle-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.htp-timer-toggle-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.4);
}

.htp-timer-toggle-btn.running {
    background: #ef4444;
    /* Red for pause */
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.htp-timer-toggle-btn.running:hover {
    background: #dc2626;
    box-shadow: 0 6px 8px -1px rgba(239, 68, 68, 0.4);
}

/* Note Pill Button */
.htp-note-pill-btn {
    background: white;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 8px 20px;
    border-radius: 50px;
    /* Fully rounded */
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.htp-note-pill-btn:hover {
    border-color: #cbd5e1;
    color: #334155;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.htp-btn-small.primary {
    background: #10b981;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.htp-btn-small {
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
}

/* CALENDAR STRIP */
.htp-calendar-section {
    background: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.htp-cal-header-label {
    font-weight: 800;
    color: #111827;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.htp-calendar-strip {
    display: flex;
    justify-content: center;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.htp-cal-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #9ca3af;
    cursor: default;
}

.htp-cal-name {
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.htp-cal-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
}

.htp-cal-day.active .htp-cal-num {
    background: #111827;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.htp-cal-day.active .htp-cal-name {
    color: #111827;
}

/* STEPPER */
.htp-stepper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.htp-step-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.htp-step-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* STATS */
.htp-stat-box {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* --- Responsive Stats Button --- */
@media (max-width: 600px) {
    .htp-btn-text {
        display: none;
    }

    .htp-stats-trigger {
        padding: 6px 10px !important;
        /* Smaller padding on mobile to fit icon */
    }
}

/* --- Inline Stats Section --- */
.htp-stats-inline {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 20px;
    margin-top: 0;
    /* Fixed overlap issue */
    margin-bottom: 20px;
    display: none;
    /* Hidden by default */
    animation: slideDown 0.3s ease-out;
    position: relative;
    z-index: 5;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Line Chart Styles (Daily Progress) --- */
.htp-line-path {
    fill: none;
    stroke: #10b981;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: dash 1s ease-out forwards;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    filter: drop-shadow(0 4px 3px rgba(16, 185, 129, 0.2));
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

.htp-chart-area {
    fill-opacity: 0.2;
    animation: fadeInArea 1.5s ease-out forwards;
}

@keyframes fadeInArea {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.htp-line-dot {
    fill: white;
    stroke: #10b981;
    stroke-width: 2.5;
    r: 3;
    transition: all 0.2s;
    cursor: pointer;
}

.htp-line-dot:hover {
    r: 6;
    stroke-width: 0;
    fill: #10b981;
}

.htp-chart-axis-text {
    font-size: 10px;
    fill: #94a3b8;
    text-anchor: middle;
    font-weight: 500;
}

.htp-grid-line {
    stroke: #e2e8f0;
    stroke-width: 1;
    stroke-dasharray: 4, 4;
}

/* Switch Toggle Styles */
.htp-switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.htp-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-bottom: 0;
}

.htp-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.htp-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .4s;
    border-radius: 34px;
}

.htp-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

input:checked + .htp-slider {
    background-color: #10b981;
}

input:focus + .htp-slider {
    box-shadow: 0 0 1px #10b981;
}

input:checked + .htp-slider:before {
    transform: translateX(24px);
}

.htp-switch-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
    cursor: pointer;
}
