:root {
    --primary-color: #0063f8;
    --secondary-color: #4c4444;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --card-bg: #1e1e1e;
    --border-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --progress-color: var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, color 0.3s;
    padding: 10px 0px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-left: 180px;
    padding-right: 180px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #e08e01;
    border-radius: 20px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid white;
    margin-bottom: 30px;
}

.app-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    background: linear-gradient(90deg, rgb(0, 49, 195), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
}

.theme-switcher {
    display: flex;
    gap: 10px;
}

.timer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex: 1;
}

@media (min-width: 992px) {
    .timer-container {
        flex-direction: row;
    }
}

.timer-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.time {
    font-size: 6rem;
    font-weight: 300;
    font-family: 'Courier New', monospace;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.progress-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.progress-ring__circle-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 10;
}

.progress-ring__circle {
    fill: none;
    stroke: var(--progress-color);
    stroke-width: 10;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.3s;
}

.timer-controls {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    z-index: 2;
}

.timer-settings {
    flex: 1;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    max-width: 100%;
}

@media (min-width: 992px) {
    .timer-settings {
        max-width: 400px;
    }
}

.mode-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #aaa;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background-color: #2a2a2a;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.3);
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #3a5a8a;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: #c82333;
    transform: translateY(-2px);
}

.btn-mode {
    padding: 10px 15px;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mode.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-mode:hover:not(.active) {
    background-color: #2a2a2a;
}

.btn-theme {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #2a2a2a;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-theme.active {
    background-color: var(--primary-color);
}

.sound-settings {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.sound-settings h3 {
    margin-bottom: 15px;
    font-weight: 400;
}

.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.presets {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preset-item {
    padding: 8px 12px;
    background-color: #2a2a2a;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.preset-item:hover {
    background-color: var(--primary-color);
}

.app-footer {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #ffffff;
}

.shortcut-hints {
    display: flex;
    gap: 15px;
    color: white;
}

/* Accessibility focus styles */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}