/* Age Calculator Specific Styles */

.age-cover {
    background-image: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    background-size: cover;
    background-position: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Trust Badge */
.trust-badge {
    background-color: #f0fdf4;
    color: #166534;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    display: inline-block;
    border: 1px solid #bbf7d0;
}

/* Tabs */
.tabs-header {
    display: flex;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 2rem;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
}

.tab-btn {
    padding: 0.8rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #334155;
    background-color: #f8fafc;
}

.tab-btn.active {
    color: #6366f1;
    background-color: #eef2ff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.calc-section-pad {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Input Grid */
.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
}

.input-group input[type="date"] {
    padding: 0.85rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
    background: #f8fafc;
}

.input-group input[type="date"]:focus {
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Button */
.calculate-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(to right, #6366f1, #8b5cf6);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.25);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(99, 102, 241, 0.3);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* 
   === SPLIT CARD STYLES (MATCHING DATE CALCULATOR) === 
*/

.result-card-split {
    margin-top: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--brand-primary);
    /* Use global orange */
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 2rem;
    gap: 2rem;
    animation: fadeIn 0.4s ease-out;
}

.split-col-left {
    padding-right: 2rem;
    border-right: 1px solid #f1f5f9;
}

.split-col-right {
    padding-left: 1rem;
}

.split-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.split-label.mt-2 {
    margin-top: 1.25rem;
}

.split-highlight {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.1;
}

.split-subtext {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.split-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.split-list li {
    font-size: 0.95rem;
    color: #334155;
    /* Slate 700 */
    padding: 0.4rem 0;
    border-bottom: 1px dashed #e2e8f0;
}

.split-list li:last-child {
    border-bottom: none;
}


/* Keep existing styles for other tabs if they still use card layout */
.result-panel {
    margin-top: 2.5rem;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    border-left: 6px solid #6366f1;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    display: block;
    /* Ensure visibility for non-split tabs */
}

/* Utilities */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .result-card-split {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .split-col-left {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding-right: 0;
        padding-bottom: 1.5rem;
    }

    .split-col-right {
        padding-left: 0;
    }

    .split-highlight {
        font-size: 2rem;
    }
}