/* ===========================================
Leap Year Calculator - Tool Specific Styles
=========================================== */

/* Tool Layout */
.lyc-box {
 max-width: 700px;
 margin: 0 auto;
}

/* Input and Button */
.lyc-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 30px;
}

.lyc-input-group {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lyc-label {
 font-size: 0.95rem;
 font-weight: 600;
 color: #1f2937;
 margin-bottom: 6px;
}

.lyc-input {
 padding: 10px;
 border: 2px solid #a5b4fc;
 border-radius: 6px;
 font-size: 1.2rem;
 color: #1f2937;
 width: 100%;
 background-color: white;
    text-align: center;
}

.lyc-btn-calc {
 padding: 10px 20px;
 font-size: 1.1rem;
 font-weight: 700;
 border: none;
 border-radius: 6px;
 cursor: pointer;
 background: #6366f1; /* Indigo/Blue Button */
 color: white;
 transition: background 0.2s;
    flex-shrink: 0;
}
.lyc-btn-calc:hover {
 background: #4f46e5;
}

/* --- Results Section --- */

.lyc-results-section {
    margin-top: 20px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.lyc-result-header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-radius: 8px;
    color: white;
}
.lyc-result-header h2 {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0;
}

/* Status Styling */
.leap-status {
    background-color: #10b981; /* Green for Leap Year */
    border: 2px solid #059669;
}
.common-status {
    background-color: #f97316; /* Orange for Common Year */
    border: 2px solid #ea580c;
}

.lyc-status-text {
    font-size: 3rem;
    font-weight: 900;
    margin-top: 5px;
    line-height: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Details Grid */
.lyc-details-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px 0;
    border-top: 1px dashed #e5e7eb;
    border-bottom: 1px dashed #e5e7eb;
}

.lyc-detail-item {
    text-align: center;
    flex: 1 1 150px;
}

.lyc-detail-label {
    display: block;
    font-size: 0.9rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.lyc-detail-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
}

.lyc-detail-item.leap-specific .lyc-detail-value {
    color: #059669; /* Green highlight for the extra day */
}

/* Rule Explanation */
.lyc-rule-explanation {
    padding: 15px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
}
.lyc-rule-explanation h3 {
    font-size: 1rem;
    color: #1e40af;
    margin-top: 0;
    margin-bottom: 10px;
}
.lyc-rule-explanation p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #374151;
}

/* Responsive Styling */
@media (max-width: 600px) {
    .lyc-form {
        flex-direction: column;
        align-items: stretch;
    }
    .lyc-btn-calc {
        width: 100%;
    }
    .lyc-status-text {
        font-size: 2.5rem;
    }
    .lyc-details-grid {
        flex-direction: column;
        gap: 15px;
    }
}