/* ===========================================
    Anniversary Calculator - Tool Specific Styles
    =========================================== */

/* Box Styling */
.ann-box {
    max-width: 650px; 
    margin: 0 auto;
    padding: 0; 
}

/* Form Container */
.ann-form {
    padding: 25px; 
    border: 1px solid #D81B60; /* Dark Pink/Burgundy Border */
    border-radius: 8px;
    background-color: #FFF3E0; /* Very Light Orange/Cream Background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.ann-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #AD1457; /* Deeper Pink */
    border-bottom: 2px solid #FFCDD2;
    padding-bottom: 5px; 
    margin-top: 5px; 
    margin-bottom: 20px; 
}

/* --- Input Grid --- */
.ann-input-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 15px 2%;
    margin-bottom: 10px; 
}

.ann-input-group {
    flex-basis: 100%; /* Default full width */
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.ann-input-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem; 
    margin-bottom: 8px;
}

.ann-input-group input[type="date"] {
    padding: 12px;
    border: 1px solid #F48FB1;
    border-radius: 6px;
    font-size: 1rem;
    flex-grow: 1;
    text-align: left; 
    background-color: white;
}

/* Button Styles */
.ann-calculate-btn {
    display: block;
    width: 100%;
    padding: 16px; 
    margin-top: 30px; 
    background-color: #FF5252; /* Vivid Red/Pink */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.ann-calculate-btn:hover {
    background-color: #D81B60;
}

/* --- Results Display --- */
.ann-results {
    margin-top: 20px; 
    padding: 25px;
    border: 2px solid #D81B60; 
    border-radius: 8px;
    background-color: #FCE4EC; /* Lightest Pink for results */
    text-align: center;
}

.ann-results-title {
    color: #AD1457;
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #F8BBD0;
    padding-bottom: 5px;
}

/* Main Duration Highlight */
#outputDurationSummary {
    font-size: 1.8rem;
    font-weight: 800;
    color: #880E4F; /* Deepest Pink */
    margin-bottom: 20px;
}

/* Duration Breakdown Grid */
.ann-duration-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 10px;
    margin-bottom: 25px;
}

.ann-duration-item {
    flex-basis: 30%; /* Three items per row */
    padding: 10px;
    border-radius: 6px;
    background-color: #FFFFFF;
    border: 1px solid #F48FB1;
}

.ann-duration-item .value {
    font-size: 1.5rem;
    font-weight: 900;
    color: #E91E63; /* Medium Pink */
    line-height: 1;
}

.ann-duration-item .unit {
    font-size: 0.9rem;
    color: #78909C;
    margin-top: 5px;
}

/* Milestones Section */
.ann-milestones-section {
    margin-top: 30px;
    padding: 15px;
    border: 1px dashed #D81B60;
    border-radius: 6px;
    background-color: #FFEBEE; /* Redder tone for upcoming events */
}
.ann-milestones-section h3 {
    color: #D81B60;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.ann-milestones-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ann-milestones-list li {
    padding: 10px 0;
    border-bottom: 1px solid #F8BBD0;
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}
.ann-milestones-list li:last-child {
    border-bottom: none;
}
.ann-milestones-list .date {
    font-weight: 700;
    color: #3F51B5; /* Blue for contrast/time */
}
.ann-milestones-list .days-away {
    font-style: italic;
    color: #E91E63;
}

/* Recalculate Button (Global Style Reuse) */
.bc-recalculate-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #9E9E9E;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.bc-recalculate-btn:hover {
    background-color: #616161;
}