/* ===========================================
   Meeting Planner / World Time Buddy - Tool Specific Styles
   =========================================== */

/* Tool Layout */
.mp-box {
    max-width: 950px;
    margin: 0 auto;
}

/* Controls and Inputs */
.mp-controls {
    background: #f0fff4; /* Light Mint Green BG */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #6ee7b7;
    margin-bottom: 30px;
}

/* City Selectors */
.mp-city-selectors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.mp-input-group {
    display: flex;
    flex-direction: column;
}

.mp-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #065f46; /* Dark Green Label */
    margin-bottom: 6px;
}

.mp-select {
    padding: 10px;
    border: 1px solid #34d399;
    border-radius: 6px;
    font-size: 1rem;
    color: #1f2937;
    width: 100%;
}

/* Time Slider Control */
.mp-time-control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
}

#timeSlider {
    flex-grow: 1;
}

#timeDisplay {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    min-width: 100px;
    text-align: right;
}

/* --- Results Grid (The Buddy) --- */

.mp-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.mp-results-table th, .mp-results-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.mp-results-table th {
    background: #f0fff4;
    font-weight: 700;
    color: #065f46;
    font-size: 1rem;
}

.mp-time-cell {
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.2s;
}

/* Color Coding for Time Zones */
/* Highlight the base/reference city time */
.mp-city-ref {
    background: #a7f3d0 !important; /* Lighter Teal */
    font-weight: 800;
}

/* Ideal Working Hours (e.g., 9 AM to 5 PM) */
.time-ideal {
    background: #d1fae5; /* Very Light Green */
    border-left: 3px solid #059669;
}

/* Acceptable Hours (e.g., Early morning or late evening) */
.time-acceptable {
    background: #fffbe0; /* Light Yellow */
}

/* Off Hours (Night or very early morning) */
.time-off {
    background: #fef2f2; /* Light Red/Pink */
    color: #991b1b;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .mp-controls {
        padding: 20px;
    }
    .mp-city-selectors {
        grid-template-columns: 1fr;
    }
    .mp-time-control {
        flex-direction: column;
        align-items: stretch;
    }
    #timeDisplay {
        text-align: center;
        margin-top: 10px;
        min-width: 100%;
    }
}