/* ===========================================
   Date Calculator - Tool Specific Styles (Gold/Brown Theme)
   =========================================== */

/* Tool Layout */
.dc-box {
    max-width: 650px;
    margin: 0 auto;
}

/* --- Mode Selector Tabs --- */
.dc-tabs {
    display: flex;
    justify-content: space-around;
    border-bottom: 2px solid #e7e5e4;
    margin-bottom: 20px;
}

.dc-tab-button {
    flex-grow: 1;
    text-align: center;
    padding: 12px 15px;
    cursor: pointer;
    font-weight: 700;
    color: #a8a29e; /* Light Gray/Brown */
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 3px solid transparent;
}

.dc-tab-button.active {
    color: #ca8a04; /* Primary Gold */
    border-bottom: 3px solid #ca8a04;
}

/* --- Controls and Inputs --- */
.dc-controls {
    background: #fffbeb; /* Light Beige BG */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #fde68a;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dc-input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.dc-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #a16207; /* Dark Brown/Gold Label */
    margin-bottom: 6px;
}

.dc-input, .dc-select {
    padding: 10px;
    border: 1px solid #fcd34d; 
    border-radius: 6px;
    font-size: 1.1rem;
    color: #1f2937;
    width: 100%;
}

.dc-duration-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* --- Results Summary (Difference Mode) --- */
.dc-results-difference {
    margin-top: 30px;
    text-align: center;
}

.dc-difference-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 25px;
    background: #fffbeb; 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.dc-result-item {
    border-right: 1px solid #fde68a;
    padding: 0 10px;
}

.dc-result-item:nth-child(2n) {
    border-right: none;
}

.dc-result-label {
    font-size: 0.9rem;
    color: #a16207;
    font-weight: 600;
    margin-bottom: 5px;
}

.dc-result-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ca8a04; /* Primary Gold Highlight */
    line-height: 1.1;
}

.dc-total-days {
    grid-column: 1 / 3;
    padding-top: 15px;
    border-top: 1px dashed #fcd34d;
    margin-top: 10px;
}

/* --- Results Summary (Add/Subtract Mode) --- */
.dc-results-add {
    margin-top: 30px;
    text-align: center;
}

.dc-add-summary {
    padding: 25px;
    background: #fffbeb; 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.dc-add-value {
    font-size: 3rem;
    font-weight: 800;
    color: #a16207;
    line-height: 1.1;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .dc-difference-summary {
        grid-template-columns: 1fr; 
        gap: 15px;
    }
    .dc-result-item {
        border-right: none;
        border-bottom: 1px solid #fde68a;
        padding-bottom: 15px;
    }
    .dc-result-item:last-child {
        border-bottom: none;
    }
    .dc-total-days {
        grid-column: 1 / 2;
    }
    .dc-duration-row {
        grid-template-columns: 1fr;
    }
    .dc-add-value {
        font-size: 2.5rem;
    }
}