/* ===========================================
   Countdown to Any Date - Tool Specific Styles (Teal/Aqua Theme)
   =========================================== */

/* Tool Layout */
.ctad-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* --- Input Controls --- */
.ctad-controls {
    background: #f0fdfa; /* Light Aqua BG */
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #99f6e4;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Date and Time side-by-side */
    gap: 20px;
}

.ctad-input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.ctad-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0d9488; /* Dark Teal Label */
    margin-bottom: 6px;
}

.ctad-input {
    padding: 10px;
    border: 1px solid #2dd4bf; /* Medium Teal Border */
    border-radius: 6px;
    font-size: 1.1rem;
    color: #1f2937;
    width: 100%;
}

/* --- Countdown Display --- */
.ctad-countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    padding: 20px 0;
    border-radius: 15px;
    background: #ffffff; 
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.ctad-segment {
    background: #f0fdfa; /* Segment background */
    border: 2px solid #2dd4bf; 
    border-radius: 10px;
    padding: 15px 10px;
    width: 23%; 
    min-width: 70px;
}

.ctad-value {
    font-size: 3rem;
    font-weight: 900;
    color: #14b8a6; /* Primary Teal */
    line-height: 1.1;
    margin-bottom: 5px;
    font-family: 'Arial Black', sans-serif;
}

.ctad-label-segment {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0d9488; 
    text-transform: uppercase;
}

/* --- Finished/Error Messages --- */
.ctad-target-event {
    font-size: 1.5rem;
    font-weight: 700;
    color: #14b8a6;
    margin-bottom: 20px;
    min-height: 1.8rem; /* Reserve space */
}

.ctad-finished {
    font-size: 2.5rem;
    font-weight: 800;
    color: #14b8a6;
    padding: 30px;
    background: #e0f7fa; 
    border: 3px solid #14b8a6;
    border-radius: 10px;
    display: none; 
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .ctad-controls {
        grid-template-columns: 1fr;
    }
    .ctad-countdown {
        flex-wrap: wrap; 
        gap: 10px;
    }
    .ctad-segment {
        width: 45%; 
        padding: 10px 5px;
    }
    .ctad-value {
        font-size: 2rem;
    }
    .ctad-target-event {
        font-size: 1.2rem;
    }
}