﻿
:root {
    --dt-primary: #2563eb;
    --dt-primary-dark: #1d4ed8;
    --dt-bg: #f5f7fb;
    --dt-surface: #ffffff;
    --dt-text: #17243b;
    --dt-muted: #7b8799;
    --dt-border: #e9edf4;
    --dt-sidebar-width: 264px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--dt-bg);
    color: var(--dt-text);
    font-family: "Segoe UI", Tahoma, sans-serif;
}

.dt-shell {
    min-height: 100dvh;
    direction: rtl;
}

.dt-sidebar {
    width: var(--dt-sidebar-width);
    position: fixed;
    inset-block: 0;
    right: 0;
    z-index: 30;
    background: var(--dt-surface);
    border-left: 1px solid var(--dt-border);
    display: flex;
    flex-direction: column;
    padding: 26px 16px 18px;
}

.dt-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 28px;
}

.dt-brand-icon,
.dt-mobile-logo {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--dt-primary);
    color: white;
    border-radius: 14px;
    font-size: 22px;
    flex-shrink: 0;
}

.dt-brand strong {
    display: block;
    font-size: 15px;
}

.dt-brand small {
    display: block;
    color: var(--dt-muted);
    font-size: 11px;
    margin-top: 4px;
}

.dt-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dt-menu-label {
    color: #9aa4b5;
    font-size: 11px;
    font-weight: 700;
    padding: 10px 15px;
}

.dt-menu a {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    color: #66748a;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 15px;
    border-radius: 12px;
    transition: background .18s, color .18s;
}

    .dt-menu a i {
        font-size: 19px;
    }

    .dt-menu a:hover {
        background: #f1f5ff;
        color: var(--dt-primary);
    }

    .dt-menu a.active {
        background: #eaf1ff;
        color: var(--dt-primary);
    }

.dt-sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--dt-border);
    padding-top: 18px;
}

.dt-user {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 8px 14px;
}

.dt-avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #edf3ff;
    color: var(--dt-primary);
    font-size: 21px;
}

.dt-user-info strong,
.dt-user-info small {
    display: block;
}

.dt-user-info strong {
    font-size: 13px;
}

.dt-user-info small {
    font-size: 11px;
    color: var(--dt-muted);
}

.dt-logout {
    width: 100%;
    border: 0;
    background: #fff3f3;
    color: #dc3545;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.dt-main {
    min-height: 100dvh;
    margin-right: var(--dt-sidebar-width);
}

.dt-header {
    height: 76px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--dt-surface);
    border-bottom: 1px solid var(--dt-border);
}

.dt-header-title span,
.dt-header-title small {
    display: block;
}

.dt-header-title span {
    font-weight: 700;
    font-size: 16px;
}

.dt-header-title small {
    color: var(--dt-muted);
    margin-top: 4px;
    font-size: 12px;
}

.dt-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dt-header-username {
    color: var(--dt-muted);
    font-size: 13px;
}

.dt-icon-button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--dt-border);
    background: white;
    border-radius: 12px;
    color: #52627b;
    font-size: 18px;
}

.dt-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 26px 30px;
}

.dt-mobile-brand,
.dt-bottom-nav {
    display: none;
}

@media (max-width: 991px) {
    .dt-sidebar {
        display: none;
    }

    .dt-main {
        margin-right: 0;
    }

    .dt-header {
        height: 68px;
        padding: 0 18px;
    }

    .dt-mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 15px;
    }

    .dt-mobile-logo {
        width: 37px;
        height: 37px;
        font-size: 18px;
        border-radius: 11px;
    }

    .dt-header-title,
    .dt-header-username {
        display: none;
    }

    .dt-content {
        padding: 20px 15px;
        padding-bottom: calc(110px + env(safe-area-inset-bottom));
    }

    .dt-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;
        background: rgba(255,255,255,.97);
        border-top: 1px solid var(--dt-border);
        padding: 9px 6px calc(9px + env(safe-area-inset-bottom));
        box-shadow: 0 -5px 25px rgba(20,40,80,.05);
    }

        .dt-bottom-nav a {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            min-height: 48px;
            color: #8894a7;
            text-decoration: none;
            font-size: 10px;
            font-weight: 600;
            white-space: nowrap;
        }

            .dt-bottom-nav a > i {
                font-size: 22px;
            }

            .dt-bottom-nav a.active {
                color: var(--dt-primary);
            }

        .dt-bottom-nav .dt-scan-nav {
            position: relative;
            color: var(--dt-primary);
        }

    .dt-scan-circle {
        width: 55px;
        height: 55px;
        display: grid;
        place-items: center;
        border-radius: 18px;
        background: var(--dt-primary);
        color: white;
        box-shadow: 0 7px 18px rgba(37,99,235,.25);
        margin-top: -28px;
        border: 4px solid white;
    }

        .dt-scan-circle i {
            font-size: 24px;
        }
}

@media (max-width: 360px) {
    .dt-bottom-nav a {
        font-size: 9px;
    }

    .dt-content {
        padding-inline: 12px;
    }
}
