/* ===================================
   SCHOLRGPT FOCUS HUB STYLES
   =================================== */

:root {
    --focus-orange: #FB8500;
    --focus-orange-glow: rgba(251, 133, 0, 0.4);
    --focus-bg-dark: #0f0f13;
}

.focus-viewport {
    height: 100vh;
    padding: 0;
    overflow: hidden;
    background: var(--bg-dark);
}

.focus-container {
    display: flex;
    height: 100%;
    width: 100%;
}

/* Focus Hub Light Mode Overrides */
.light-mode .focus-viewport {
    background: #f8fafc;
}

.light-mode .left-panel {
    background: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.1), transparent 60%);
    border-right-color: rgba(0, 0, 0, 0.1);
}

.light-mode .mode-toggles {
    background: rgba(0, 0, 0, 0.05);
}

.light-mode .toggle-btn.active {
    background: #1a1a1a;
    color: #ffffff;
}

.light-mode .time-display {
    color: #0f172a;
}

.light-mode .secondary-action {
    background: rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

/* Focus Hub High Contrast Mode Overrides */
.high-contrast {
    --focus-orange: #FF00FF;
    --focus-orange-glow: rgba(255, 0, 255, 0.6);
    --bg-dark: #000000;
    --bg-card: #000000;
    --text-main: #FFFFFF;
    --text-muted: #E0E0E0;
    --border-color: #FFFFFF;
}

.high-contrast .focus-viewport {
    background: #000000 !important;
}

.high-contrast .focus-panel {
    background: #000000 !important;
    border-color: #FFFFFF !important;
}

.high-contrast .left-panel {
    background: #000000 !important;
    border-right: 2px solid #FFFFFF !important;
}

.high-contrast .right-panel {
    background: #000000 !important;
}

.high-contrast .mode-toggles {
    background: #000000 !important;
    border: 2px solid #FFFFFF !important;
}

.high-contrast .toggle-btn {
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
}

.high-contrast .toggle-btn.active {
    background: #FF00FF !important;
    color: #000000 !important;
}

.high-contrast .toggle-btn:hover {
    background: #FFFFFF !important;
    color: #000000 !important;
}

.high-contrast .time-display {
    color: #FFFFFF !important;
    text-shadow: 0 0 40px rgba(255, 0, 255, 0.8) !important;
}

.high-contrast .time-display.clickable:hover {
    color: #FF00FF !important;
    text-shadow: 0 0 60px rgba(255, 0, 255, 1) !important;
}

.high-contrast .pomo-status {
    color: #FF00FF !important;
}

.high-contrast .control-btn {
    background: transparent !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
}

.high-contrast .control-btn:hover {
    background: #FFFFFF !important;
    color: #000000 !important;
}

.high-contrast .control-btn.active {
    background: #FF00FF !important;
    color: #000000 !important;
}

.high-contrast .preset-btn {
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
}

.high-contrast .preset-btn.active {
    background: #FF00FF !important;
    color: #000000 !important;
}

.high-contrast .preset-btn:hover {
    background: #FFFFFF !important;
    color: #000000 !important;
}

.high-contrast .audio-grid {
    color: #FFFFFF !important;
}

.high-contrast .sound-card {
    background: #000000 !important;
    border: 2px solid #FFFFFF !important;
}

.high-contrast .sound-card h3 {
    color: #FFFFFF !important;
}

.high-contrast .sound-card p {
    color: #E0E0E0 !important;
}

.high-contrast .primary-action {
    background: #FF00FF !important;
    color: #000000 !important;
    border: 2px solid #FFFFFF !important;
}

.high-contrast .secondary-action {
    background: transparent !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
}

.high-contrast .secondary-action:hover {
    background: #FFFFFF !important;
    color: #000000 !important;
}

/* Focus Hub Light Mode High Contrast Overrides */
.light-mode.high-contrast {
    --focus-orange: #8B4513;
    --focus-orange-glow: rgba(139, 69, 19, 0.6);
    --focus-bg-dark: #FFFFFF;
    --bg-dark: #FFFFFF;
    --bg-card: #FFFFFF;
    --text-main: #000000;
    --text-muted: #1a1a1a;
    --border-color: #000000;
}

.light-mode.high-contrast .focus-viewport {
    background: #FFFFFF !important;
}

.light-mode.high-contrast .focus-panel {
    background: #FFFFFF !important;
    border-color: #000000 !important;
}

.light-mode.high-contrast .left-panel {
    background: #FFFFFF !important;
    border-right: 3px solid #000000 !important;
}

.light-mode.high-contrast .right-panel {
    background: #FFFFFF !important;
}

.light-mode.high-contrast .mode-toggles {
    background: #FFFFFF !important;
    border: 3px solid #000000 !important;
}

.light-mode.high-contrast .toggle-btn {
    color: #000000 !important;
    border: 2px solid transparent;
    font-weight: 700;
}

.light-mode.high-contrast .toggle-btn.active {
    background: #8B4513 !important;
    color: #FFFFFF !important;
    border: 2px solid #000000 !important;
}

.light-mode.high-contrast .toggle-btn:hover {
    background: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #000000 !important;
}

.light-mode.high-contrast .time-display {
    color: #000000 !important;
    text-shadow: none !important;
    font-weight: 800;
}

.light-mode.high-contrast .time-display.clickable:hover {
    color: #8B4513 !important;
    text-shadow: none !important;
}

.light-mode.high-contrast .pomo-status {
    color: #000080 !important;
    font-weight: 700;
}

.light-mode.high-contrast .control-btn {
    background: transparent !important;
    color: #000000 !important;
    border: 3px solid #000000 !important;
}

.light-mode.high-contrast .control-btn:hover {
    background: #000000 !important;
    color: #FFFFFF !important;
}

.light-mode.high-contrast .control-btn.active {
    background: #8B4513 !important;
    color: #FFFFFF !important;
}

.light-mode.high-contrast .preset-btn {
    color: #000000 !important;
    border: 3px solid #000000 !important;
    background: transparent !important;
    font-weight: 700;
}

.light-mode.high-contrast .preset-btn.active {
    background: #000080 !important;
    color: #FFFFFF !important;
    border: 2px solid #000000 !important;
}

.light-mode.high-contrast .preset-btn:hover {
    background: #000000 !important;
    color: #FFFFFF !important;
}

.light-mode.high-contrast .audio-grid {
    color: #000000 !important;
}

.light-mode.high-contrast .sound-card {
    background: #FFFFFF !important;
    border: 3px solid #000000 !important;
}

.light-mode.high-contrast .sound-card h3 {
    color: #000000 !important;
}

.light-mode.high-contrast .sound-card p {
    color: #1a1a1a !important;
}

.light-mode.high-contrast .audio-card {
    background: #FFFFFF !important;
    border: 3px solid #000000 !important;
    box-shadow: 4px 4px 0 #000000 !important;
}

.light-mode.high-contrast .audio-card:hover {
    background: #FFFFE0 !important;
    border-color: #000000 !important;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000000 !important;
}

.light-mode.high-contrast .audio-card.active::after {
    background: #FFFFFF !important;
}

.light-mode.high-contrast .audio-name {
    color: #000000 !important;
    font-weight: 800;
}

.light-mode.high-contrast .audio-status {
    color: #1a1a1a !important;
    font-weight: 600;
}

.light-mode.high-contrast .audio-card.active .audio-status {
    color: #8B4513 !important;
}

.light-mode.high-contrast .audio-card.playing .audio-status {
    color: #8B4513 !important;
}

.light-mode.high-contrast .focus-music-controls {
    background: #FFFFFF !important;
    border: 3px solid #000000 !important;
    box-shadow: 4px 4px 0 #000000 !important;
}

.light-mode.high-contrast .styled-slider {
    background: #FFFFFF !important;
    border: 3px solid #000000 !important;
}

.light-mode.high-contrast .styled-slider::-webkit-slider-thumb {
    background: #000080 !important;
    border: 3px solid #000000 !important;
}

.light-mode.high-contrast .overlay-card {
    background: #FFFFFF !important;
    border: 3px solid #000000 !important;
    box-shadow: 8px 8px 0 #000000 !important;
}

.light-mode.high-contrast .overlay-card h3 {
    color: #000000 !important;
}

.light-mode.high-contrast .input-group {
    background: #FFFFFF !important;
    border: 3px solid #000000 !important;
}

.light-mode.high-contrast .input-group input {
    color: #000080 !important;
}

.light-mode.high-contrast .input-group .unit-label {
    color: #000000 !important;
}

.light-mode.high-contrast .stepper {
    background: #FFFFFF !important;
    border: 3px solid #000000 !important;
}

.light-mode.high-contrast .step-btn {
    background: transparent !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

.light-mode.high-contrast .step-btn:hover {
    background: #8B4513 !important;
    color: #FFFFFF !important;
}

.light-mode.high-contrast .stepper input {
    color: #000000 !important;
}

.light-mode.high-contrast .unit {
    color: #000000 !important;
}

.light-mode.high-contrast .input-col label {
    color: #000000 !important;
}

.light-mode.high-contrast .small-input-wrapper {
    background: #FFFFFF !important;
    border: 3px solid #000000 !important;
}

.light-mode.high-contrast .small-input-wrapper input {
    color: #000080 !important;
}

.light-mode.high-contrast .small-input-wrapper span {
    color: #000000 !important;
}

.light-mode.high-contrast .pomo-label {
    color: #000000 !important;
}

.light-mode.high-contrast .pomo-timer-block.active .pomo-label {
    color: #8B4513 !important;
}

.light-mode.high-contrast .pomo-timer-divider {
    color: #000000 !important;
}

.light-mode.high-contrast .primary-action {
    background: #000080 !important;
    color: #FFFFFF !important;
    border: 3px solid #000000 !important;
}

.light-mode.high-contrast .secondary-action {
    background: transparent !important;
    color: #000000 !important;
    border: 3px solid #000000 !important;
    font-weight: 700;
}

.light-mode.high-contrast .secondary-action:hover {
    background: #000000 !important;
    color: #FFFFFF !important;
}

.light-mode.high-contrast .main-action {
    color: #000000 !important;
}

.light-mode.high-contrast .btn-cancel {
    background: transparent !important;
    color: #000000 !important;
    border: 3px solid #000000 !important;
}

.light-mode.high-contrast .btn-cancel:hover {
    background: #000000 !important;
    color: #FFFFFF !important;
}

.light-mode.high-contrast .btn-confirm {
    background: #8B4513 !important;
    color: #FFFFFF !important;
    border: 3px solid #000000 !important;
}

.light-mode.high-contrast .btn-confirm:hover {
    background: #A0522D !important;
}

.light-mode.high-contrast .audio-icon {
    color: #000000 !important;
}

.light-mode.high-contrast .pomo-timer-block {
    opacity: 1;
}

.light-mode.high-contrast .pomo-timer-block:hover {
    opacity: 1;
}

.light-mode.high-contrast .time-display.small {
    text-shadow: none !important;
}

.light-mode.high-contrast .pomo-timer-block.active .time-display.small {
    text-shadow: none !important;
}

.light-mode.high-contrast .overlay-backdrop {
    background: rgba(0, 0, 0, 0.8);
}

.light-mode.high-contrast .play-toggle-wrapper {
    background: transparent;
}

.light-mode.high-contrast .control-spacer {
    background: transparent;
}

.light-mode.high-contrast .main-play-btn {
    background-color: #000080 !important;
    color: #FFFFFF !important;
}

.light-mode.high-contrast .main-play-btn.playing {
    background-color: #8B4513 !important;
}

.light-mode.high-contrast .pomo-timer-block {
    opacity: 1;
}

.light-mode.high-contrast .pomo-timer-block.active {
    transform: scale(1.05);
}

.light-mode.high-contrast .pomo-timer-divider {
    color: #000000 !important;
}

.light-mode.high-contrast .input-group {
    background: #FFFFFF !important;
    border: 3px solid #000000 !important;
}

.light-mode.high-contrast .input-group input {
    color: #000080 !important;
}

.light-mode.high-contrast .input-group .unit-label {
    color: #000000 !important;
}


.light-mode .preset-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

.light-mode .right-panel {
    background: #f8f9fa;
}

.light-mode .audio-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.light-mode .audio-card:hover {
    background: #fefefe;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.light-mode .audio-card.active::after {
    background: #ffffff;
}

.light-mode .audio-name {
    color: #0f172a;
}

.light-mode .focus-music-controls {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.light-mode .styled-slider {
    background: rgba(0, 0, 0, 0.1);
}

.light-mode .styled-slider::-webkit-slider-thumb {
    background: #000000;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.light-mode .overlay-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

.light-mode .stepper {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

.light-mode .step-btn {
    background: rgba(0, 0, 0, 0.04);
}

.light-mode .stepper input {
    color: #0f172a;
}

/* Focus Hub Light Mode Contrast Overrides */
.light-mode .time-display {
    color: #0f172a !important;
    text-shadow: none !important;
}

.light-mode .pomo-status {
    color: #2563eb !important;
}

.light-mode .audio-status {
    color: #334155 !important;
}

.light-mode .styled-slider {
    background: rgba(0, 0, 0, 0.08) !important;
}

.light-mode .main-action {
    color: #ffffff !important;
}

.light-mode .secondary-action {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #000000 !important;
}

.focus-panel {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.focus-panel:hover {
    box-shadow: inset 0 0 80px rgba(251, 133, 0, 0.03);
}

/* LEFT PANEL (TIMER) */
.left-panel {
    background: radial-gradient(circle at 0% 0%, rgba(251, 133, 0, 0.05), transparent 60%);
    border-right: 1px solid var(--border-color);
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.left-panel:hover {
    background: radial-gradient(circle at 0% 0%, rgba(251, 133, 0, 0.1), transparent 60%);
    box-shadow: inset 0 0 60px rgba(251, 133, 0, 0.05);
}

.mode-toggles {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 12px;
    display: flex;
    gap: 8px;
    margin-bottom: 60px;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background: var(--text-main);
    color: var(--bg-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.timer-view {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    animation: fadeIn 0.4s ease;
}

.timer-view.active {
    display: flex;
}

.time-display {
    font-size: 8rem !important;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 60px;
    text-shadow: 0 0 40px var(--focus-orange-glow);
    font-variant-numeric: tabular-nums;
    transition: all 0.2s ease;
}

.time-display.clickable {
    cursor: pointer;
}

.time-display.clickable:hover {
    color: var(--focus-orange);
    text-shadow: 0 0 60px var(--focus-orange-glow);
    transform: scale(1.02);
}

.pomo-status {
    font-size: 1.2rem;
    color: var(--focus-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
}

.timer-controls {
    display: flex;
    gap: 50px;
    margin-bottom: 100px;
    align-items: center;
}

.control-btn {
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-action {
    width: 100px;
    height: 100px;
    background: var(--focus-orange);
    color: white;
    font-size: 2.5rem !important;
    box-shadow: 0 0 30px var(--focus-orange-glow);
}

.main-action:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px var(--focus-orange-glow);
}

.secondary-action {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-size: 2rem !important;
}

.secondary-action:hover {
    background: rgba(255, 255, 255, 0.2);
}

.presets-row {
    display: flex;
    gap: 12px;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    border-color: var(--focus-orange);
    color: var(--focus-orange);
    background: rgba(251, 133, 0, 0.1);
}

/* RIGHT PANEL (AUDIO) */
.right-panel {
    background: var(--bg-dark);
    overflow-y: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.right-panel:hover {
    background: rgba(255, 255, 255, 0.02);
}

.right-panel h2 {
    color: var(--text-main);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    width: 100%;
}

.audio-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, background 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.audio-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-12px);
    border-color: rgba(251, 133, 0, 0.2);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(251, 133, 0, 0.1);
}

.audio-card.active {
    background: rgba(20, 20, 25, 0.4);
    border: none;
    box-shadow: 0 0 20px rgba(251, 133, 0, 0.15);
}

/* Animated Border Logic */
.audio-card.active::before {
    content: '';
    position: absolute;
    aspect-ratio: 1 / 1;
    width: 250%;
    /* Larger to ensure corner coverage is smoother */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg,
            transparent 0%,
            transparent 75%,
            var(--focus-orange) 95%,
            transparent 100%);
    animation: rotateAntiContinuous 4s linear infinite;
    z-index: 1;
}

/* Ensure content stays above the animated border */
.audio-card.active * {
    position: relative;
    z-index: 5;
}

.audio-card.active::after {
    content: '';
    position: absolute;
    inset: 2px;
    /* This creates the actual border width */
    background: var(--bg-dark);
    /* Match background to hide the center */
    border-radius: 14px;
    z-index: 2;
}

@keyframes rotateAntiContinuous {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

.audio-icon {
    font-size: 1.8rem;
    color: var(--text-muted);
}

.audio-card.active .audio-icon {
    /* Respect inherent icon color but maybe add a slight glow or opacity change */
    opacity: 1;
}

.audio-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.audio-name {
    font-weight: 600;
    color: var(--text-main);
}

.audio-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.audio-card.playing .audio-status {
    color: var(--focus-orange);
}

.audio-card.active .audio-info .audio-status {
    color: var(--focus-orange);
}

.focus-music-controls {
    position: absolute;
    bottom: 30px;
    left: 40px;
    right: 40px;
    background: rgba(20, 20, 25, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.focus-music-controls .volume-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 240px;
    color: var(--text-muted);
}

.play-toggle-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.control-spacer {
    width: 240px;
}

.main-play-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: #4ade80;
    /* Base green from dashboard */
    color: #000;
    font-size: 1.2rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.main-play-btn.playing {
    background-color: #fb923c;
    /* Orange from dashboard */
    box-shadow: 0 0 25px rgba(251, 146, 60, 0.4);
}

.main-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.5);
}

.main-play-btn.playing:hover {
    box-shadow: 0 0 30px rgba(251, 146, 60, 0.5);
}

.main-play-btn:active {
    transform: scale(0.95);
}

.styled-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}

.styled-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    transition: all 0.2;
}

.styled-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    background: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Custom Overlay */
.custom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.custom-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.overlay-card {
    position: relative;
    background: rgba(20, 20, 25, 0.98);
    padding: 40px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 500px;
    max-width: 90vw;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-overlay.hidden .overlay-card {
    transform: scale(0.9);
}

.overlay-card h3 {
    margin-bottom: 24px;
    color: var(--text-main);
    font-size: 1.2rem;
}

.input-group {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-group input {
    background: transparent;
    border: none;
    color: var(--focus-orange);
    font-family: inherit;
    font-size: 2rem;
    font-weight: 700;
    width: 80px;
    text-align: right;
    outline: none;
}

.input-group .unit-label {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.overlay-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.overlay-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-confirm {
    background: var(--focus-orange);
    color: white;
}

.btn-confirm:hover {
    background: #e67600;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pomodoro Dual Display */
.pomo-dual-display {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 60px;
}

.pomo-timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.4;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pomo-timer-block.active {
    opacity: 1;
    transform: scale(1.05);
}

.pomo-timer-block:hover {
    opacity: 0.8;
}

.pomo-label {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.pomo-timer-block.active .pomo-label {
    color: var(--focus-orange);
}

.time-display.small {
    font-size: 5rem !important;
    margin-bottom: 0;
    text-shadow: none;
    /* Reduced glow for cleaner UI */
}

.pomo-timer-block.active .time-display.small {
    text-shadow: 0 0 30px var(--focus-orange-glow);
}

.pomo-timer-divider {
    font-size: 5rem !important;
    color: var(--border-color);
    font-weight: 200;
}

/* Stepper Styles */
.timer-stepper-container,
.pomo-stepper-grid {
    width: 100%;
    margin-bottom: 30px;
}

.pomo-stepper-grid {
    display: flex;
    gap: 20px;
}

.pomo-stepper-grid .input-col {
    flex: 1;
}

.stepper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 8px;
    gap: 15px;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.stepper:focus-within {
    border-color: var(--focus-orange);
    background: rgba(251, 133, 0, 0.05);
    box-shadow: 0 0 20px rgba(251, 133, 0, 0.1);
}

.stepper.small {
    padding: 6px;
    gap: 10px;
    border-radius: 12px;
}

.step-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.stepper.small .step-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1rem;
}

.step-btn:hover {
    background: var(--focus-orange);
    color: white;
    transform: scale(1.05);
}

.step-btn:active {
    transform: scale(0.95);
}

.stepper-input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stepper input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 2.5rem;
    font-weight: 700;
    width: 80px;
    text-align: center;
    outline: none;
    font-family: inherit;
}

.stepper.small input {
    font-size: 1.8rem;
    width: 60px;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.stepper input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.unit {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: -5px;
}

/* Custom Overlay Inputs */
.pomo-input-group {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    width: 100%;
}

.pomo-input-group.hidden {
    display: none;
}

.input-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.input-col label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.small-input-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.small-input-wrapper input {
    width: 50px;
    background: transparent;
    border: none;
    color: var(--focus-orange);
    font-size: 1.5rem;
    font-family: inherit;
    font-weight: 700;
    text-align: right;
    outline: none;
}

.small-input-wrapper span {
    color: var(--text-muted);
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .focus-container {
        flex-direction: column;
        overflow-y: auto;
    }

    .left-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        min-height: 50vh;
    }

    .time-display {
        font-size: 7rem;
    }

    .focus-volume-control {
        position: fixed;
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: auto;
    }
}

@media (max-width: 768px) {
    .focus-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-y: visible;
        /* Allow body scroll */
        padding-bottom: 90px;
        /* Space for bottom nav */
    }

    .focus-panel {
        width: 100%;
        height: auto;
        padding: 24px;
        flex: none;
    }

    /* Left Panel (Timer) */
    .left-panel {
        min-height: 50vh;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .time-display {
        font-size: 5rem !important;
        /* Smaller on mobile */
        margin-bottom: 30px;
    }

    .timer-controls {
        gap: 30px;
        margin-bottom: 60px;
    }

    .main-action {
        width: 80px;
        height: 80px;
        font-size: 2rem !important;
    }

    .secondary-action {
        width: 60px;
        height: 60px;
        font-size: 1.5rem !important;
    }

    .presets-row {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .preset-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    /* Right Panel (Audio) */
    .right-panel {
        min-height: 50vh;
        overflow-y: visible;
        /* Let the container scroll */
    }

    .audio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .mode-toggles {
        margin-bottom: 40px;
    }
}
