body {
    background: #0f1115;
    color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar-blur {
    background: rgba(22, 25, 31, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-card,
.stat-card,
.action-card,
.content-card {
    background: #171b22;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #cfd3d8;
    letter-spacing: 0.02em;
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0d6efd;
    display: inline-block;
    margin-right: 0.6rem;
    box-shadow: 0 0 12px rgba(13,110,253,0.75);
}

.muted-soft {
    color: #9aa4af;
}

.badge-soft {
    background: rgba(13,110,253,0.15);
    color: #8bb9ff;
    border: 1px solid rgba(13,110,253,0.25);
}

.offcanvas {
    background: #171b22;
    color: #f8f9fa;
}

.offcanvas .nav-link {
    color: #dee2e6;
    border-radius: 0.75rem;
    padding: 0.75rem 0.9rem;
}

.offcanvas .nav-link:hover,
.offcanvas .nav-link.active {
    background: rgba(255,255,255,0.06);
    color: #ffffff;
}

.form-control,
.form-select,
.input-group-text {
    background: #10141a;
    border: 1px solid rgba(255,255,255,0.08);
    color: #f8f9fa;
}

.form-control:focus,
.form-select:focus {
    background: #10141a;
    color: #f8f9fa;
    border-color: rgba(13,110,253,0.55);
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.15);
}

.form-floating > label {
    color: #9aa4af;
}

.form-label {
    color: #cfd3d8;
}

.alert {
    border: 0;
    border-radius: 0.9rem;
}

.btn-soft {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
}

.btn-soft:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #dfe4ea;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.ok {
    background: #198754;
    box-shadow: 0 0 10px rgba(25,135,84,0.6);
}

.status-dot.no {
    background: #dc3545;
    box-shadow: 0 0 10px rgba(220,53,69,0.6);
}

.divider {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 1.5rem 0;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    color: #adb5bd;
    font-size: 0.95rem;
}

.quick-btn {
    min-width: 170px;
}

.table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255,255,255,0.03);
    --bs-table-hover-bg: rgba(255,255,255,0.05);
    --bs-table-border-color: rgba(255,255,255,0.08);
}

.code-wrap {
    max-width: 320px;
    overflow: auto;
    white-space: nowrap;
}

.inline-actions form,
.inline-actions a,
.inline-actions button {
    margin-bottom: 0.35rem;
}

.code-box {
    background: #10141a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.9rem;
    padding: 1rem 1.1rem;
    color: #dee2e6;
    word-break: break-all;
}

.drop-hint{
    width:100%;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    height:0;
    overflow:hidden;

    margin-top:0;
    padding:0;

    border-radius:0.9rem;
    border:1px dashed transparent;
    background:transparent;

    opacity:0;

    transition:
        height .25s ease,
        margin-top .25s ease,
        padding .25s ease,
        opacity .2s ease,
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.drag-active .drop-hint{
    height:130px;
    margin-top:10px;
    padding:1rem;

    border-color:rgba(13,110,253,0.35);

    background:linear-gradient(
        180deg,
        rgba(13,110,253,0.12),
        rgba(13,110,253,0.04)
    );

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.03),
        0 8px 20px rgba(0,0,0,0.25);

    opacity:1;
}

.dropdown-menu-dark{
    background:#171b22;
    border:1px solid rgba(255,255,255,0.08);
}

.dropdown-item{
    font-size:0.9rem;
}

.dropdown-item:hover{
    background:rgba(255,255,255,0.05);
}

:not(.modal) .table-responsive {
    overflow: visible !important;
}

.dropdown-menu{
    z-index: 5000;
}

.container.py-4,
.container.py-5 {
    flex: 0;
}

/* Styled scrollbar for modal */
#policyModalBody {
    scrollbar-color: rgba(13,110,253,0.4) #10141a;
    scrollbar-width: thin;
}

#policyModalBody::-webkit-scrollbar {
    width: 6px;
}

#policyModalBody::-webkit-scrollbar-track {
    background: #10141a;
    border-radius: 999px;
}

#policyModalBody::-webkit-scrollbar-thumb {
    background: rgba(13, 110, 253, 0.35);
    border-radius: 999px;
}

#policyModalBody::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 110, 253, 0.6);
}

.navbar-brand:hover .logo-icon {
    filter: drop-shadow(0 0 6px rgba(13,110,253,0.55));
    transform: translateY(-1px);
    transition: 0.25s ease;
}

.navbar-brand:hover .logo-text {
    color: #8bb9ff;
    transition: 0.25s ease;
}

.logo-icon {
    height: 48px;
    width: auto;
    margin-right: 0.75rem;
    transition: 0.25s ease;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.55rem;
    letter-spacing: 0.03em;
    color: #f8f9fa;
    transition: 0.25s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 26px;
    width: auto;
}