﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
.admin-shell {
    background: #f5f7fb;
    min-height: 100vh
}

.admin-sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    width: 260px;
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg,#101828 0%,#0b1220 100%);
    color: #e5edf8;
    box-shadow: 0 4px 24px rgba(16,24,40,.3)
}

    .admin-sidebar .brand {
        display: flex;
        align-items: center;
        gap: .6rem
    }

.brand-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4f8cff;
    box-shadow: 0 0 0 4px rgba(79,140,255,.2)
}

.brand-text {
    font-weight: 700;
    letter-spacing: .2px
}

.admin-sidebar .nav-link {
    color: #c9d6ea;
    border-radius: 10px;
    padding: .55rem .75rem;
    margin: .15rem .35rem
}

    .admin-sidebar .nav-link:hover {
        color: #fff;
        background: rgba(255,255,255,.06)
    }

    .admin-sidebar .nav-link.active {
        color: #fff;
        background: linear-gradient(90deg,rgba(79,140,255,.25),rgba(79,140,255,0));
        border-left: 3px solid #4f8cff
    }

.sidebar-footer {
    font-size: 12px
}

.admin-main {
    flex: 1 1 auto;
    min-width: 0
}

.admin-topbar {
    height: 56px;
    padding: 0 .75rem;
    background: #ffffffcc;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(16,24,40,.06)
}

@media (max-width:991.98px) {
    .admin-sidebar {
        position: fixed;
        z-index: 1040;
        left: 0;
        transform: translateX(-100%);
        transition: transform .2s ease
    }

    .sidebar-collapsed .admin-sidebar {
        transform: translateX(0)
    }
}
/* tăng bề rộng modal trên desktop (có thể đổi 1100 → 1200/1280 tùy ý) */
@media (min-width: 992px) {
    #roleModal .modal-dialog {
        --bs-modal-width: 1100px;
    }
}

/* khung cuộn cho bảng lịch sử */
#roleModal .audit-scroll {
    max-height: 240px;
    overflow: auto;
}
.mono {
    font-family: Consolas, Menlo, monospace;
}

.badge-status {
    font-weight: 600;
}

.badge-empty {
    background: #eef2ff;
    color: #4338ca;
}

.badge-active {
    background: #dcfce7;
    color: #166534;
}

.badge-expired {
    background: #fee2e2;
    color: #991b1b;
}

.badge-revoked {
    background: #fef9c3;
    color: #854d0e;
}

.badge-sold {
    background: #fff7ed;
    color: #9a3412;
}
/* viền ngăn cách cột lịch sử trên desktop */
@media (min-width: 992px) {
    .border-start-lg {
        border-left: 1px solid var(--bs-border-color, #dee2e6);
    }
}

.history-pane .list-group-item {
    padding: .5rem .75rem;
}
@media (min-width: 992px) {
    #devicesModal .modal-dialog {
        max-width: 1200px;
    }
}
