@import url('https://fonts.googleapis.com/css2?family=Agdasima:wght@400;700&family=Roboto+Condensed:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('background.png') center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.rain-toggle {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #5E64B8;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(94, 100, 184, 0.3);
}

.rain-toggle:hover {
    background: #4a5099;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(94, 100, 184, 0.4);
}

.rain-toggle.active {
    background: #4dd0e1;
    color: #0d1b2a;
}

.rain-toggle.active:hover {
    background: #26c6da;
}

.clock-display {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    z-index: 10;
}

.current-time {
    color: #5E64B8;
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Agdasima', sans-serif;
}

.period {
    color: #5E64B8;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Agdasima', sans-serif;
}

.watcher {
    position: absolute;
    right: 3rem;
    bottom: 3rem;
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    min-width: 300px;
    opacity: 0;
    transform: translateY(50px);
}

.watcher.active {
    display: flex;
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.watcher dotlottie-wc {
    width: 300px !important;
    height: 220px !important;
    flex-shrink: 0;
    display: block;
}

.watcher-text {
    color: #5E64B8;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    max-width: 200px;
    line-height: 1.4;
}

.sparkle {
    position: absolute;
    width: 30px;
    height: 30px;
    opacity: 0.6;
}

.sparkle::before,
.sparkle::after {
    content: '';
    position: absolute;
    background: #5E64B8;
}

.sparkle::before {
    width: 30px;
    height: 4px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.sparkle::after {
    width: 4px;
    height: 30px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.sparkle-1 {
    top: 20%;
    left: 10%;
    transform: rotate(0deg);
}

.sparkle-2 {
    top: 15%;
    right: 15%;
    transform: rotate(15deg);
}

.sparkle-3 {
    bottom: 20%;
    left: 8%;
    transform: rotate(-10deg);
}

.sparkle-4 {
    bottom: 25%;
    right: 10%;
    transform: rotate(20deg);
}

.container {
    text-align: center;
    z-index: 1;
}

h1 {
    color: #5E64B8;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 4rem;
    letter-spacing: 1px;
}

.motivation {
    color: #5E64B8;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.time-period {
    color: #5E64B8;
    font-size: 2rem;
    font-weight: 600;
    position: absolute;
    left: -80px;
    font-family: 'Agdasima', sans-serif;
}

.time {
    color: #5E64B8;
    font-size: 20rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 10px;
    font-family: 'Agdasima', sans-serif;
}

.colon {
    color: #5E64B8;
    font-size: 11rem;
    font-weight: 700;
    margin: 0 0.5rem;
    font-family: 'Agdasima', sans-serif;
}

.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

button {
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.start-btn {
    background: #5E64B8;
    color: white;
    font-size: 1.6rem;
    padding: 1.5rem 4rem;
    border-radius: 50px;
    font-weight: 500;
    font-family: 'Roboto Condensed', sans-serif;
    letter-spacing: 0.05em;
}

.start-btn:hover {
    background: #4a5099;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(94, 100, 184, 0.3);
}

.icon-btn {
    background: #5E64B8;
    color: white;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    padding: 0;
}

.icon-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: #4a5099;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(94, 100, 184, 0.3);
}

.footer {
    position: absolute;
    bottom: 2rem;
    color: rgba(94, 100, 184, 0.6);
    font-size: 0.9rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
}

.modal-content h2 {
    color: #5E64B8;
    margin-bottom: 1.5rem;
}

.setting-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.setting-group label {
    display: block;
    color: #5E64B8;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.setting-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #d0d4f0;
    border-radius: 10px;
    font-size: 1rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-buttons button {
    flex: 1;
    padding: 0.75rem;
    border-radius: 10px;
    font-size: 1rem;
}

.save-btn {
    background: #5E64B8;
    color: white;
}

.cancel-btn {
    background: #d0d4f0;
    color: #5E64B8;
}

/* ========================================
   RESPONSIVE DESIGN - Mobile Only
   Base desktop layout remains unchanged
   ======================================== */

/* Tablets (landscape and portrait) */
@media (max-width: 768px) {
    .clock-display {
        top: 1.5rem;
        left: 1.5rem;
    }
    
    .current-time {
        font-size: 2.5rem;
    }
    
    .period {
        font-size: 1.3rem;
    }
    
    .rain-toggle {
        top: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .watcher {
        right: 2rem;
        bottom: 2rem;
        min-width: 220px;
    }
    
    .watcher-text {
        font-size: 0.9rem;
    }
    
    .watcher dotlottie-wc {
        width: 150px;
        height: 150px;
    }
    
    .container {
        max-width: 90%;
    }
    
    .modal-content {
        max-width: 85%;
        padding: 2rem;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    body {
        padding: 1rem;
    }
    
    .clock-display {
        top: 1rem;
        left: 1rem;
    }
    
    .current-time {
        font-size: 2rem;
    }
    
    .period {
        font-size: 1rem;
    }
    
    .rain-toggle {
        top: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .container {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }
    
    .motivation {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .timer-display {
        margin-bottom: 2rem;
    }
    
    .timer-display .time {
        font-size: 6rem;
    }
    
    .timer-display .colon {
        font-size: 6rem;
        margin: 0 0.5rem;
    }
    
    .controls {
        gap: 1rem;
    }
    
    .start-btn {
        padding: 1rem 2.5rem;
        font-size: 1.2rem;
    }
    
    .icon-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Hide watcher on mobile for cleaner layout */
    .watcher {
        display: none !important;
    }
    
    .modal-content {
        max-width: 90%;
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .clock-display {
        top: 0.8rem;
        left: 0.8rem;
    }
    
    .current-time {
        font-size: 1.7rem;
    }
    
    .period {
        font-size: 0.9rem;
    }
    
    .rain-toggle {
        top: 0.8rem;
        right: 0.8rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .container {
        padding: 1.5rem 1rem;
    }
    
    .motivation {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .timer-display .time {
        font-size: 4.5rem;
    }
    
    .timer-display .colon {
        font-size: 4.5rem;
        margin: 0 0.3rem;
    }
    
    .start-btn {
        padding: 0.9rem 2rem;
        font-size: 1.1rem;
    }
    
    .icon-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .modal-content {
        padding: 1.2rem;
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
    }
    
    .setting-group label {
        font-size: 0.9rem;
    }
}