/* Main Container */
.age-calculator-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 1px solid #e1e5eb;
}

/* Title */
.calculator-title {
    text-align: center;
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 32px;
}

/* Input Group */
.input-group {
    margin-bottom: 25px;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #2d3748;
}

.birth-date, .birth-time {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
    color: #4a5568;
}

.birth-date:focus, .birth-time:focus {
    border-color: #4299e1;
    outline: none;
    box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.15);
}

.format-hint {
    font-size: 13px;
    color: #718096;
    margin-top: 8px;
    font-style: italic;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.calculate-btn, .reset-btn {
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.calculate-btn {
    background: #4299e1;
    color: white;
    border: none;
}

.calculate-btn:hover {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(66, 153, 225, 0.3);
}

.calculate-btn:active {
    transform: translateY(0);
}

.calculate-btn.loading {
    background: #90cdf4;
    cursor: not-allowed;
}

.reset-btn {
    background: #edf2f7;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.reset-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.reset-btn:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    height: 1px;
    background: #e2e8f0;
    margin: 25px 0;
}

/* Results */
.result-container {
    margin-top: 15px;
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.result-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2d3748;
    font-size: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.age-result {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.6;
}

.age-result span {
    font-weight: 700;
    color: #4299e1;
    font-size: 20px;
}

.next-birthday {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 25px;
    padding: 15px;
    background: #fffaf0;
    border-radius: 10px;
    border: 1px solid #feebc8;
}

.next-birthday span {
    font-weight: 700;
    color: #dd6b20;
    font-size: 20px;
}

/* Total Units */
.total-units-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.total-unit {
    background: white;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e1e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
}

.total-label {
    font-size: 16px;
    color: #718096;
    margin-bottom: 8px;
    font-weight: 600;
}

.total-value {
    font-size: 24px;
    font-weight: 700;
    color: #4299e1;
}

/* Share Button */
.share-container {
    margin-top: 20px;
    text-align: center;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 14px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .age-calculator-container {
        padding: 25px;
    }
    
    .calculator-title {
        font-size: 28px;
    }
    
    .result-title {
        font-size: 22px;
    }
    
    .total-units-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .age-calculator-container {
        padding: 20px;
    }
    
    .calculator-title {
        font-size: 24px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .age-result {
        font-size: 16px;
    }
    
    .next-birthday {
        font-size: 16px;
    }
    
    .result-title {
        font-size: 20px;
    }
    
    .total-value {
        font-size: 22px;
    }
}