/* Montserrat — local fonts */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/montserrat-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/montserrat-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
}

/* ===== LOGIN PAGE ===== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.login-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-box h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.login-box p {
    color: #888;
    font-size: 14px;
    margin-bottom: 28px;
}

.login-box .form-group {
    margin-bottom: 18px;
}

.login-box label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.login-box input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.2s;
}

.login-box input:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74,108,247,0.1);
}

.login-box .btn-login {
    width: 100%;
    padding: 13px;
    background: #4a6cf7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.login-box .btn-login:hover {
    background: #3b5de7;
}

.login-box .btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-error {
    background: #fff2f2;
    color: #e74c3c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

/* ===== LAYOUT ===== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 260px;
    background: #1a1a2e;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #4a6cf7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-user-info {
    overflow: hidden;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.sidebar-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.sidebar-nav a.active {
    color: #fff;
    background: rgba(74,108,247,0.2);
    border-right: 3px solid #4a6cf7;
}

.sidebar-nav a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-nav a.active svg {
    opacity: 1;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s;
    width: 100%;
}

.btn-logout:hover {
    color: #e74c3c;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-header {
    padding: 24px 32px;
    background: #fff;
    border-bottom: 1px solid #e8eaed;
}

.content-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}

.content-body {
    flex: 1;
    padding: 24px 32px;
}

/* ===== TOOLBAR ===== */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-create {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-create:hover {
    background: #219a52;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 10px 14px 10px 38px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    width: 260px;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #4a6cf7;
}

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #aaa;
}

/* ===== TABLE ===== */
.data-table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f8f9fa;
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
}

.data-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: #f8f9fc;
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active {
    background: #e8f5e9;
    color: #27ae60;
}

.badge-inactive {
    background: #ffeaea;
    color: #e74c3c;
}

.badge-admin {
    background: #e8eaf6;
    color: #4a6cf7;
}

.badge-manager {
    background: #fff3e0;
    color: #f39c12;
}

/* ===== INDICATOR DOT ===== */
.indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.indicator-green {
    background: #27ae60;
    box-shadow: 0 0 6px rgba(39,174,96,0.4);
}

.indicator-red {
    background: #e74c3c;
    box-shadow: 0 0 6px rgba(231,76,60,0.4);
}

/* ===== ACTION BUTTONS ===== */
.actions {
    display: flex;
    gap: 6px;
}

.btn-action {
    width: 32px;
    height: 32px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #666;
}

.btn-action:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.btn-action.btn-danger:hover {
    background: #ffeaea;
    border-color: #e74c3c;
    color: #e74c3c;
}

.btn-action svg {
    width: 16px;
    height: 16px;
}

/* ===== PAGINATION ===== */
.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.pagination-info {
    font-size: 13px;
    color: #888;
}

.pagination-show {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
}

.pagination-show a {
    color: #4a6cf7;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.pagination-show a.active {
    font-weight: 700;
    text-decoration: underline;
}

.pagination-pages {
    display: flex;
    gap: 4px;
}

.pagination-pages a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-pages a:hover {
    background: #eee;
}

.pagination-pages a.active {
    background: #4a6cf7;
    color: #fff;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #fff;
    border-radius: 12px;
    width: 560px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.2s;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 20px;
    color: #999;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #eee;
}

/* ===== FORM ===== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.2s;
}

.form-group input:not([type="checkbox"]):focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74,108,247,0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.form-group select {
    cursor: pointer;
    appearance: auto;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: #4a6cf7;
    color: #fff;
}

.btn-primary:hover {
    background: #3b5de7;
}

.btn-secondary {
    background: #f0f0f0;
    color: #555;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-format {
    background: #e8f5e9;
    color: #27ae60;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #27ae60;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-top: 8px;
    transition: all 0.2s;
}

.btn-format:hover {
    background: #27ae60;
    color: #fff;
}

/* ===== CODE VIEW ===== */
.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 8px;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    position: relative;
    white-space: pre-wrap;
    word-break: break-all;
}

.code-readonly {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 120px;
    overflow-y: auto;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #4a6cf7;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.btn-copy:hover {
    background: #3b5de7;
}

.btn-copy.copied {
    background: #27ae60;
}

/* ===== FOOTER ===== */
.app-footer {
    padding: 16px 32px;
    text-align: center;
    font-size: 13px;
    color: #aaa;
    border-top: 1px solid #e8eaed;
    background: #fff;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    z-index: 2000;
    transform: translateX(120%);
    transition: transform 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    background: #27ae60;
}

.toast-error {
    background: #e74c3c;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 15px;
}

/* ===== CONFIRM DIALOG ===== */
.confirm-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.confirm-text strong {
    color: #333;
}

/* ===== LOADING ===== */
.loading {
    text-align: center;
    padding: 40px;
    color: #aaa;
}

.spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #eee;
    border-top-color: #4a6cf7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== ADVERTISER ACCESS CHECKBOXES ===== */
.adv-access-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    background: #fafafa;
}

.adv-access-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 4px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
}

.adv-access-item:hover {
    background: #eef0f5;
}

.adv-access-item input[type="checkbox"] {
    width: 18px;
    min-width: 18px;
    height: 18px;
    accent-color: #4a6cf7;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    margin-right: 4px;
}

.adv-access-item span {
    line-height: 1.3;
    flex: 1;
}

.adv-access-empty {
    color: #aaa;
    font-size: 13px;
    padding: 8px 0;
}

/* ===== BURGER BUTTON ===== */
.burger-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #333;
    transition: all 0.2s;
}

.burger-btn:hover {
    background: #f0f2f5;
    border-color: #ccc;
}

.burger-btn svg {
    width: 22px;
    height: 22px;
}

/* ===== SIDEBAR OVERLAY ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    .main-content {
        margin-left: 220px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .burger-btn {
        display: flex;
    }
    .content-header {
        padding: 16px;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .content-header h1 {
        font-size: 18px;
    }
    .content-body {
        padding: 16px;
    }
    .toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .search-box input {
        width: 100%;
    }

    /* === CARD LAYOUT for tables on mobile === */
    .data-table {
        overflow-x: visible;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }
    .data-table table {
        min-width: 0;
        display: block;
    }
    .data-table thead {
        display: none;
    }
    .data-table tbody {
        display: block;
    }
    .data-table tbody tr {
        display: block;
        background: #fff;
        border-radius: 10px;
        margin-bottom: 12px;
        padding: 14px 16px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        border: 1px solid #f0f0f0;
    }
    .data-table tbody tr:hover td {
        background: transparent;
    }
    .data-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 7px 0;
        border-bottom: 1px solid #f5f5f5;
        font-size: 14px;
        white-space: normal;
    }
    .data-table tbody td:last-child {
        border-bottom: none;
        padding-top: 10px;
    }
    .data-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 12px;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        flex-shrink: 0;
        margin-right: 12px;
    }
    .data-table tbody td:last-child::before {
        display: none;
    }
    .data-table tbody td .actions {
        justify-content: flex-end;
        width: 100%;
        gap: 10px;
    }
    .data-table tbody td .badge {
        font-size: 12px;
    }
    /* Bigger touch targets for action buttons */
    .btn-action {
        width: 40px;
        height: 40px;
    }
    .btn-action svg {
        width: 18px;
        height: 18px;
    }

    /* Modal fullscreen on mobile */
    .modal-overlay.active {
        align-items: stretch;
    }
    .modal {
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    .modal-header {
        padding: 16px;
        flex-shrink: 0;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 2;
        border-bottom: 1px solid #eee;
    }
    .modal-header h2 {
        font-size: 16px;
        padding-right: 40px;
    }
    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
        flex-shrink: 0;
    }
    .modal-body {
        padding: 16px;
        overflow-y: auto;
        flex: 1;
        -webkit-overflow-scrolling: touch;
    }
    .modal-footer {
        padding: 12px 16px;
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
        background: #fff;
        z-index: 2;
    }
    /* Audit filters responsive */
    .audit-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .audit-filters .filter-group {
        width: 100%;
    }
    .audit-filters .filter-group input,
    .audit-filters .filter-group select {
        width: 100%;
    }
    /* Pagination responsive */
    .pagination-bar {
        flex-direction: column;
        gap: 8px;
        padding: 10px 12px;
        text-align: center;
    }
    /* Toast — center on mobile */
    .toast {
        left: 16px;
        right: 16px;
        text-align: center;
        transform: translateY(-120%);
    }
    .toast.show {
        transform: translateY(0);
    }
    /* Login page adjustments */
    .login-box {
        padding: 28px 20px;
    }
    .login-box h1 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 260px;
    }
    .content-header h1 {
        font-size: 16px;
    }
    .btn-create {
        padding: 10px 16px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
    .data-table tbody td {
        font-size: 13px;
    }
    .data-table tbody td::before {
        font-size: 11px;
    }
    .form-group textarea {
        min-height: 120px;
    }
    .modal-footer {
        flex-direction: column;
    }
    .modal-footer .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== AUDIT LOG ===== */
.badge-audit-create { background: #e8f5e9; color: #27ae60; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-audit-update { background: #e3f2fd; color: #2196f3; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-audit-delete { background: #ffeaea; color: #e74c3c; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-audit-login { background: #f5f5f5; color: #888; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-audit-login-success { background: #e8f5e9; color: #27ae60; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-audit-login-failed { background: #ffeaea; color: #e74c3c; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-audit-logout { background: #fff3e0; color: #f39c12; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }

.audit-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: flex-end;
}

.audit-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.audit-filters .filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
}

.audit-filters .filter-group input,
.audit-filters .filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
}

.audit-details {
    max-width: 300px;
    font-size: 13px;
    color: #555;
    word-break: break-word;
}

.btn-export {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f0f0f0;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-export:hover {
    background: #e0e0e0;
}
