/* P2Pex - Persian RTL App Styles */
html, body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif !important;
    direction: rtl;
    font-size: 14px;
    background-color: #0a0f1e;
    color: rgba(255,255,255,0.88);
}
/* MudBlazor dark theme overrides */
.mud-card, .mud-paper {
    background-color: #111827 !important;
}
.mud-table-container, .mud-table-root {
    background-color: #111827 !important;
}
.mud-table-cell {
    border-color: rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.85) !important;
}
.mud-input, .mud-input-slot, .mud-input-control, .mud-input-outlined,
.mud-input-filled, .mud-text-field {
    background-color: #1f2937 !important;
    color: rgba(255,255,255,0.9) !important;
}
.mud-input-label, .mud-input-helper-text {
    color: rgba(255,255,255,0.6) !important;
}
.mud-picker-content, .mud-popover {
    background-color: #1f2937 !important;
}
.mud-chip {
    background-color: rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.88) !important;
}
h1,h2,h3,h4,h5,h6,.mud-typography {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif !important;
}
.num,.price,.volume,.amount { direction:ltr; font-family: 'Courier New', monospace; font-weight:600; }
.order-book-table { width:100%; }
.sell-price { color:#e53e3e; font-weight:700; }
.buy-price { color:#38a169; font-weight:700; }
.tick-blue { color:#1a56db; }
.tick-gold { color:#d97706; }
.chat-messages { max-height:400px; overflow-y:auto; display:flex; flex-direction:column; gap:8px; padding:8px; }
.chat-msg { max-width:75%; padding:8px 12px; border-radius:12px; word-break:break-word; }
.chat-msg.mine { align-self:flex-start; background:#1a56db; color:white; }
.chat-msg.theirs { align-self:flex-end; background:#1f2937; color:rgba(255,255,255,0.88); border:1px solid rgba(255,255,255,0.1); }
.chat-msg.system { align-self:center; background:rgba(92,138,240,0.15); color:rgba(255,255,255,0.6); font-size:12px; border-radius:20px; border:1px solid rgba(92,138,240,0.3); }
.kyc-warning { background:rgba(251,191,36,0.12); border:1px solid rgba(251,191,36,0.4); border-radius:8px; padding:12px; margin-bottom:16px; color:rgba(251,191,36,0.9); }
::-webkit-scrollbar { width:4px; }
::-webkit-scrollbar-thumb { background:#1a56db; border-radius:2px; }
.camera-preview { width:100%; max-width:400px; border-radius:12px; border:2px dashed #1a56db; }
@media (max-width: 768px) {
    .mud-main-content { padding-bottom: 70px !important; }
}

/* === Input padding: give MudBlazor text/select/autocomplete/textarea inputs
       comfortable inner spacing across the whole site. === */
.mud-input-control .mud-input-slot input,
.mud-input-control .mud-input-slot textarea,
.mud-select .mud-input-slot input {
    padding-block: 8px !important;
    padding-inline: 12px !important;
}
.mud-input.mud-input-outlined .mud-input-slot,
.mud-input.mud-input-filled .mud-input-slot {
    padding-inline: 8px !important;
}
.mud-input.mud-input-text input,
.mud-input.mud-input-text textarea {
    padding-inline: 12px !important;
}
/* Persian/RTL Quill body needs breathing room too */
#quill-editor .ql-editor {
    padding: 14px 18px !important;
    min-height: 360px;
}
