/* ═══════════════════════════════════════════════════════════════════
   dashboard-sidebar.css
   Sidebar layout for Admin Dashboard
   Fonts: DM Sans (body), JetBrains Mono (mono labels)
═══════════════════════════════════════════════════════════════════ */

/* ── Reset Telerik tab bar ── */
.ds-tab-host .k-tabstrip-items-wrapper { display: none !important; }
.ds-tab-host .k-tabstrip > .k-content {
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* ══ Shell ══════════════════════════════════════════════════════════ */
.ds-shell {
    font-family: 'DM Sans', sans-serif;
    display: flex;
    min-height: 100vh;
    background: #f0f2f5;
}

/* ══ Sidebar ════════════════════════════════════════════════════════ */
.ds-sidebar {
    width: 224px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: var(--sb-bg, #0b1120);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    transition: background 0.25s ease;
    z-index: 100;
}

/* ── Header (logo + pickers) ── */
.ds-sb-header {
    padding: 14px 13px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.ds-sb-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ds-sb-logomark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s;
}

.ds-sb-logomark i {
    font-size: 13px;
    color: #ffffff;
}

.ds-sb-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.2px;
    transition: color 0.2s;
}

.ds-sb-subtitle {
    font-size: 10px;
    margin-top: 1px;
    font-family: 'JetBrains Mono', monospace;
    transition: color 0.2s;
}

/* ── Picker rows ── */
.ds-picker-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ds-picker-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.9px;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    opacity: 0.5;
    transition: color 0.2s;
}

.ds-picker-sep {
    flex: 1;
    height: 0.5px;
    background: rgba(255, 255, 255, 0.1);
}

.ds-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s ease;
    flex-shrink: 0;
    padding: 0;
}

.ds-dot:hover {
    transform: scale(1.1);
}

.ds-dot.picked {
    border-color: #ffffff;
    transform: scale(1.18);
}

.ds-font-swatch {
    width: 24px;
    height: 22px;
    border-radius: 6px;
    cursor: pointer;
    border: 1.5px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.07);
    transition: all 0.15s ease;
    flex-shrink: 0;
    font-family: 'DM Sans', sans-serif;
}

.ds-font-swatch:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.13);
}

.ds-font-swatch.picked {
    border-color: #ffffff;
    transform: scale(1.12);
    background: rgba(255, 255, 255, 0.18);
}

/* ── Navigation ── */
.ds-sb-nav {
    flex: 1;
    overflow-y: auto;
    padding: 4px 8px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.ds-sb-nav::-webkit-scrollbar {
    width: 3px;
}

.ds-sb-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.ds-sb-section {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    padding: 11px 8px 5px;
    font-family: 'JetBrains Mono', monospace;
    transition: color 0.2s;
}

.ds-sb-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 9px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 500;
    width: 100%;
    text-align: left;
    margin-bottom: 1px;
    white-space: nowrap;
    transition: background 0.13s ease;
    font-family: 'DM Sans', sans-serif;
}

.ds-sb-iconwrap {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.13s ease;
}

.ds-sb-iconwrap i {
    font-size: 11px;
    transition: color 0.13s ease;
}

.ds-sb-label {
    flex: 1;
    font-size: 12.5px;
    transition: color 0.13s ease;
}

.ds-sb-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    line-height: 1.4;
    flex-shrink: 0;
}

.ds-sb-bar {
    width: 3px;
    border-radius: 2px;
    flex-shrink: 0;
    align-self: center;
    height: 0;
    transition: height 0.18s ease;
}

/* ── Footer ── */
.ds-sb-footer {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
    transition: color 0.2s;
}

.ds-sb-livedot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: ds-pulse 2s infinite;
}

@keyframes ds-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* ══ Main area ══════════════════════════════════════════════════════ */
.ds-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
}

/* ── Top bar ── */
.ds-topbar {
    background: #ffffff;
    border-bottom: 0.5px solid #e8edf3;
    padding: 0 20px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.ds-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ds-topbar-iconwrap {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.ds-topbar-iconwrap i {
    font-size: 14px;
    transition: color 0.2s;
}

.ds-topbar-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.ds-topbar-crumb {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 1px;
    font-family: 'JetBrains Mono', monospace;
}

.ds-topbar-right {
    display: flex;
    gap: 7px;
}

.ds-topbar-pill {
    font-size: 11px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    border: 0.5px solid #e2e8f0;
    color: #64748b;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.13s ease;
    font-family: 'DM Sans', sans-serif;
}

.ds-topbar-pill:hover {
    border-color: #cbd5e1;
    color: #0f172a;
    background: #f1f5f9;
}

.ds-topbar-pill i {
    font-size: 10px;
}

/* ── Content area ── */
.ds-content {
    flex: 1;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
}

.ds-tab-host {
    flex: 1;
    padding: 1.5rem 1.75rem;
}

/* ── Carrier Wallet Gate ── */
.ds-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    margin: 1.5rem 1.75rem;
    border: 1px dashed #cbd5e1;
}

.ds-gate-card {
    text-align: center;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.ds-gate-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-gate-icon i {
    font-size: 1.6rem;
    color: #ffffff;
}

.ds-gate-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.ds-gate-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.65;
}

.ds-gate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1.6rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: opacity 0.18s ease, transform 0.18s ease;
    margin-top: 0.25rem;
}

.ds-gate-btn:hover:not(:disabled) {
    opacity: 0.88;
    transform: translateY(-2px);
}

.ds-gate-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ds-gate-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: ds-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes ds-spin {
    to { transform: rotate(360deg); }
}

/* ══ Responsive ══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .ds-sidebar { width: 200px; }
}

@media (max-width: 860px) {
    .ds-sidebar {
        width: 56px;
    }
    .ds-sb-title,
    .ds-sb-subtitle,
    .ds-sb-label,
    .ds-sb-badge,
    .ds-sb-section,
    .ds-sb-footer span,
    .ds-picker-row { display: none; }
    .ds-sb-iconwrap { width: 30px; height: 30px; }
    .ds-sb-item { justify-content: center; padding: 8px 0; }
    .ds-sb-logomark { margin: 0 auto; }
    .ds-sb-header { align-items: center; }
    .ds-sb-logo { justify-content: center; }
    .ds-tab-host { padding: 1rem; }
}
