/* Days Until Countdown Tool Styles */

/* Gradient Text for Tool Title */
.gradient-text-countdown {
    background: linear-gradient(135deg, #0d9488, #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Form Input Styling */
#event-name, #target-date {
    transition: all 0.3s ease;
}

#event-name:focus, #target-date:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25);
}

.calculate-btn {
    transition: all 0.3s ease;
}

.quick-date-btn {
    transition: all 0.2s ease;
    font-weight: 500;
}

.quick-date-btn:hover {
    color: #0d9488;
    border-color: #0d9488;
}

/* Countdown Clock Styling */
.countdown-clock {
    font-variant-numeric: tabular-nums;
}

.countdown-box {
    padding: 1.25rem 0.5rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.countdown-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    z-index: 0;
}

.countdown-box:hover {
    transform: translateY(-5px);
}

.days-box {
    background: linear-gradient(135deg, #099669, #0d9488);
    color: white;
}

.hours-box {
    background: linear-gradient(135deg, #0d9488, #0891b2);
    color: white;
}

.minutes-box {
    background: linear-gradient(135deg, #0891b2, #0ea5e9);
    color: white;
}

.seconds-box {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: white;
    position: relative;
}

/* Pulse animation for seconds */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(14, 165, 233, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
    }
}

.seconds-box {
    animation: pulse 2s infinite;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.countdown-label {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Countdown Details Styling */
.countdown-details {
    padding: 1.25rem;
    border-radius: 0.5rem;
    background-color: #f0fdfa;
    border: 1px solid #e5e7eb;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.detail-label {
    font-weight: 600;
    color: #4b5563;
}

.detail-value {
    font-weight: 600;
    color: #0d9488;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: #f0fdfa;
}

/* Reset Button Styling */
#reset-btn {
    transition: all 0.2s ease;
}

#reset-btn:hover {
    background-color: #f0fdfa;
}

/* Saved Countdowns Styling */
#saved-countdowns-list .saved-countdown {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #f9fafb;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#saved-countdowns-list .saved-countdown:hover {
    background-color: #f0fdfa;
    border-color: #99f6e4;
}

#saved-countdowns-list .saved-countdown-title {
    font-weight: 600;
    color: #0d9488;
}

#saved-countdowns-list .saved-countdown-date {
    font-size: 0.875rem;
    color: #6b7280;
}

#saved-countdowns-list .saved-countdown-days {
    font-weight: 700;
    color: #0d9488;
    background-color: #f0fdfa;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* Animation for results display */
@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#countdown-container, #saved-countdowns-container {
    animation: fadeInUp 0.6s ease-out forwards;
}

.countdown-value {
    position: relative;
    overflow: hidden;
}

.countdown-value.animate::after {
    content: attr(data-value);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    animation: countUp 0.5s ease-out forwards;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .countdown-clock {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-value {
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .flex.items-center.justify-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .calculate-btn, .quick-dates {
        width: 100%;
    }
    
    .quick-dates {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
} 