.dday-container {
    max-width: 700px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 2rem;
}

.event-input {
    font-size: 1.2rem;
    padding: 1rem;
    border-radius: 15px;
    border: 2px solid var(--secondary-color);
    background-color: #f8f9fa;
    color: var(--text-dark);
    font-weight: bold;
}

.event-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.3);
    outline: none;
}

.date-input {
    font-size: 1.2rem;
    padding: 1rem;
    border-radius: 15px;
    border: 2px solid var(--secondary-color);
    background-color: #f8f9fa;
    color: var(--text-dark);
    font-weight: bold;
    text-align: center;
}

.date-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.3);
    outline: none;
}

.calculate-dday-btn {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 200px;
}

.calculate-dday-btn:hover {
    background-color: #e91e63;
    border-color: #e91e63;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 20, 147, 0.4);
}

.dday-result-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--secondary-color);
}

.dday-main-result {
    text-align: center;
    background-color: rgba(255, 20, 147, 0.1);
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.dday-main-result::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 20, 147, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.dday-number {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.dday-label {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.event-name-display {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.countdown-item {
    background-color: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.countdown-number {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--accent-color);
    display: block;
}

.countdown-label {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-top: 0.5rem;
}

.progress-section {
    background-color: rgba(52, 144, 220, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.progress-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-align: center;
}

.progress-bar-container {
    background-color: rgba(52, 144, 220, 0.2);
    border-radius: 25px;
    height: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    height: 100%;
    border-radius: 25px;
    transition: width 1s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    text-align: center;
    font-weight: bold;
    color: var(--text-dark);
}

.input-group {
    background-color: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--secondary-color);
}

.input-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.quick-event-btn {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    padding: 0.6rem 1.2rem;
    margin: 0.3rem;
    font-weight: bold;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.quick-event-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 144, 220, 0.3);
}

.milestone-section {
    background-color: rgba(108, 117, 125, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.milestone-item {
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.milestone-item:last-child {
    margin-bottom: 0;
}

.milestone-text {
    font-weight: bold;
    color: var(--text-dark);
}

.milestone-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: bold;
}

.past-event {
    opacity: 0.7;
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
}

.past-event .dday-number {
    color: #dc3545;
}

/* Live countdown animation */
.live-countdown {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive design */
@media (max-width: 768px) {
    .dday-container {
        padding: 1.5rem;
        max-width: 550px;
    }
    
    .dday-number {
        font-size: 3rem;
    }
    
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .calculate-dday-btn {
        width: 100%;
        padding: 1rem;
    }
    
    .milestone-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .dday-container {
        padding: 1rem;
    }
    
    .dday-number {
        font-size: 2.5rem;
    }
    
    .countdown-grid {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        padding: 1rem;
    }
    
    .quick-event-btn {
        width: calc(50% - 0.6rem);
        margin: 0.3rem;
        font-size: 0.8rem;
    }
}