/* Alarm CSS - Alarm clock specific styles */

/* Clock display */
.clock-display {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(123, 104, 238, 0.1));
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

/* Animated background glow effect */
.clock-display::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse-glow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.current-time {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px var(--shadow-color);
    position: relative;
    z-index: 1;
    /* HEARTBEAT EFFECT! */
    animation: heartbeat 2s ease-in-out infinite;
}

/* HEARTBEAT ANIMATION - ENHANCED */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.05);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(1);
    }
}

/* Remove old pulse animation since we have heartbeat now */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.current-date {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Alarm controls */
.alarm-controls {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.time-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap; /* RESPONSIVE: Allow wrapping on small screens */
}

.time-inputs .input-group {
    position: relative;
    flex-shrink: 0; /* Prevent shrinking */
}

.time-inputs input {
    font-size: var(--font-xxl);
    width: 100px;
    height: 80px;
    text-align: center;
    font-weight: 700;
    border: 2px solid var(--border-color);
    background-color: var(--bg-color);
    transition: all var(--transition-fast);
    border-radius: var(--radius-md); /* ADDED: Rounded corners */
}

.time-inputs input:focus {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2); /* ADDED: Focus ring */
    outline: none;
}

.time-inputs input:hover {
    border-color: var(--primary-color);
}

.time-inputs label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--font-sm);
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap; /* Prevent label wrapping */
}

/* Separator with subtle animation */
.separator {
    font-size: var(--font-xxl);
    font-weight: 700;
    color: var(--text-secondary);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 49%, 100% {
        opacity: 1;
    }
    50%, 99% {
        opacity: 0.3;
    }
}

/* Alarm options */
.alarm-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs); /* IMPROVED: Better spacing */
}

.option-group label {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.option-group select,
.option-group input[type="text"] {
    transition: all var(--transition-fast); /* ADDED: Smooth transitions */
}

.option-group select:focus,
.option-group input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.option-group.checkbox {
    flex-direction: row;
    align-items: center;
}

.option-group.checkbox label {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none; /* ADDED: Prevent text selection */
}

.option-group.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-right: var(--spacing-sm);
}

/* Alarms list */
.alarms-list {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 2px 8px var(--shadow-color); /* ADDED: Subtle shadow */
}

.alarms-list h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-xl); /* IMPROVED: Larger heading */
}

.alarms-list h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: var(--radius-sm);
}

.alarms-container {
    display: grid;
    gap: var(--spacing-md);
}

/* Alarm item */
.alarm-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg); /* IMPROVED: Better padding */
    background-color: var(--bg-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    gap: var(--spacing-md); /* ADDED: Gap between items */
}

.alarm-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px var(--shadow-color); /* IMPROVED: Better shadow */
    border-color: var(--primary-color);
}

.alarm-item.active {
    border-color: var(--success-color);
    background-color: rgba(92, 184, 92, 0.1);
}

.alarm-item.ringing {
    animation: shake 0.5s infinite, pulse-ring 1s infinite;
    border-color: var(--danger-color);
    background-color: rgba(217, 83, 79, 0.1);
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 83, 79, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(217, 83, 79, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(217, 83, 79, 0);
    }
}

.alarm-info {
    flex: 1;
    min-width: 0; /* IMPORTANT: Allows text truncation */
}

.alarm-time {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-color);
    font-family: 'Courier New', monospace; /* ADDED: Monospace for better time display */
}

.alarm-message {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* ADDED: Prevent long messages from breaking layout */
}

.alarm-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center; /* IMPROVED: Better alignment */
    flex-shrink: 0; /* Prevent shrinking */
}

.alarm-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0; /* Prevent shrinking */
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: var(--transition-fast);
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition-fast);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* IMPROVED: Better shadow */
}

input:checked + .slider {
    background-color: var(--success-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(92, 184, 92, 0.2); /* ADDED: Focus indicator */
}

.delete-alarm {
    padding: var(--spacing-sm);
    background-color: transparent;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px; /* ADDED: Minimum touch target */
    min-height: 36px;
}

.delete-alarm:hover {
    background-color: rgba(217, 83, 79, 0.1);
    transform: scale(1.1); /* ADDED: Subtle scale effect */
}

.delete-alarm:active {
    transform: scale(0.95); /* ADDED: Click feedback */
}

/* Empty state */
.empty-alarms {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-xl); /* IMPROVED: More padding */
    color: var(--text-secondary);
}

.empty-alarms svg {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.empty-alarms p {
    font-size: var(--font-lg);
    margin-top: var(--spacing-md);
}

/* Alarm notification */
.alarm-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xxl); /* IMPROVED: More padding */
    box-shadow: 0 20px 60px var(--shadow-color); /* IMPROVED: Deeper shadow */
    z-index: var(--z-notification);
    text-align: center;
    min-width: 300px;
    max-width: 90vw; /* RESPONSIVE: Don't exceed viewport */
    animation: slideIn 0.3s ease, pulse-notification 2s infinite;
    border: 3px solid var(--danger-color); /* ADDED: Alert border */
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes pulse-notification {
    0%, 100% {
        box-shadow: 0 20px 60px var(--shadow-color), 0 0 0 0 rgba(217, 83, 79, 0.4);
    }
    50% {
        box-shadow: 0 20px 60px var(--shadow-color), 0 0 0 20px rgba(217, 83, 79, 0);
    }
}

.alarm-notification h2 {
    color: var(--danger-color); /* CHANGED: More urgent color */
    margin-bottom: var(--spacing-md);
    animation: shake 0.5s infinite; /* ADDED: Shaking title */
}

.alarm-notification .alarm-time-display {
    font-size: var(--font-xxxl);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    font-family: 'Courier New', monospace;
}

.alarm-notification .alarm-message-display {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* SEO Content Sections for Alarm Page */
.seo-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.seo-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.seo-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 2rem 0 1rem 0;
}

.seo-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.seo-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 1rem 0;
}

.benefit-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.use-case {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.use-case:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.use-case h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.75rem 0;
}

.use-case p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Tips List */
.tips-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.tip-item {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease; /* ADDED */
}

.tip-item:hover {
    transform: translateX(5px); /* ADDED: Subtle slide effect */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tip-item h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.75rem 0;
}

.tip-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Related Tools Grid */
.related-tools {
    background: var(--bg-secondary);
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-tool-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.related-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.related-tool-card .tool-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.related-tool-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.75rem 0;
}

.related-tool-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(123, 104, 238, 0.1));
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-large {
    font-size: 1.15rem;
    padding: 1rem 2.5rem;
}

/* Dark mode adjustments */
[data-theme="dark"] .benefit-card,
[data-theme="dark"] .use-case,
[data-theme="dark"] .tip-item,
[data-theme="dark"] .related-tool-card {
    background: var(--bg-secondary);
}

[data-theme="dark"] .seo-section {
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .alarm-notification {
    background-color: var(--bg-secondary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ============================================ */
/* RESPONSIVE DESIGN - TABLET (768px) */
/* ============================================ */
@media (max-width: 768px) {
    .current-time {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .current-date {
        font-size: var(--font-base);
    }
    
    .clock-display {
        padding: var(--spacing-lg);
    }
    
    .time-inputs {
        gap: var(--spacing-xs);
        justify-content: center;
    }
    
    .time-inputs input {
        width: 80px;
        height: 60px;
        font-size: var(--font-xl);
    }
    
    .alarm-options {
        grid-template-columns: 1fr;
    }
    
    .alarm-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    .alarm-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .seo-section {
        padding: 3rem 0;
    }
    
    .seo-section h2 {
        font-size: 1.75rem;
    }
    
    .benefits-grid,
    .use-cases-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .related-tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

/* ============================================ */
/* RESPONSIVE DESIGN - MOBILE (480px) */
/* ============================================ */
@media (max-width: 480px) {
    .clock-display {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }
    
    .current-time {
        font-size: clamp(2rem, 12vw, 3rem);
        margin-bottom: var(--spacing-xs);
    }
    
    .current-date {
        font-size: var(--font-sm);
    }
    
    .alarm-controls {
        padding: var(--spacing-lg);
    }
    
    .time-inputs {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }
    
    .time-inputs input {
        width: 70px;
        height: 55px;
        font-size: var(--font-lg);
    }
    
    .time-inputs label {
        font-size: 0.7rem;
        top: -20px;
    }
    
    .separator {
        font-size: var(--font-xl);
        margin: 0 var(--spacing-xs);
    }
    
    .alarm-options {
        gap: var(--spacing-md);
    }
    
    .control-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .control-buttons .btn {
        width: 100%;
    }
    
    .alarms-list {
        padding: var(--spacing-lg);
    }
    
    .alarms-list h3 {
        font-size: var(--font-lg);
    }
    
    .alarm-item {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .alarm-time {
        font-size: var(--font-lg);
    }
    
    .alarm-message {
        font-size: 0.85rem;
    }
    
    .alarm-notification {
        min-width: 280px;
        padding: var(--spacing-xl);
    }
    
    .alarm-notification h2 {
        font-size: var(--font-xl);
    }
    
    .alarm-notification .alarm-time-display {
        font-size: var(--font-xxl);
    }
    
    .alarm-notification .alarm-message-display {
        font-size: var(--font-base);
    }
    
    .seo-section {
        padding: 2rem 0;
    }
    
    .seo-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .seo-section h3 {
        font-size: 1.25rem;
    }
    
    .seo-section h4 {
        font-size: 1.1rem;
    }
    
    .seo-section p {
        font-size: 1rem;
    }
    
    .benefits-grid,
    .use-cases-grid,
    .related-tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card,
    .use-case,
    .tip-item,
    .related-tool-card {
        padding: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .btn-large {
        font-size: 1rem;
        padding: 0.875rem 2rem;
        width: 100%;
    }
}

/* ============================================ */
/* RESPONSIVE DESIGN - EXTRA SMALL (360px) */
/* ============================================ */
@media (max-width: 360px) {
    .time-inputs input {
        width: 60px;
        height: 50px;
        font-size: var(--font-base);
    }
    
    .separator {
        font-size: var(--font-lg);
    }
    
    .alarm-notification {
        min-width: 260px;
    }
}

/* ============================================ */
/* ACCESSIBILITY IMPROVEMENTS */
/* ============================================ */

/* Focus visible for keyboard navigation */
.btn:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .alarm-item {
        border-width: 2px;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* ============================================ */
/* PRINT STYLES */
/* ============================================ */
@media print {
    .clock-display::before,
    .alarm-notification {
        display: none;
    }
    
    .current-time {
        animation: none;
        color: #000;
    }
    
    .control-buttons,
    .alarm-actions {
        display: none;
    }
}
/* 12-hour format styles */
.alarm-instruction {
    text-align: center;
    margin-bottom: 15px;
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

#alarm-period {
    width: 80px;
    padding: 12px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

#alarm-period:hover {
    border-color: var(--primary-color);
}

#alarm-period:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.alarm-preview {
    margin-top: 15px;
    padding: 12px;
    background: rgba(74, 144, 226, 0.08);
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: var(--text-primary);
    border-left: 4px solid var(--primary-color);
    animation: fadeIn 0.3s ease;
}

.alarm-preview strong {
    color: var(--primary-color);
    font-size: 16px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Improve alarm item countdown visibility */
.alarm-countdown {
    font-size: 0.9rem !important;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    margin-top: 4px !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Better time display in active alarms */
.alarm-time {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}



/* ===================================
   SIMPLIFIED DUAL MODE ALARM STYLES
=================================== */

/* Mode Toggle Buttons */
.alarm-mode-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: 12px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.mode-btn {
    flex: 1;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mode-btn:hover {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
}

.mode-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Mode Description */
.mode-description {
    text-align: center;
    margin-bottom: 25px;
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

/* Quick Buttons - LARGE & SIMPLE */
.quick-buttons-large {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* Force 7 columns */
    gap: 10px; /* Smaller gap */
    margin-bottom: 25px;
    max-width: 900px; /* Wider container */
    margin-left: auto;
    margin-right: auto;
}

.quick-preset-btn-large {
    padding: 16px 10px; /* Smaller padding */
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.quick-preset-btn-large .time-value {
    font-size: 26px; /* Smaller font */
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.quick-preset-btn-large .time-unit {
    font-size: 12px; /* Smaller font */
    font-weight: 500;
    color: var(--text-secondary);
}

.quick-preset-btn-large:hover {
    border-color: var(--primary-color);
    background: rgba(74, 144, 226, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.25);
}

.quick-preset-btn-large:active {
    transform: translateY(0);
}

/* Alarm Preview */
.alarm-preview {
    margin: 25px 0;
    padding: 18px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.12), rgba(74, 144, 226, 0.06));
    border-radius: 12px;
    text-align: center;
    font-size: 15px;
    color: var(--text-primary);
    border: 2px solid rgba(74, 144, 226, 0.25);
    min-height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.alarm-preview strong {
    color: var(--primary-color);
    font-size: 19px;
    font-weight: 700;
}

.alarm-preview small {
    opacity: 0.85;
    font-size: 14px;
}

.alarm-preview:empty {
    display: none;
}

/* Alarms List Header with Clear All Button */
.alarms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.alarms-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.btn-clear-all {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    background: transparent;
    color: #e74c3c;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-clear-all:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.05);
}

.btn-clear-all:active {
    transform: scale(0.98);
}

/* Responsive Adjustments */
/* Responsive Adjustments */
@media (max-width: 1024px) {
    .quick-buttons-large {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on medium screens */
    }
}

@media (max-width: 768px) {
    .quick-buttons-large {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on tablets */
        gap: 8px;
    }
    
    .quick-preset-btn-large {
        padding: 14px 8px;
    }
    
    .quick-preset-btn-large .time-value {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .quick-buttons-large {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on phones */
    }
    
    .quick-preset-btn-large {
        padding: 12px 6px;
    }
    
    .quick-preset-btn-large .time-value {
        font-size: 20px;
    }
    
    .quick-preset-btn-large .time-unit {
        font-size: 11px;
    }
}
/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alarm-mode {
    animation: fadeIn 0.3s ease;
}