/* Japanese Age Calculator - Black/Green Theme */
.jac-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 25px;
    background-color: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    font-family: 'Segoe UI', 'Meiryo', 'Hiragino Kaku Gothic Pro', sans-serif;
    color: #f0f0f0;
    border: 2px solid #2a2a2a;
}

.jac-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #2a2a2a;
}

.jac-header h2 {
    color: #4CAF50;
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.jac-subtitle {
    color: #888;
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

.jac-form-container {
    background-color: #222;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #333;
}

.jac-input-group {
    margin-bottom: 20px;
}

.jac-input-group label {
    display: block;
    margin-bottom: 8px;
    color: #4CAF50;
    font-weight: 500;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jac-label-icon {
    font-size: 18px;
}

.jac-date-input {
    width: 100%;
    padding: 12px 15px;
    background-color: #2a2a2a;
    border: 2px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.jac-date-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.jac-hint {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 12px;
    font-style: italic;
}

.jac-calculate-btn, .jac-reset-btn {
    width: 48%;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.jac-calculate-btn {
    background-color: #4CAF50;
    color: white;
    margin-right: 4%;
}

.jac-calculate-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.jac-reset-btn {
    background-color: #333;
    color: #ddd;
    border: 1px solid #555;
}

.jac-reset-btn:hover {
    background-color: #444;
    transform: translateY(-2px);
}

.jac-btn-icon {
    font-size: 18px;
}

.jac-results {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.jac-result-card {
    background: linear-gradient(145deg, #222, #1f1f1f);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #333;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.jac-result-title {
    color: #4CAF50;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
    text-align: center;
    font-size: 20px;
}

.jac-result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #333;
}

.jac-result-label {
    color: #aaa;
    font-weight: 500;
}

.jac-result-value {
    color: #fff;
    font-weight: 600;
}

.jac-result-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #4CAF50, transparent);
    margin: 25px 0;
}

.jac-age-display {
    text-align: center;
    padding: 20px;
    background-color: #2a2a2a;
    border-radius: 8px;
    border: 2px solid #333;
    margin: 20px 0;
}

.jac-age-label {
    color: #4CAF50;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.jac-age-number {
    font-size: 56px;
    font-weight: 800;
    color: #4CAF50;
    line-height: 1;
    margin: 10px 0;
    text-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.jac-age-unit {
    font-size: 24px;
    color: #888;
    font-weight: 600;
    margin-top: 5px;
}

.jac-explanation {
    margin-top: 25px;
    padding: 20px;
    background-color: #2a2a2a;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.jac-explanation-title {
    color: #4CAF50;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jac-explanation-text {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.jac-explanation-list {
    color: #ddd;
    padding-left: 20px;
    margin: 0;
}

.jac-explanation-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.jac-explanation-list strong {
    color: #4CAF50;
}

/* Responsive Design */
@media (max-width: 600px) {
    .jac-container {
        padding: 20px;
        margin: 10px;
    }
    
    .jac-calculate-btn, .jac-reset-btn {
        width: 100%;
        margin: 10px 0;
    }
    
    .jac-age-number {
        font-size: 48px;
    }
}