/* ======================
   Variables & Base Styles
   ====================== */
:root {
    /* Light Mode Colors */
    --bg-color: #f5f7fa;
    --bg-color-lighter: #ffffff;
    --text-color: #333;
    --text-color-secondary: #555;
    --text-color-tertiary: #777;
    --primary-color: #3498db;
    --primary-color-rgb: 52, 152, 219; /* RGB version of primary color */
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --border-color: #ddd;
    --card-bg: #ffffff;
    --modal-bg: #ffffff;
    --input-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --link-color: #3498db;
    
    /* Sizes */
    --header-height: 60px;
    --content-width: 1200px;
    --tab-height: 50px;
    --footer-height: 40px;
    
    /* Transitions */
    --transition-speed: 0.3s;
}

.dark-mode {
    --bg-color: #1a1a2e;
    --bg-color-lighter: #16213e;
    --text-color: #e6e6e6;
    --text-color-secondary: #aaa;
    --text-color-tertiary: #888;
    --primary-color: #4a9fe0;
    --secondary-color: #3d84ba;
    --accent-color: #e63946;
    --border-color: #444;
    --card-bg: #16213e;
    --modal-bg: #0f3460;
    --input-bg: #0d284d;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --link-color: #4a9fe0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    min-height: 100vh;
    background-color: var(--bg-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

button, .btn {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-speed);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

input, select {
    font-family: inherit;
    font-size: 1rem;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: all var(--transition-speed);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* ====================
   Button Styles
   ==================== */
.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--secondary-color);
}

.secondary-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.secondary-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
}

.icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dark-mode .icon-btn {
    color: #ffffff;
}

.dark-mode .icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .btn {
    color: #e6e6e6;
}

.dark-mode .secondary-btn {
    border-color: #555;
}

/* ====================
   Header Styles
   ==================== */
.header {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: var(--card-bg);
    box-shadow: 0 2px 5px var(--shadow-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ====================
   Main Content Styles
   ==================== */
.main {
    flex: 1;
    margin-top: var(--header-height);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ====================
   Tabs Styles
   ==================== */
.tabs {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: var(--content-width);
    margin-bottom: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    text-align: center;
    color: var(--text-color);
    background-color: transparent;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-speed);
}

.tab-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.dark-mode .tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.tab-content {
    display: none;
    width: 100%;
}

.tab-content.active {
    display: block;
}

/* ====================
   Clock Container Styles
   ==================== */
.clock-container {
    width: 100%;
    max-width: var(--content-width);
    height: 400px;
    margin-bottom: 20px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px var(--shadow-color);
    background-color: var(--card-bg);
    transition: transform 0.3s ease;
}

#background-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    z-index: 1;
}

.clock-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.clock-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    z-index: 1000;
    border-radius: 0;
}

/* ====================
   Clock Display Styles
   ==================== */
.time-display {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.time {
    font-size: 7rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
}

.period {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.date {
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0.8;
}

/* ====================
   Alarm Display Styles
   ==================== */
.alarm-display, .timer-display, .stopwatch-display, .worldtime-display {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.alarm-display h2, .worldtime-display h2 {
    text-align: center;
    margin-bottom: 20px;
}

.alarms-list, .world-time-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.alarm-item, .world-time-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease;
}

.alarm-item:hover, .world-time-item:hover {
    transform: translateX(5px);
}

.alarm-info, .world-time-info {
    display: flex;
    flex-direction: column;
}

.alarm-time, .world-time-city {
    font-size: 1.2rem;
    font-weight: 600;
}

.alarm-title, .world-time-time-diff {
    font-size: 0.9rem;
    opacity: 0.8;
}

.alarm-controls, .world-time-controls {
    display: flex;
    gap: 10px;
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-container input {
    flex: 1;
}

/* ====================
   Timer & Stopwatch Styles
   ==================== */
.timer, .stopwatch {
    font-size: 5rem;
    font-weight: 700;
    text-align: center;
    margin: 30px 0;
    font-variant-numeric: tabular-nums;
}

.timer-controls, .stopwatch-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.timer-input {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.timer-input input {
    width: 80px;
    text-align: center;
}

.laps {
    flex: 1;
    overflow-y: auto;
    margin: 20px 0;
    padding: 0 20px;
}

.lap-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

/* ====================
   Modal Styles
   ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--modal-bg);
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    font-size: 24px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* ====================
   Form Styles
   ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
}

.time-picker {
    display: flex;
    align-items: center;
    gap: 5px;
}

.time-picker input {
    width: 70px;
    text-align: center;
}

.time-picker select {
    width: 70px;
}

.time-picker span {
    font-size: 1.2rem;
    font-weight: 600;
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input {
    width: auto;
    margin: 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* ====================
   Ad Container Styles
   ==================== */
.ad-container {
    width: 100%;
    max-width: var(--content-width);
    min-height: 90px;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px var(--shadow-color);
    margin-bottom: 20px;
}

.ad-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 20px;
    text-align: center;
    color: rgba(0, 0, 0, 0.3);
}

.dark-mode .ad-placeholder {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
}

/* ====================
   Footer Styles
   ==================== */
.footer {
    height: var(--footer-height);
    background-color: var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 -2px 5px var(--shadow-color);
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* ====================
   Animation Classes
   ==================== */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s forwards;
}

/* ====================
   Media Queries
   ==================== */
@media (max-width: 768px) {
    .time {
        font-size: 5rem;
    }
    
    .date {
        font-size: 1.2rem;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        min-width: 33.33%;
    }
    
    .clock-container {
        height: 350px;
    }
    
    .timer, .stopwatch {
        font-size: 3.5rem;
    }
    
    .timer-input {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .time {
        font-size: 3.5rem;
    }
    
    .period {
        font-size: 1.5rem;
    }
    
    .date {
        font-size: 1rem;
    }
    
    .tab-btn {
        min-width: 50%;
        padding: 10px;
    }
    
    .clock-container {
        height: 300px;
    }
    
    .timer, .stopwatch {
        font-size: 2.5rem;
    }
    
    .form-actions {
        flex-wrap: wrap;
    }
    
    .header-left h1 {
        font-size: 1.2rem;
    }
}

/* Alarm active state animation */
.alarm-active {
    animation: alarm-pulse 1s infinite alternate;
}

@keyframes alarm-pulse {
    0% { background-color: var(--card-bg); }
    100% { background-color: rgba(231, 76, 60, 0.2); }
}

/* Adding focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* WebGL placeholder fallback */
.webgl-unsupported {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: var(--card-bg);
    z-index: 1;
}

/* ====================
   Alarm Styles
   ==================== */
.instructions-container {
    width: 100%;
    max-width: var(--content-width);
    margin: 20px auto 0;
    padding: 0 20px;
}

.alarm-instructions {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.alarm-instructions h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.alarm-instructions p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ====================
   World Time Styles
   ==================== */
.autocomplete-dropdown {
    position: absolute;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: 0 4px 8px var(--shadow-color);
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 10px;
    align-items: center;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover, .autocomplete-item.active {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.autocomplete-item strong {
    color: var(--primary-color);
}

.city-col {
    font-weight: 500;
}

.region-col {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9em;
    text-align: center;
}

.diff-col {
    color: var(--accent-color);
    font-size: 0.9em;
    text-align: right;
    font-weight: 500;
}

.dark-mode .autocomplete-dropdown {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ====================
   Holiday Styles
   ==================== */
.holiday-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed);
}

.holiday-item:last-child {
    border-bottom: none;
}

.holiday-item:hover {
    background-color: rgba(var(--primary-color-rgb), 0.05);
}

.holiday-name {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-color);
    flex: 1;
}

.holiday-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.holiday-date {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
}

.holiday-countdown {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.holiday-item.approaching .holiday-countdown {
    color: var(--accent-color);
}

.holidays-filter {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.holidays-filter label {
    font-weight: 500;
}

.holidays-filter select {
    flex: 1;
    max-width: 200px;
}

/* ====================
   Calculator Styles
   ==================== */
.calculator {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px var(--shadow-color);
}

.calculator-display {
    width: 100%;
    padding: 10px;
    background-color: var(--bg-color);
}

#calculator-result {
    width: 100%;
    height: 50px;
    font-size: 1.5rem;
    text-align: right;
    padding: 10px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background-color: var(--border-color);
}

.calc-btn {
    padding: 15px 0;
    font-size: 1.25rem;
    background-color: var(--card-bg);
    border: none;
    cursor: pointer;
    color: var(--text-color);
    transition: background-color var(--transition-speed);
}

.calc-btn:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.calc-btn[data-action="operation"] {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.calc-equals {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.dark-mode .calculator-buttons {
    background-color: #333;
}

/* ====================
   Wheel Styles
   ==================== */
.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 20px;
}

#wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

#spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-weight: bold;
    background-color: rgba(var(--primary-color-rgb), 0.8);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.wheel-names-container {
    margin-top: 20px;
}

.wheel-names {
    margin-bottom: 15px;
}

.wheel-name-input {
    display: flex;
    margin-bottom: 8px;
}

.wheel-name-input input {
    flex: 1;
    margin-right: 8px;
}

.wheel-result {
    margin-top: 20px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    min-height: 40px;
}

/* Legal and Contact Modal Styles */
.legal-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.legal-content h2 {
    font-size: 1.4em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-content li {
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

span.required {
    color: #e74c3c;
    font-weight: bold;
}

/* Captcha styles */
.captcha-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px;
    background-color: var(--bg-color-lighter);
}

.captcha-checkbox {
    margin-right: 15px;
}

.captcha-checkbox input {
    display: none;
}

.captcha-checkbox label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    background-color: var(--bg-color);
}

.captcha-checkbox .captcha-spinner,
.captcha-checkbox .captcha-check {
    display: none;
}

.captcha-checkbox input:checked ~ label .captcha-check {
    display: block;
    color: #2ecc71;
}

.captcha-checkbox input:checked ~ label {
    background-color: var(--bg-color-lighter);
}

.captcha-checkbox label:hover {
    border-color: var(--primary-color);
}

.recaptcha-info {
    display: flex;
    flex-direction: column;
}

.recaptcha-logo {
    font-size: 0.85em;
    font-weight: bold;
    color: var(--text-color-secondary);
    margin-bottom: 3px;
}

.recaptcha-terms {
    font-size: 0.75em;
    color: var(--text-color-tertiary);
}

.recaptcha-terms a {
    color: var(--link-color);
    text-decoration: none;
}

.recaptcha-terms a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-content {
        max-height: 300px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
        margin-top: 10px;
    }
}

/* Toggle Switch for Spin Wheel */
.toggle-container {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 8px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--text-color);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Stopwatch specific styles */
.laps.scrollable {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0 5px;
    margin-bottom: 10px;
}

.lap-item.header {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    font-weight: bold;
    z-index: 1;
    border-bottom: 2px solid var(--border-color);
}

.dark-mode .lap-item.header {
    background-color: var(--bg-color-darker);
}

.best-lap {
    background-color: rgba(76, 175, 80, 0.1);
}

.worst-lap {
    background-color: rgba(244, 67, 54, 0.1);
}

/* Timer specific styles */
.stop-sound-btn {
    display: block;
    margin: 15px auto 5px;
    width: auto;
    min-width: 120px;
    padding: 8px 15px;
    font-size: 14px;
}

/* Stopwatch header layout */
.stopwatch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.stopwatch-header .stopwatch {
    margin-bottom: 0;
    margin-right: 15px;
}

.stopwatch-header .stopwatch-controls {
    display: flex;
    gap: 8px;
}

@media (max-width: 480px) {
    .stopwatch-header {
        flex-direction: column;
        align-items: center;
    }
    
    .stopwatch-header .stopwatch {
        margin-right: 0;
        margin-bottom: 10px;
    }
} 