* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 600px;
    width: 100%;
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2rem;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.date-input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.date-input:focus {
    outline: none;
    border-color: #667eea;
}

.calculate-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: #5a67d8;
}

.result {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.result h2 {
    color: #333;
    margin-bottom: 20px;
}

.age-details {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    gap: 15px;
}

.age-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    flex: 1;
    text-align: center;
}

.age-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.age-label {
    font-size: 12px;
    opacity: 0.9;
}

.extra-info {
    text-align: left;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: bold;
    color: #555;
}

.info-item span:last-child {
    color: #667eea;
    font-weight: bold;
}

@media (max-width: 500px) {
    .container {
        padding: 20px;
    }
    
    .age-details {
        flex-direction: column;
    }
    
    .age-number {
        font-size: 1.5rem;
    }
}