/* Clock App Styles */
.clock-app {
    display: flex;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI Variable', 'Segoe UI', sans-serif;
    user-select: none;
    overflow: hidden;
}

/* Sidebar */
.clock-sidebar {
    width: 60px;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.clock-nav-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.1s;
    color: var(--text-color);
    opacity: 0.7;
}

.clock-nav-item:hover {
    background-color: var(--hover-bg);
    opacity: 1;
}

.clock-nav-item.active {
    background-color: var(--hover-bg);
    border-left: 3px solid var(--accent-color);
    opacity: 1;
    color: var(--accent-color);
}

.clock-nav-item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Main Content */
.clock-main {
    flex: 1;
    background-color: var(--bg-color);
    /* Keep consistent with sidebar for "Mica" feel, cards will pop */
    padding: 20px;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 8px;
}

.clock-section {
    display: none;
    height: 100%;
    flex-direction: column;
    animation: fadeIn 0.2s ease-in-out;
}

.clock-section.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus Sessions */
.focus-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.focus-card {
    background-color: var(--window-bg);
    border-radius: 8px;
    padding: 24px;
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.focus-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.focus-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.focus-icons svg {
    width: 18px;
    height: 18px;
    fill: var(--text-color);
    opacity: 0.6;
}

.focus-desc {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 30px;
    line-height: 1.4;
}

.focus-timer-setter {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--bg-color);
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.focus-time-display {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#focus-minutes {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
    color: var(--text-color);
}

.focus-unit {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
}

.focus-controls-vertical {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.focus-arrow {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px;
}

.focus-arrow:hover {
    color: var(--accent-color);
}

.focus-start-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.focus-start-btn:hover {
    opacity: 0.9;
}

.focus-start-btn.active {
    background-color: #e81123;
    /* Keep red for stop action */
    color: white;
}

.focus-progress-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 8px solid var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.progress-stats {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* Timer Grid */
.timer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.timer-card {
    background-color: var(--window-bg);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 200px;
    position: relative;
    transition: transform 0.1s;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.timer-card:hover {
    background-color: var(--hover-bg);
}

.timer-card.running {
    border: 1px solid var(--accent-color);
    background-color: rgba(0, 120, 215, 0.05);
    /* Subtle tint */
}

.timer-card-header {
    align-self: flex-start;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

.timer-card-time {
    font-size: 2.5rem;
    font-weight: 300;
    font-variant-numeric: tabular-nums;
    color: var(--text-color);
}

.timer-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
}

.timer-play-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Stopwatch */
#stopwatch {
    align-items: center;
    justify-content: center;
}

.stopwatch-display-large {
    font-size: 5rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    margin-bottom: 5px;
    display: flex;
    align-items: baseline;
    color: var(--text-color);
}

.sw-ms {
    font-size: 3rem;
    color: var(--text-color);
    opacity: 0.6;
}

.stopwatch-labels {
    display: flex;
    gap: 60px;
    color: var(--text-color);
    opacity: 0.6;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.clock-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.clock-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--accent-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
}

.clock-btn:hover {
    opacity: 0.9;
}

.clock-btn:active {
    transform: scale(0.95);
}

.clock-btn.secondary {
    background-color: var(--window-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.clock-btn.secondary:hover {
    background-color: var(--hover-bg);
}

.clock-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.clock-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.stopwatch-laps {
    width: 100%;
    max-width: 400px;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stopwatch-lap-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: var(--window-bg);
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

/* World Clock */
.world-clock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px 0;
    width: 100%;
}

.world-clock-card {
    background-color: var(--window-bg);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 120px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.world-clock-card.local {
    background-color: var(--window-bg);
    /* Or maybe slightly different? Keep same for consistency */
    border: 1px solid var(--accent-color);
}

.wc-info {
    margin-bottom: 10px;
}

.wc-city {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.wc-day {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

.wc-time {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-color);
}

/* Alarm Placeholder */
.alarm-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-color);
    opacity: 0.6;
}

.alarm-placeholder h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
    opacity: 1;
}