/* Google Font */
body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Main Container */
#jng-container {
    max-width: 1000px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* Controls Area */
#jng-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 30px;
}

#jng-controls label {
    width: 100%;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

#jng-controls select {
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 16px;
    transition: 0.2s ease;
    background: #f9f9f9;
}

#jng-controls > div {
    flex: 1 1 200px;
}

/* Generate Button */
#jng-button {
    background: #1e90ff;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s ease;
    margin-top: 24px;
    width: 100%;
}

#jng-button:hover {
    background: #006fd6;
}

/* Results Section */
#jng-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.jng-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jng-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.jng-romaji {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 5px;
}

.jng-kanji {
    font-size: 24px;
    color: #1f2937;
    font-weight: 500;
    margin-bottom: 5px;
}

.jng-meaning {
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
}

/* Toast Notification */
#jng-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #111827;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: none;
    z-index: 9999;
    font-size: 14px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Empty State */
.jng-empty {
    font-style: italic;
    text-align: center;
    color: #999;
    font-size: 16px;
    padding: 20px 0;
}

/* Responsive */
@media (max-width: 600px) {
    #jng-controls {
        flex-direction: column;
        gap: 15px;
    }

    #jng-button {
        width: 100%;
    }
}
