:root {
    --app-bg: #f4f6fa;
    --app-accent: #0d6efd;
}

body {
    background: var(--app-bg);
    font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
    min-height: 100vh;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: .2px;
}

.card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(15, 23, 42, .06);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    font-weight: 700;
}

.stat-card {
    border-top: 4px solid var(--app-accent);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 1.4rem;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

.table-wrap {
    overflow-x: auto;
}

.progress {
    min-width: 90px;
}

.placeholder-chip {
    direction: ltr;
    display: inline-block;
    unicode-bidi: embed;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .85em;
    background: #e8f1ff;
    color: #0a4fa8;
    border-radius: 6px;
    padding: 2px 7px;
}

.message-preview {
    white-space: pre-wrap;
    line-height: 1.9;
    min-height: 110px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 14px;
}

.step-indicator .nav-link {
    pointer-events: none;
}

.required::after {
    content: " *";
    color: #dc3545;
}

.form-label {
    font-weight: 600;
}

.code-box {
    direction: ltr;
    text-align: left;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .84rem;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    overflow-x: auto;
}

@media (max-width: 576px) {
    .stat-icon { width: 40px; height: 40px; font-size: 1.1rem; }
    .navbar-brand { font-size: .95rem; }
}
