/* age-counter.css */

/* Input Section */
.input-section {
    padding: 2.5rem;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.input-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.input-header p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.dob-wrapper {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dob-input {
    max-width: 300px;
    font-size: 1.1rem;
    text-align: center;
    cursor: pointer;
}

/* Dashboard Handling */
.dashboard-hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.dashboard-visible {
    display: block;
    animation: slideUpFade 0.6s forwards;
}

@keyframes slideUpFade {
    to { opacity: 1; transform: translateY(0); }
}

/* Age Grid Panel */
.age-grid-panel {
    padding: 2rem;
    border-radius: 24px;
    margin-bottom: 2rem;
}

.panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.panel-header-row h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
}

.view-toggles {
    display: flex;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    padding: 4px;
}

body.light-mode .view-toggles {
    background: rgba(255,255,255,0.4);
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn.active {
    background: var(--accent-color);
    color: var(--bg-color);
    font-weight: 600;
}

/* Precise View Cards */
.age-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
}

.age-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body.light-mode .age-card {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.05);
}

.age-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.age-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

.age-card.highlight .age-value {
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

/* Total View List */
.total-list.hidden { display: none; }

.total-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 1.1rem;
}

.total-row:last-child { border-bottom: none; }

.t-label { color: var(--text-secondary); }
.t-value { 
    font-family: 'JetBrains Mono', monospace; 
    font-weight: 600; 
    color: var(--text-primary);
}

.highlight-row .t-value {
    color: var(--accent-color);
    font-size: 1.3rem;
}

/* Info Split */
.info-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Birthday Panel */
.next-bday-panel, .bio-panel {
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
}

.next-bday-panel h3, .bio-panel h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.bday-countdown {
    margin: 1.5rem 0;
}

.bday-days {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--success-color);
}

.bday-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.bday-date {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--success-color);
    border-radius: 4px;
    transition: width 1s ease;
}

/* Bio Panel */
.bio-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.bio-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
    background: rgba(255,255,255,0.02);
    padding: 0.8rem;
    border-radius: 12px;
}

.bio-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.bio-data {
    display: flex;
    flex-direction: column;
}

.bio-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.bio-lbl {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Life Progress */
.life-progress-panel {
    padding: 1.5rem;
    border-radius: 16px;
}

.lp-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.lp-track {
    width: 100%;
    height: 16px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.lp-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color), #764ba2);
    border-radius: 8px;
    transition: width 1s ease;
}

.lp-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .info-split { grid-template-columns: 1fr; }
    .age-value { font-size: 2rem; }
}
