/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Variables */
    --bg-color: #1a1a1a;
    --text-color: #33ff33;
    --banner-bg: #000;
    --clock-bg: #000;
    --button-bg: #333;
    --button-text: #33ff33;
    --button-border: #33ff33;
    --modal-bg: rgba(0, 0, 0, 0.9);
    --modal-text: #33ff33;
    --shadow-color: rgba(51, 255, 51, 0.2);
    --overlay-bg: rgba(0, 0, 0, 0.75);
}

.light-mode {
    /* Light Theme Variables */
    --bg-color: #f0f0f0;
    --text-color: #1a1a1a;
    --banner-bg: #1e90ff;
    --clock-bg: #ffffff;
    --button-bg: #fff;
    --button-text: #1a1a1a;
    --button-border: #1a1a1a;
    --modal-bg: rgba(255, 255, 255, 0.95);
    --modal-text: #1a1a1a;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --overlay-bg: rgba(255, 255, 255, 0.9);
}

body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease;
    overflow-x: hidden;
}

/* Dark mode overrides */
body:not(.light-mode) {
    --bg-color: #000000;
    --text-color: #33ff33;
    --banner-bg: #1a1a1a;
    --clock-bg: #1a1a1a;
    --button-bg: #333;
    --button-text: #33ff33;
    --button-border: #33ff33;
    --modal-bg: rgba(26, 26, 26, 0.95);
    --modal-text: #33ff33;
    --shadow-color: rgba(51, 255, 51, 0.2);
    --overlay-bg: rgba(0, 0, 0, 0.75);
}

/* Info Box Left Bottom Styles */
.info-box-left-bottom {
    background: var(--modal-bg, #f8f8f8);
    color: var(--modal-text, #222);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 370px;
    min-width: 250px;
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
    float: left;
    clear: left;
}
.info-box-left-bottom h2 {
    margin-top: 0;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-color, #222);
}
.info-box-left-bottom h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-color, #222);
}
.info-box-left-bottom ol {
    margin: 0 0 0.5rem 1.2rem;
    padding: 0;
}
.info-box-left-bottom p {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
@media (max-width: 900px) {
    .info-box-left-bottom {
        float: none;
        margin: 1.5rem auto 1.5rem auto;
        max-width: 95vw;
    }
}

/* Left Sidebar Styles */
.left-sidebar {
    position: fixed;
    top: 110px;
    left: 0;
    width: 70px;
    height: calc(100vh - 110px);
    background: var(--modal-bg, #f8f8f8);
    border-right: 1px solid #e0e0e0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    z-index: 105;
}
.left-sidebar .icon-button {
    background: none;
    border: none;
    color: var(--text-color, #222);
    font-size: 1.6rem;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.left-sidebar .icon-button:hover {
    color: #1976d2;
    background: #f0f8ff;
    border-radius: 8px;
}
.left-sidebar .button-text {
    font-size: 0.95rem;
    margin-top: 0.25rem;
    color: #666;
}
@media (max-width: 900px) {
    .left-sidebar {
        position: static;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: flex-start;
        border-right: none;
        box-shadow: none;
        padding: 0.5rem 0;
    }
    .left-sidebar .icon-button {
        margin-bottom: 0;
        margin-right: 1.5rem;
    }
}

/* Holidays Layout/Modal Styles */
.holidays-layout {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.45);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.dark-mode .holidays-layout .holidays-header,
.dark-mode .holidays-layout .holidays-list {
    background: #111 !important;
    color: #33ff33 !important;
    box-shadow: 0 2px 8px rgba(51,255,51,0.08);
    border-radius: 12px !important;
    border: 1px solid #222;
}


.holidays-layout .holidays-header {
    background: var(--modal-bg, #fff);
    color: var(--modal-text, #222);
    padding: 1.2rem 2rem 1rem 2rem;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.holidays-layout .holidays-list {
    background: var(--modal-bg, #fff);
    color: var(--modal-text, #222);
    padding: 1.2rem 2rem 2rem 2rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    max-width: 400px;
    margin: 0 auto;
    font-size: 1.1rem;
}
.holidays-layout ul {
    margin: 0.5rem 0 1.2rem 1.5rem;
    padding: 0;
}
.holidays-layout h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    color: #1976d2;
}
.holidays-layout .close-button {
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    margin-left: 1rem;
}
.holidays-layout .close-button:hover {
    color: #d32f2f;
}
@media (max-width: 600px) {
    .holidays-layout .holidays-header,
    .holidays-layout .holidays-list {
        padding: 1rem 0.5rem;
        max-width: 95vw;
    }
}

/* Banner Styles */
.banner {
    width: 100%;
    background-color: var(--banner-bg);
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    position: relative;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.banner-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.banner h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
}

.top-controls {
    position: fixed;
    top: calc(1rem + 80px); /* Adjust this value based on your banner height */
    right: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    z-index: 100;
}

#languageSelect,
.top-controls button {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--button-border);
    background-color: var(--button-bg);
    color: var(--button-text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

#languageSelect:hover,
.top-controls button:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

/* Clock Container and Clock */
.clock-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 180px);
    padding: 2.5rem 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.clock {
    position: relative;
    background-color: var(--clock-bg);
    padding: 5rem 4rem;
    border-radius: 2.5rem;
    box-shadow: 0 0 30px var(--shadow-color);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 900px;
}

/* Clock Controls Overlay */
.clock-controls-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    transition: all 0.3s ease;
    background-color: var(--overlay-bg);
    padding: 0.6rem 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.clock:hover .clock-controls-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Zoom Buttons Group */
.zoom-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.zoom-buttons::before {
    content: '';
    position: absolute;
    left: -0.4rem;
    height: 24px;
    width: 1px;
    background-color: var(--button-border);
    opacity: 0.3;
}

/* Overlay Buttons */
.overlay-button {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border: 1px solid var(--button-border);
    background-color: var(--button-bg);
    color: var(--button-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

#fullscreenToggle {
    font-size: 1.2rem;
}

#zoomIn, #zoomOut {
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}

.overlay-button:hover {
    transform: translateY(-2px);
    background-color: var(--text-color);
    color: var(--bg-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.overlay-button:active {
    transform: translateY(0);
}

/* Tooltip styles */
.overlay-button::after {
    content: attr(title);
    position: absolute;
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--modal-bg);
    color: var(--text-color);
    padding: 0.4rem 0.8rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.overlay-button:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Time and Date Display */
.time {
    font-size: 10rem;
    font-weight: bold;
    margin: 0;
    font-family: 'Digital-7', monospace;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px var(--shadow-color);
    position: relative;
    color: var(--text-color);
    line-height: 1.05;
}

@media (max-width: 1200px) {
  .clock-container {
    max-width: 98vw;
    padding: 1.2rem 0.2rem;
  }
  .clock {
    max-width: 98vw;
    padding: 2.5rem 0.5rem;
  }
  .time {
    font-size: 6.5rem;
  }
}

@media (max-width: 700px) {
  .clock-container {
    max-width: 100vw;
    padding: 0.5rem 0.1rem;
  }
  .clock {
    max-width: 100vw;
    padding: 1rem 0.1rem;
  }
  .time {
    font-size: 3.2rem;
  }
}

.lang-toggle-btn {
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.lang-toggle-btn:focus {
  outline: 2px solid #1976d2;
  z-index: 1;
}
#languageToggleGroup .lang-toggle-btn {
  background: #f6f6f6;
  color: #222;
  border-right: 1px solid #bbb;
}
#languageToggleGroup .lang-toggle-btn:last-child {
  border-right: none;
}
#languageToggleGroup .lang-toggle-btn.active, #languageToggleGroup .lang-toggle-btn[aria-pressed="true"] {
  background: #e0e0e0;
  color: #111;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.time:contains("11") {
    letter-spacing: 0.2em;
}

/* Alternative approach using JavaScript class */
.time.double-one {
    letter-spacing: 0.2em;
}

.date {
    font-size: 1.5rem;
    margin-top: 1rem;
    font-family: 'Digital-7', monospace;
    transition: all 0.3s ease;
    color: var(--text-color);
    text-align: center;
}

.timezone {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    font-family: 'Digital-7', monospace;
    color: var(--text-color);
    opacity: 0.8;
    text-align: center;
    transition: all 0.3s ease;
}

/* Controls Section */
.controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.control-group {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.primary-controls button {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--button-border);
    background-color: var(--button-bg);
    color: var(--button-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Fullscreen Styles */
.clock-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.clock-container.fullscreen .clock {
    transform: none;
    margin: 0;
    background: none;
    box-shadow: none;
    padding: 0;
}

.clock-container.fullscreen .time {
    font-size: 20rem;
    margin: 0;
    text-shadow: 0 0 20px var(--shadow-color);
}

.clock-container.fullscreen .date {
    font-size: 4rem;
    margin-top: 2rem;
}

.clock-container.fullscreen .timezone {
    font-size: 3rem;
    margin-top: 1rem;
}

.clock-container.fullscreen .clock-controls-overlay,
.clock-container.fullscreen .controls,
.clock-container.fullscreen .footer {
    display: none;
}

@media (max-width: 768px) {
    .clock-container.fullscreen .time {
        font-size: 15rem;
    }
    
    .clock-container.fullscreen .date {
        font-size: 3rem;
    }
    
    .clock-container.fullscreen .timezone {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .clock-container.fullscreen .time {
        font-size: 10rem;
    }
    
    .clock-container.fullscreen .date {
        font-size: 2rem;
    }
    
    .clock-container.fullscreen .timezone {
        font-size: 1.5rem;
    }
}

/* 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;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--modal-bg);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    color: var(--modal-text);
    box-shadow: 0 0 20px var(--shadow-color);
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

#alarmModal .modal-content {
    max-width: 400px;
    width: 90%;
    margin: 0 auto;
}

.shortcuts-list {
    margin: 1.5rem 0;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

kbd {
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    border: 1px solid var(--button-border);
    font-family: monospace;
    min-width: 1.5rem;
    text-align: center;
}

/* Footer Styles */
.footer {
    padding: 1rem;
    text-align: center;
    background: var(--background-color);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

.footer-row p {
    margin: 0;
}

.footer-row a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-row a:hover {
    text-decoration: underline;
}

/* Loading Indicator */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--text-color);
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* NoScript Message */
.noscript-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--modal-bg);
    color: var(--modal-text);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 0 20px var(--shadow-color);
    max-width: 80%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        gap: 1rem;
    }

    .top-controls {
        top: calc(0.5rem + 60px);
        right: 0.5rem;
    }

    .time {
        font-size: 4rem;
    }

    .date {
        font-size: 1.2rem;
    }

    .clock-controls-overlay {
        opacity: 1;
        padding: 0.5rem 0.8rem;
    }

    .overlay-button {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }

    .overlay-button::after {
        display: none;
    }

    .zoom-buttons::before {
        height: 20px;
    }

    .fullscreen .clock {
        transform: scale(1.2);
    }
}

@media (max-width: 480px) {
    .top-controls {
        top: calc(0.3rem + 50px);
        right: 0.3rem;
    }
    
    #languageSelect,
    .top-controls button {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .time {
        font-size: 3rem;
    }

    .date {
        font-size: 1rem;
    }

    .clock {
        padding: 2rem;
    }

    .clock-controls-overlay {
        padding: 0.4rem 0.6rem;
    }

    .overlay-button {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.9rem;
    }

    .zoom-buttons::before {
        height: 18px;
    }

    .fullscreen .clock {
        transform: scale(1);
    }

    .modal-content {
        padding: 1rem;
    }
}

/* High Contrast Mode */
@media (forced-colors: active) {
    :root {
        --text-color: CanvasText;
        --button-border: ButtonText;
        --button-text: ButtonText;
        --button-bg: Canvas;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .spinner {
        animation: none !important;
    }
}

/* Print Styles */
@media print {
    .banner,
    .controls,
    .clock-controls-overlay,
    .footer {
        display: none;
    }

    .clock {
        box-shadow: none;
        border: 1px solid #000;
    }

    .time,
    .date {
        color: #000;
        text-shadow: none;
    }
}

/* Timer Controls */
.timer-controls {
    margin-top: 1rem;
}

.timer-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.timer-button:hover {
    opacity: 0.9;
}

.button-icon {
    font-size: 16px;
}

.button-text {
    font-weight: 500;
}

/* Form Styles */
.alarm-form,
.timer-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
}

.date-picker,
input[type="text"],
input[type="number"],
select {
    padding: 0.5rem;
    border: 1px solid var(--button-border);
    border-radius: 0.3rem;
    background-color: var(--button-bg);
    color: var(--button-text);
    font-size: 1rem;
}

input[type="number"] {
    width: 80px;
    text-align: center;
}

.timer-inputs {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.primary-button {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.secondary-button {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--button-border);
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* Active Timers Section */
.active-timers {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--modal-bg);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px var(--shadow-color);
    max-width: 300px;
    width: 90%;
    color: var(--text-color);
}

.active-section {
    margin-bottom: 1rem;
}

.active-section:last-child {
    margin-bottom: 0;
}

.active-section h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.timers-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background-color: var(--button-bg);
    border-radius: 0.3rem;
    border: 1px solid var(--button-border);
}

.timer-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.timer-label {
    font-weight: 500;
}

.timer-time {
    font-size: 0.9rem;
    opacity: 0.8;
}

.delete-timer {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.2rem;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.delete-timer:hover {
    opacity: 1;
}

/* Dark Mode Support */
.dark-mode .date-picker,
.dark-mode input[type="text"],
.dark-mode input[type="number"],
.dark-mode select {
    background-color: var(--dark-input-bg, #333);
    color: var(--dark-text-color, #fff);
    border-color: var(--dark-border-color, #444);
}

.dark-mode .timer-item {
    background-color: var(--dark-input-bg, #333);
    border-color: var(--dark-border-color, #444);
}

/* Responsive Design */
@media (max-width: 768px) {
    .timer-inputs {
        flex-direction: column;
        align-items: center;
    }

    .active-timers {
        position: static;
        margin: 1rem auto;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .timer-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }
}

/* Notification Popup Styles */
.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--modal-bg);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
    padding: 16px;
    display: none;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    max-width: 350px;
    width: 90%;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    font-size: 24px;
    background-color: var(--text-color);
    color: var(--bg-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-text {
    flex: 1;
}

.notification-text h3 {
    margin: 0 0 4px 0;
    color: var(--text-color);
    font-size: 16px;
}

.notification-text p {
    margin: 0;
    color: var(--text-color);
    opacity: 0.8;
    font-size: 14px;
}

.notification-button {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.notification-button:hover {
    opacity: 0.9;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Dark mode support for notification */
.dark-mode .notification-popup {
    background-color: var(--modal-bg);
}

.dark-mode .notification-icon {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Timer Fullscreen Styles */
.timer-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: none;
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.timer-fullscreen-content {
    text-align: center;
    padding: 2rem;
}

.timer-fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.timer-fullscreen-header h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 2rem;
}

.timer-fullscreen-time {
    font-size: 8rem;
    font-weight: bold;
    color: var(--text-color);
    font-family: monospace;
    margin: 2rem 0;
}

.fullscreen-button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.fullscreen-button:hover {
    background-color: var(--hover-color);
}

/* Dark mode support for fullscreen timer */
.dark-mode .timer-fullscreen {
    background-color: var(--bg-color);
}

.dark-mode .timer-fullscreen-time {
    color: var(--text-color);
}

/* Timezone Controls */
/* Main Container Layout */
.main-container {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Clock Wrapper */
.clock-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

.clock-wrapper.with-sidebar {
    margin-left: 300px;
}

/* Timezone Sidebar */
.timezone-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    background-color: var(--modal-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 100;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.timezone-sidebar.visible {
    transform: translateX(0);
}

.timezone-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timezone-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
}

.close-button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-button:hover {
    background-color: var(--hover-color);
}

.timezone-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.continent-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.continent-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.continent-btn:hover {
    background-color: var(--hover-color);
}

.continent-btn.active {
    background-color: var(--active-color);
}

.continent-icon {
    font-size: 1.2rem;
}

.continent-text {
    font-size: 1rem;
    font-weight: 500;
}

.timezone-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.timezone-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timezone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--item-bg);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.timezone-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timezone-city {
    font-weight: 500;
    color: var(--text-color);
}

.timezone-time {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--text-color);
}

.timezone-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.time-format-toggle {
    display: flex;
    justify-content: center;
}

.format-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--button-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.format-toggle-btn:hover {
    background-color: var(--hover-color);
}

.format-icon {
    font-size: 1.2rem;
}

.format-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Dark mode support */
body.dark-mode .timezone-sidebar {
    background-color: var(--dark-modal-bg);
    border-right-color: var(--dark-border-color);
}

body.dark-mode .timezone-item {
    background-color: var(--dark-item-bg);
}

body.dark-mode .continent-btn:hover,
body.dark-mode .format-toggle-btn:hover {
    background-color: var(--dark-hover-color);
}

body.dark-mode .continent-btn.active {
    background-color: var(--dark-active-color);
}

/* Responsive design */
@media (max-width: 768px) {
    .timezone-sidebar {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .timezone-sidebar {
        width: 100%;
    }
    
    .continent-btn {
        padding: 0.75rem;
    }
    
    .timezone-item {
        padding: 0.75rem;
    }
}

/* Remove old timezone dropdown styles */
.timezone-dropdown {
    display: none;
}

/* Icon Controls */
.icon-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.icon-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--button-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.icon-button:hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-2px);
}

.icon-button .button-icon {
    font-size: 1.2rem;
}

.icon-button .button-text {
    font-weight: 500;
}

/* Dark mode support */
body.dark-mode .icon-button {
    background-color: var(--dark-button-bg);
    border-color: var(--dark-border-color);
}

body.dark-mode .icon-button:hover {
    background-color: var(--dark-button-hover-bg);
}

/* Responsive design */
@media (max-width: 768px) {
    .icon-controls {
        flex-wrap: wrap;
    }

    .icon-button {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .icon-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .icon-button .button-icon {
        font-size: 1rem;
    }
}

/* Remove old styles */
.timezone-controls,
.timer-controls,
.timezone-button,
.timer-button {
    display: none;
}

/* Stopwatch Modal Styles */
#stopwatchModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 1000;
    display: none;
}

#stopwatchModal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

#stopwatchModal .modal-content {
    width: 100%;
    height: 100%;
    max-width: none;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
}

#stopwatchModal .stopwatch-display {
    font-size: 8rem;
    font-family: 'Digital-7', monospace;
    text-align: center;
    margin: 1rem 0;
    color: var(--primary-color);
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    transition: font-size 0.3s ease;
}

#stopwatchModal .stopwatch-display span {
    display: inline-block;
    min-width: 2ch;
    text-align: center;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

#stopwatchModal .stopwatch-controls {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    background-color: var(--modal-bg);
    padding: 1rem;
    border-radius: 2rem;
    box-shadow: 0 4px 12px var(--shadow-color);
}

#stopwatchModal .stopwatch-controls .action-button {
    padding: 1rem 2rem;
    font-size: 1.5rem;
    border-radius: 1rem;
    min-width: 120px;
    background-color: var(--button-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

#stopwatchModal .stopwatch-controls .action-button:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

#stopwatchModal .stopwatch-controls .action-button:active {
    transform: translateY(0);
}

#stopwatchModal .close-button {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1001;
}

#stopwatchModal .close-button:hover {
    background-color: var(--modal-bg);
    transform: scale(1.1);
}

#stopwatchModal .laps-container {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    max-height: 80%;
    width: 300px;
    background-color: var(--modal-bg);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px var(--shadow-color);
    overflow-y: auto;
}

#stopwatchModal .font-size-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

#stopwatchModal .font-size-controls button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#stopwatchModal .font-size-controls button:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

@media (max-width: 768px) {
    #stopwatchModal .stopwatch-display {
        font-size: 6rem;
    }
    
    #stopwatchModal .font-size-controls {
        right: 1rem;
        padding: 0.8rem;
    }
    
    #stopwatchModal .font-size-controls button {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    #stopwatchModal .stopwatch-display {
        font-size: 4rem;
    }
    
    #stopwatchModal .font-size-controls {
        right: 0.5rem;
        padding: 0.6rem;
    }
    
    #stopwatchModal .font-size-controls button {
        font-size: 1rem;
        width: 30px;
        height: 30px;
    }
}

/* Exit Fullscreen Button */
.exit-fullscreen-button {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--button-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.exit-fullscreen-button:hover {
    background-color: var(--button-hover-bg);
    transform: scale(1.1);
}

/* Fullscreen mode - only show timer */
#stopwatchModal.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    max-width: none;
    max-height: none;
    transform: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
}

#stopwatchModal.fullscreen .modal-content {
    width: 100%;
    height: 100%;
    max-width: none;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
}

#stopwatchModal.fullscreen .stopwatch-display {
    font-size: 12rem;
    margin: 2rem 0;
    text-align: center;
}

#stopwatchModal.fullscreen .stopwatch-controls {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    background-color: var(--modal-bg);
    padding: 1rem;
    border-radius: 2rem;
    box-shadow: 0 4px 12px var(--shadow-color);
}

#stopwatchModal.fullscreen .stopwatch-controls .action-button {
    padding: 1rem 2rem;
    font-size: 1.5rem;
    border-radius: 1rem;
    min-width: 120px;
}

#stopwatchModal.fullscreen .laps-container {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--modal-bg);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px var(--shadow-color);
}

#stopwatchModal.fullscreen .modal-header {
    position: fixed;
    top: 0;
    right: 0;
    padding: 1rem;
    z-index: 1001;
}

#stopwatchModal.fullscreen .modal-header h2 {
    display: none;
}

#stopwatchModal.fullscreen .modal-actions {
    display: flex;
    gap: 0.5rem;
}

#stopwatchModal.fullscreen .close-button {
    position: static;
    margin: 0;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#stopwatchModal.fullscreen .display-controls {
    position: static;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    #stopwatchModal.fullscreen .stopwatch-display {
        font-size: 8rem;
    }
    
    #stopwatchModal.fullscreen .laps-container {
        display: none;
    }
    
    #stopwatchModal.fullscreen .display-controls {
        top: 1rem;
        right: 1rem;
    }
    
    #stopwatchModal.fullscreen .close-button {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }
    
    #stopwatchModal.fullscreen .font-size-controls button,
    #stopwatchModal.fullscreen .fullscreen-button {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    #stopwatchModal.fullscreen .stopwatch-display {
        font-size: 6rem;
    }
    
    #stopwatchModal.fullscreen .stopwatch-controls {
        bottom: 1rem;
        padding: 0.5rem;
    }
    
    #stopwatchModal.fullscreen .stopwatch-controls .action-button {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    #stopwatchModal.fullscreen .close-button {
        font-size: 1rem;
        width: 30px;
        height: 30px;
    }
    
    #stopwatchModal.fullscreen .font-size-controls button,
    #stopwatchModal.fullscreen .fullscreen-button {
        font-size: 1rem;
        width: 30px;
        height: 30px;
    }
}

/* Dark mode support */
body.dark-mode #stopwatchModal.fullscreen {
    background-color: var(--bg-color);
}

body.dark-mode .exit-fullscreen-button {
    background-color: var(--button-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

body.dark-mode .exit-fullscreen-button:hover {
    background-color: var(--button-hover-bg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #stopwatchModal {
        max-width: 350px;
    }
    
    #stopwatchModal .stopwatch-display {
        font-size: 2rem;
    }
    
    #stopwatchModal.fullscreen .stopwatch-display {
        font-size: 8rem;
    }
    
    .exit-fullscreen-button {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    #stopwatchModal {
        max-width: 300px;
    }
    
    #stopwatchModal .stopwatch-display {
        font-size: 1.8rem;
    }
    
    #stopwatchModal.fullscreen .stopwatch-display {
        font-size: 6rem;
    }
    
    .exit-fullscreen-button {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

@font-face {
    font-family: 'Digital-7';
    src: url('files/digital-7.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Social Sharing Styles */
.social-sharing {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 0.5rem 0;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color, #1e90ff);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.share-btn:active {
    transform: translateY(0);
}

#shareFacebook:hover { background: #1877f2; }
#shareTwitter:hover { background: #1da1f2; }
#shareLinkedIn:hover { background: #0077b5; }
#shareWhatsApp:hover { background: #25d366; }
#shareEmail:hover { background: #ea4335; }

#stopwatchModal .display-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

#stopwatchModal .font-size-controls {
    display: flex;
    gap: 0.5rem;
}

#stopwatchModal .font-size-controls button,
#stopwatchModal .fullscreen-button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#stopwatchModal .font-size-controls button:hover,
#stopwatchModal .fullscreen-button:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

#stopwatchModal.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 1000;
}

#stopwatchModal.fullscreen .modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

#stopwatchModal.fullscreen .stopwatch-display {
    font-size: 12rem;
    margin: 2rem 0;
}

#stopwatchModal.fullscreen .stopwatch-controls {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    background-color: var(--modal-bg);
    padding: 1rem;
    border-radius: 2rem;
    box-shadow: 0 4px 12px var(--shadow-color);
}

#stopwatchModal.fullscreen .laps-container {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--modal-bg);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px var(--shadow-color);
    max-height: 80vh;
    overflow-y: auto;
}

#stopwatchModal.fullscreen .modal-header {
    position: fixed;
    top: 0;
    right: 0;
    padding: 1rem;
    z-index: 1001;
}

#stopwatchModal.fullscreen .modal-header h2 {
    display: none;
}

#stopwatchModal.fullscreen .modal-actions {
    display: flex;
    gap: 0.5rem;
}

#stopwatchModal.fullscreen .close-button {
    position: static;
    margin: 0;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#stopwatchModal.fullscreen .display-controls {
    position: static;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    #stopwatchModal.fullscreen .stopwatch-display {
        font-size: 8rem;
    }
    
    #stopwatchModal.fullscreen .laps-container {
        display: none;
    }
    
    #stopwatchModal.fullscreen .display-controls {
        top: 1rem;
        right: 1rem;
    }
    
    #stopwatchModal.fullscreen .close-button {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }
    
    #stopwatchModal.fullscreen .font-size-controls button,
    #stopwatchModal.fullscreen .fullscreen-button {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    #stopwatchModal.fullscreen .stopwatch-display {
        font-size: 6rem;
    }
    
    #stopwatchModal.fullscreen .stopwatch-controls {
        bottom: 1rem;
        padding: 0.5rem;
    }
    
    #stopwatchModal.fullscreen .stopwatch-controls .action-button {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    #stopwatchModal.fullscreen .close-button {
        font-size: 1rem;
        width: 30px;
        height: 30px;
    }
    
    #stopwatchModal.fullscreen .font-size-controls button,
    #stopwatchModal.fullscreen .fullscreen-button {
        font-size: 1rem;
        width: 30px;
        height: 30px;
    }
}