/* ===== ADMIN-SPESIFIKK ===== */
.side-panel .small-note {
    margin-top: 16px;
    font-size: 0.65rem;
    color: #6c85a0;
    border-top: 1px solid #2f4053;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}
.side-panel .small-note a { color: #7a9ab8; text-decoration: none; }
.side-panel .db-info {
    font-size: 0.6rem;
    color: #5a7a95;
    margin-top: 6px;
    padding: 4px 8px;
    background: #17222f;
    border-radius: 6px;
    text-align: center;
}

.view-section {
    background: #f8faff;
    border: 1px solid #e4ecf5;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 14px;
    min-height: 140px;
}
.view-section .view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9eef3;
    padding-bottom: 8px;
    margin-bottom: 10px;
}
.view-section .view-header h2 {
    font-size: 1rem;
    font-weight: 500;
    color: #0b1a2a;
    word-break: break-word;
}
.view-section .view-header .badge {
    background: #4a6a8a;
    color: white;
    padding: 2px 12px;
    border-radius: 30px;
    font-size: 0.6rem;
    font-weight: 600;
}
.view-section .view-content {
    line-height: 1.7;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 80px;
    max-height: 200px;
    overflow-y: auto;
}
.view-section .view-content .empty-state {
    color: #9aafc4;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}
.view-section .view-content .lang-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #4a6a8a;
    background: #eef4fa;
    padding: 2px 12px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 6px;
}
.view-section .view-content .divider {
    border: none;
    border-top: 2px dashed #d4dee8;
    margin: 12px 0;
}

.editor-section {
    background: #f5f8fc;
    border: 2px solid #d4dee8;
    border-radius: 16px;
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.editor-section .editor-title {
    font-weight: 600;
    color: #1f3347;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.editor-section .new-badge { background: #1d6f4e; color: #fff; padding: 1px 12px; border-radius: 30px; font-size: 0.6rem; font-weight: 600; }
.editor-section .edit-badge { background: #d49b3a; color: #fff; padding: 1px 12px; border-radius: 30px; font-size: 0.6rem; font-weight: 600; }

.editor-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.editor-row .field-group label {
    display: block;
    font-weight: 500;
    color: #1f3347;
    font-size: 0.8rem;
    margin-bottom: 3px;
}
.editor-row .field-group label .lang-tag {
    font-size: 0.65rem;
    font-weight: 400;
    color: #6c85a0;
}
.editor-row input[type="text"],
.editor-row textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d4dee8;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    background: white;
    -webkit-appearance: none;
}
.editor-row textarea { resize: vertical; min-height: 60px; }
.editor-row textarea.fa { direction: rtl; text-align: right; }
.editor-row input:focus,
.editor-row textarea:focus {
    outline: none;
    border-color: #3f6b9c;
    box-shadow: 0 0 0 3px rgba(56, 99, 155, 0.12);
}
.editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.btn {
    border: none;
    padding: 10px 18px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
    flex: 1;
    min-width: 60px;
    text-align: center;
}
.btn:active { transform: scale(0.95); }
.btn-success { background: #1d6f4e; color: white; }
.btn-success:hover { background: #1b7e58; }
.btn-danger { background: #b34a4a; color: white; }
.btn-danger:hover { background: #9e3d3d; }
.btn-outline { background: transparent; border: 1px solid #c5d3e2; color: #1c2f41; }
.btn-outline:hover { background: #e7eef7; }

.status-msg {
    font-size: 0.75rem;
    color: #2e6b4b;
    background: #e3f2e9;
    padding: 4px 14px;
    border-radius: 30px;
    display: inline-block;
    flex: 0 1 auto;
    white-space: nowrap;
}
.status-msg.error { background: #fce8e8; color: #aa3e3e; }

.hint { display: none; }
@media (min-width: 768px) {
    .editor-row { flex-direction: row; }
    .editor-row .field-group { flex: 1; }
    .editor-row .field-group:last-child { flex: 2; }
    .btn { flex: 0 1 auto; }
    .hint {
        display: block;
        font-size: 0.75rem;
        color: #8da0b5;
        margin-top: 10px;
        padding: 10px 14px;
        background: #eef3f9;
        border-radius: 10px;
    }
    .hint strong { color: #1f3347; }
    .view-section .view-content { max-height: 300px; }
}
@media (max-width: 767px) {
    .view-section { padding: 12px 14px; min-height: 100px; }
    .view-section .view-content { max-height: 150px; font-size: 0.85rem; }
    .editor-section { padding: 12px 14px; }
    .editor-row input[type="text"],
    .editor-row textarea { font-size: 0.85rem; padding: 8px 12px; }
    .editor-row textarea { min-height: 50px; }
    .btn { font-size: 0.75rem; padding: 8px 12px; flex: 1; }
    .status-msg { font-size: 0.7rem; padding: 3px 10px; white-space: normal; }
    .hint { display: none; }
}