/* TOP HEADER */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.top-header h1 {
    flex: 1;
    text-align: center;
    margin: 0;
}
/* TOP HEADER */

/* ФОРМА ВВОДА ТЕКСТА - ВЫПАДАЮЩИЙ СПИСОК */
.autocomplete-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.autocomplete-item {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: background 0.2s, color 0.2s;
}

.autocomplete-item:hover {
    background: var(--hover-bg);
    color: var(--link-hover-color);
}
/* ФОРМА ВВОДА ТЕКСТА - ВЫПАДАЮЩИЙ СПИСОК */

/* БАЗОВЫЕ КНОПКИ */
.btn {
    display: inline-flex;
    line-height: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    background: transparent;
    color: var(--text-primary);
}

.btn-primary {
    background: rgba(var(--accent-color-rgb), 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 12px rgba(var(--accent-color-rgb), 0.3);
    transform: translateY(-1px);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: rgba(var(--accent-color-rgb), 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
    font-size: 16px;
}

.btn-icon:hover {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px rgba(var(--accent-color-rgb), 0.5);
    transform: scale(1.05);
}

.btn-danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
}

.btn-danger:hover {
    background: #dc3545;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #28a745;
}

.btn-success:hover {
    background: #28a745;
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn i {
    font-size: 16px;
    transition: transform 0.2s;
}

.btn-primary:hover i {
    transform: translateX(3px);
}

.btn-icon:hover i {
    transform: scale(1.1);
}

.btn-with-badge {
    position: relative;
}

.btn-with-badge .pending-badge {
    position: absolute;
    top: -5px;
    right: -5px;

    min-width: 18px;
    height: 18px;
    padding: 0 6px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    font-weight: 600;

    border-radius: 20px;

    background: var(--accent-color);
    color: white;

    border: 2px solid var(--card-bg);
    box-shadow: 0 4px 10px rgba(var(--accent-color-rgb), 0.35);
}

.btn-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #ffc107;
}

.btn-warning:hover {
    background: #ffc107;
    color: #212529;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.btn:disabled,
.btn:disabled:hover,
.btn:disabled:active {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(var(--accent-color-rgb), 0.2);
    color: var(--text-secondary);
    border-color: var(--border-color);
    box-shadow: none;
    transform: none;
}

.btn-primary:disabled,
.btn-primary:disabled:hover {
    background: linear-gradient(135deg, rgba(var(--accent-color-rgb), 0.3), rgba(var(--accent-color-rgb), 0.15));
    color: rgba(255, 255, 255, 0.6);
    border-color: transparent;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}
/* БАЗОВЫЕ КНОПКИ */

/* ТАБЛИЦА */
.users-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: var(--card-bg);
    margin-top: 20px;
}

.users-table thead tr {
    background: var(--sidebar-bg);
    border-bottom: 2px solid var(--border-color);
}

.users-table th {
    padding: 16px 18px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-align: center;
    color: var(--text-primary);
}

.dark-theme .users-table thead tr {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.users-table th:first-child {
    text-align: left;
}

.users-table td {
    padding: 12px 18px;
    font-size: 15px;
    color: var(--text-primary);
    border: none;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.users-table tbody tr:last-child td {
    border-bottom: none;
}

.users-table tbody tr:hover {
    background: var(--hover-bg);
    transition: background 0.2s;
}

.users-table td:has(i) {
    text-align: center;
    vertical-align: middle;
}

.users-table .btn {
    margin: 0 2px;
}

.users-table th:not(:last-child),
.users-table td:not(:last-child) {
    border-right: 1px solid var(--border-light);
}

.users-table thead tr th:first-child {
    border-top-left-radius: 16px;
}

.users-table thead tr th:last-child {
    border-top-right-radius: 16px;
}

.user-row {
    cursor: pointer;
}

.user-center-text,
.user-post-cell,
.user-stations-cell,
.user-access-cell {
    text-align: center;
    vertical-align: middle;
}
/* ТАБЛИЦА */