@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;600;700&family=Poppins:wght@300;400;600;700&display=swap');

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

body {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Hearts */
.background-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.background-hearts::before {
    content: '💕 💖 💗 💝 💓 💕 💖 💗 💝 💓 💕 💖 💗 💝 💓 💕 💖 💗 💝 💓 💕 💖 💗 💝 💓 💕 💖 💗 💝 💓 💕 💖 💗 💝 💓 💕 💖 💗 💝 💓';
    position: absolute;
    width: 200%;
    height: 200%;
    font-size: 2rem;
    opacity: 0.1;
    animation: drift 20s linear infinite;
    line-height: 3rem;
}

@keyframes drift {
    0% { transform: translateX(-50%) translateY(-50%); }
    100% { transform: translateX(-60%) translateY(-60%); }
}

/* Passcode Screen */
.passcode-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1000;
}

.passcode-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 400px;
    width: 90%;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.passcode-box h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 20px;
}

.passcode-box p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

#passcode-input {
    width: 100%;
    padding: 15px;
    font-size: 1.5rem;
    text-align: center;
    border: 2px solid #667eea;
    border-radius: 10px;
    margin-bottom: 20px;
    letter-spacing: 3px;
    font-weight: 600;
}

#passcode-input:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.unlock-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.error-message {
    color: #ff4757;
    margin-top: 15px;
    font-weight: 600;
    min-height: 20px;
}

.hint {
    color: #999;
    font-style: italic;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Main Timer Screen */
.timer-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.main-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-width: 900px;
    width: 100%;
    animation: slideUp 0.6s ease-out;
}

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

.title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    color: #ff6b9d;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Timer Display */
.timer-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.time-section {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    padding: 25px 15px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(255, 154, 158, 0.3);
    transition: transform 0.3s ease;
}

.time-section:hover {
    transform: translateY(-5px);
}

.time-value {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: block;
}

.time-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Love Messages */
.love-messages {
    margin: 30px 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.love-message {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: #ff6b9d;
    text-align: center;
    transition: opacity 0.5s ease;
}

/* Milestones */
.milestones {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    border-radius: 15px;
    min-height: 100px;
}

.milestone-title {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: #667eea;
    margin-bottom: 15px;
    font-weight: 600;
}

.milestone-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 25px;
    color: #666;
    font-weight: 600;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.logout-btn {
    background: linear-gradient(45deg, #ff6b9d, #ff8e9b);
}

.logout-btn:hover {
    box-shadow: 0 10px 20px rgba(255, 107, 157, 0.4);
}

/* Floating Hearts Animation */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.floating-heart {
    position: absolute;
    font-size: 2.5rem;
    animation: floatHeart 8s ease-in-out infinite;
    opacity: 0.6;
}

.floating-heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.floating-heart:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
}

.floating-heart:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
}

.floating-heart:nth-child(4) {
    left: 70%;
    animation-delay: 6s;
}

.floating-heart:nth-child(5) {
    left: 90%;
    animation-delay: 8s;
}

@keyframes floatHeart {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
        transform: scale(1);
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(0);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .timer-display {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .time-section {
        padding: 20px 10px;
    }
    
    .time-value {
        font-size: 2.5rem;
    }
    
    .main-content {
        padding: 25px;
        margin: 10px;
    }
    
    .passcode-box {
        padding: 25px;
    }
    
    .passcode-box h1 {
        font-size: 2rem;
    }
    
    .navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-link {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .timer-display {
        grid-template-columns: 1fr;
    }
    
    .time-value {
        font-size: 2rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .love-message {
        font-size: 1.4rem;
    }
}
