/* Age Calculator Styles */
.age-wrapper {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.age-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.age-header {
    text-align: center;
    margin-bottom: 30px;
}

.age-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 8px;
}

.age-header .subtitle {
    color: #666;
    font-size: 16px;
}

/* Grid Layout */
.age-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

/* Input Section */
.age-input-section .card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.age-input-section .card h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
    font-size: 14px;
}

.input-group input[type="date"],
.input-group input[type="time"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    background: #fff;
}

.input-group input[type="date"]:focus,
.input-group input[type="time"]:focus {
    border-color: #ff7a18;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.1);
}

/* Quick Buttons */
.quick-birthdays {
    margin: 15px 0;
}

.quick-birthdays label {
    display: block;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
    font-size: 14px;
}

.quick-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-quick {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    color: #555;
}

.btn-quick:hover {
    border-color: #ff7a18;
    background: #fff3e6;
    color: #ff7a18;
    transform: translateY(-2px);
}

/* Buttons */
.btn-calculate {
    width: 100%;
    padding: 14px;
    background: #ff7a18;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-calculate:hover {
    background: #e06a0e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 122, 24, 0.3);
}

.btn-reset {
    width: 100%;
    padding: 12px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-reset:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Results Section */
.age-result-section {
    min-height: 400px;
}

.age-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.age-placeholder i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 15px;
}

.age-placeholder p {
    color: #999;
    font-size: 18px;
    margin: 0;
}

/* Age Cards */
.age-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.age-card {
    background: linear-gradient(135deg, #ff7a18, #ffb347);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 122, 24, 0.2);
    transition: transform 0.3s;
}

.age-card:hover {
    transform: translateY(-5px);
}

.age-card:nth-child(2) {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.age-card:nth-child(3) {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.age-card:nth-child(4) {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.age-card:nth-child(5) {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
}

.age-card:nth-child(6) {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.age-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
}

.age-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

/* Age Details */
.age-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.detail-label {
    color: #666;
    font-weight: 500;
}

.detail-value {
    color: #333;
    font-weight: 600;
}

/* Life Stats */
.life-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.life-stats h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.stat-icon {
    font-size: 20px;
}

.stat-label {
    color: #666;
    font-size: 13px;
    flex: 1;
}

.stat-value {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

/* Toast Notification */
.toast {
    visibility: hidden;
    min-width: 280px;
    background: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 14px 20px;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    font-weight: 500;
    font-size: 14px;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: #28a745;
}

.toast.error {
    background: #dc3545;
}

.toast.info {
    background: #17a2b8;
}

/* Responsive */
@media (max-width: 992px) {
    .age-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .age-wrapper {
        padding: 10px;
    }
    
    .age-container {
        padding: 20px;
    }
    
    .age-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .age-header h1 {
        font-size: 24px;
    }
    
    .age-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .age-details {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-buttons {
        flex-direction: column;
    }
    
    .btn-quick {
        width: 100%;
    }
    
    .age-number {
        font-size: 28px;
    }
}