/* nafaka-style.css */
.nafaka-container {
    max-width: 800px;
    margin: 2rem auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px 40px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #334155;
    box-sizing: border-box;
}

.nafaka-container * {
    box-sizing: border-box;
}

.nafaka-title {
    text-align: center;
    color: #0f172a;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 16px;
}

.nafaka-row {
    margin-bottom: 20px;
}

.nafaka-flex-row {
    display: flex;
    gap: 20px;
}

.nafaka-col {
    flex: 1;
}

.nafaka-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #475569;
    font-size: 14px;
}

.nafaka-container input[type="text"],
.nafaka-container input[type="number"],
.nafaka-container input[type="month"],
.nafaka-container select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    color: #1e293b;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.nafaka-container input:focus,
.nafaka-container select:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.nafaka-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
}

.button-row {
    margin-top: 30px;
}

.nafaka-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    font-weight: 700;
    font-size: 16px;
    padding: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nafaka-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.nafaka-info-text {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    color: #166534;
    margin-top: 20px;
}

/* Results Area */
#nafaka-sonuc-wrapper {
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

.section-title {
    color: #1e293b;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 16px;
}

.nafaka-summary-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
}
.summary-item .lbl {
    color: #64748b;
}
.summary-item strong {
    color: #0f172a;
}
.summary-item.main-result {
    font-size: 20px;
    background: #eff6ff;
    padding: 15px;
    border-radius: 8px;
    color: #1d4ed8;
    margin-top: 15px;
}
.summary-item.main-result strong {
    color: #1d4ed8;
}
.badge {
    background: #fef3c7;
    color: #b45309;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: bold;
}

.content-editable {
    outline: none;
}

.content-editable:focus {
    background-color: #fdfdfd;
    box-shadow: 0 0 0 2px rgba(59,130,246,.2);
}

.tutanak-box {
    background: #fff;
    border: 1px dashed #cbd5e1;
    padding: 24px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    min-height: 150px;
}

.nafaka-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.nafaka-btn-action {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.nafaka-btn-action:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.pdf-btn {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}
.pdf-btn:hover {
    background: #fecaca;
}

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

@media (max-width: 640px) {
    .nafaka-flex-row {
        flex-direction: column;
        gap: 15px;
    }
}
