/* Auth Layout */
.auth-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.auth-card-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
}

/* Logo invert for dark navbar (boostra default) */
.logo-light {
    filter: brightness(0) invert(1);
}

/* Цветные бренд-лого на тёмном navbar: белая плашка для читаемости */
.logo-on-dark {
    background-color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Sidebar */
.sidebar {
    width: 340px;
    min-width: 340px;
    height: 100%;
}

.sidebar-content {
    scrollbar-width: thin;
}

.sidebar-link {
    color: #495057;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    margin: 1px 0.5rem;
    transition: background-color 0.15s ease;
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}

.sidebar-link:hover {
    background-color: #f0f2f5;
    color: #212529;
}

.sidebar-link.active {
    background-color: #e7f1ff;
    color: #0d6efd;
    font-weight: 600;
}

.sidebar-accordion-btn {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.65rem 1rem;
    color: #495057;
    background-color: transparent !important;
    box-shadow: none !important;
}

.sidebar-accordion-btn:not(.collapsed) {
    color: #0d6efd;
    background-color: #f8f9fa !important;
}

.sidebar-accordion-btn::after {
    width: 0.85rem;
    height: 0.85rem;
    background-size: 0.85rem;
}

.sidebar-footer {
    background-color: #f8f9fa;
}


/* Table styles */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
}

/* Spinner animation */
.spinner-border {
    width: 2.5rem;
    height: 2.5rem;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Input group focus */
.input-group:focus-within .input-group-text {
    border-color: #86b7fe;
}
