body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.app-logo {
    max-width: 150px;
    height: auto;
    display: inline-block;
}

.app-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 5px;
    letter-spacing: 2px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

p {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

button {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Loading Spinner */
#loading {
    text-align: center;
    margin-top: 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result Styles */
#result {
    margin-top: 30px;
}

.question-card {
    background: #f9f9f9;
    border-left: 5px solid #3498db;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.question-text {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.options {
    list-style-type: none;
    padding: 0;
}

.options li {
    background: #fff;
    border: 1px solid #eee;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 4px;
}

.answer-key {
    margin-top: 10px;
    font-weight: bold;
    color: #27ae60;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

.hidden {
    display: none;
}

/* Kisi-Kisi Styles */
.kisi-kisi-badge {
    background-color: #e8f6f3;
    color: #16a085;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.9em;
    border: 1px solid #d0ece7;
}

.kisi-kisi-details {
    margin-top: 10px;
    background-color: #fff8e1;
    color: #f39c12;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid #ffe0b2;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-word {
    background-color: #27ae60;
    flex: 1;
}
.btn-word:hover {
    background-color: #219150;
}

.btn-reset {
    background-color: #f39c12;
    flex: 1;
}

.btn-reset:hover {
    background-color: #d35400;
}

/* Responsive row */
@media (max-width: 600px) {
    .form-group-row {
        flex-direction: column;
        gap: 0;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* Footer Styles */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 30px 20px;
    background-color: #fff;
    color: #7f8c8d;
    font-size: 0.9em;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.footer p {
    margin: 0;
    line-height: 2;
}

.footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 0 5px;
}

.footer a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.footer a.highlight-link {
    background-color: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    margin-left: 10px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}

.footer a.highlight-link:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
    text-decoration: none;
}
