/* ===========================================
   Sleep Cycle Calculator - Tool Specific Styles (Lavender/Gray Theme)
   =========================================== */

/* Tool Layout */
.scc-box {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

/* --- Input Area --- */
.scc-input-group {
    background: #f3f4f6; /* Light Gray BG */
    border: 1px solid #d4d4d8;
    border-radius: 12px;
    padding: 30px 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.scc-input-item {
    text-align: center;
    margin-bottom: 25px;
}

.scc-label {
    font-size: 1rem;
    font-weight: 600;
    color: #44403c; /* Stone Gray Label */
    margin-bottom: 15px;
    display: block;
}

.scc-time-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.scc-input-field {
    padding: 12px;
    border: 2px solid #a78bfa; /* Medium Lavender Border */
    border-radius: 8px;
    font-size: 1.5rem;
    color: #4c1d95; /* Deep Purple Text */
    width: 150px;
    text-align: center;
    box-sizing: border-box;
}
.scc-input-field:focus {
    border-color: #7c3aed; /* Darker Lavender Focus */
    outline: none;
}

/* Toggle Switch Styling */
.scc-toggle-container {
    margin-bottom: 25px;
    text-align: center;
}
.scc-toggle {
    display: flex;
    justify-content: center;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}
.scc-toggle label {
    flex: 1;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #71717a; /* Zink Gray */
    transition: all 0.2s;
    user-select: none;
}
.scc-toggle input[type="radio"] {
    display: none;
}
.scc-toggle input[type="radio"]:checked + label {
    background: #a78bfa; /* Medium Lavender Active BG */
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* --- Results Display --- */
.scc-results {
    margin-top: 30px;
    text-align: center;
}

.scc-summary-box {
    padding: 30px;
    background: #f5f3ff; /* Very Light Lavender BG */
    border: 3px solid #8b5cf6; /* Primary Lavender Border */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.scc-result-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4c1d95;
    margin-bottom: 15px;
}

.scc-result-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.scc-result-item {
    padding: 15px 20px;
    background: white;
    border: 1px solid #c4b5fd;
    border-radius: 8px;
    min-width: 120px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.scc-cycle-count {
    font-size: 0.8rem;
    color: #a1a1aa;
    margin-bottom: 5px;
}

.scc-time-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #7c3aed; /* Darker Lavender Value */
    line-height: 1.1;
}

.scc-time-value.optimal {
    color: #10b981; /* Green for Optimal Suggestion */
    border-bottom: 4px solid #10b981;
    padding-bottom: 3px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .scc-time-container {
        flex-direction: column;
        gap: 10px;
    }
    .scc-time-container span {
        display: none; /* Hide the 'or' text */
    }
    .scc-input-field {
        width: 100%;
        max-width: 250px;
    }
    .scc-result-list {
        gap: 10px;
    }
    .scc-time-value {
        font-size: 1.8rem;
    }
}