/* Основні стилі */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
}

/* Хедер */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo h1 {
    color: #000000;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 2px;
}

.logo .subtitle {
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    gap: 10px;
}

.nav-link {
    padding: 10px 20px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover {
    background: #f5f5f5;
    color: #000000;
}

.nav-link.active {
    background: #000000;
    color: #ffffff;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.username {
    color: #666;
    font-size: 14px;
}

/* Бургер меню */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: transparent;
    border: none;
    z-index: 101;
    position: relative;
    width: 40px;
    height: 40px;
}

.burger-menu span {
    width: 24px;
    height: 2px;
    background: #000;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Кнопки */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #000000;
    color: #ffffff;
}

.btn-primary:hover {
    background: #333333;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ffffff;
    color: #333;
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.btn-logout {
    background: transparent;
    color: #666;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
}

.btn-logout:hover {
    background: #fff0f0;
    border-color: #ff4444;
    color: #ff4444;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-edit {
    background: #ffffff;
    color: #333;
    border: 1px solid #e0e0e0;
}

.btn-edit:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.btn-delete {
    background: transparent;
    color: #ff4444;
    border: 1px solid #ff4444;
}

.btn-delete:hover {
    background: #ff4444;
    color: #ffffff;
}

.btn-add {
    background: #000000;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
}

.btn-add:hover {
    background: #333333;
}

/* Основний контент */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    min-height: calc(100vh - 180px);
}

/* Картки на головній сторінці */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dashboard-card:hover {
    border-color: #000000;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dashboard-card h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #000000;
}

.dashboard-card p {
    color: #666;
    font-size: 14px;
}

/* Повідомлення */
.success-message,
.error-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    border: 1px solid;
}

.success-message {
    background: #f0fdf4;
    color: #166534;
    border-color: #86efac;
}

.error-message {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

/* Секція контенту */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.content-header h2 {
    color: #000000;
    font-size: 28px;
}

/* Секція фільтрів */
.filters-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group input[type="text"],
.filter-group select {
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #ffffff;
    transition: all 0.3s ease;
    width: 100%;
}

.filter-group input[type="text"]:focus,
.filter-group select:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.filter-group input[type="text"]::placeholder {
    color: #999;
}

/* Таблиці */
.table-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow-x: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

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

.data-table thead {
    background: #fafafa;
    border-bottom: 2px solid #e0e0e0;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #000000;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}

.data-table tbody tr:hover {
    background: #fafafa;
}

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

.data-table .actions {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.data-table th:last-child,
.data-table td:last-child {
    position: sticky;
    right: 0;
    background: #fafafa;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.05);
}

.data-table thead th:last-child {
    background: #fafafa;
    z-index: 2;
}

.data-table tbody td:last-child {
    background: #ffffff;
}

.data-table tbody tr:hover td:last-child {
    background: #fafafa;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    white-space: normal;
}

/* Статус бейдж */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #86efac;
}

.status-inactive {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Роль бейдж */
.role-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-super_admin {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.role-city_admin {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Модальні вікна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

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

.modal-header h2 {
    color: #000000;
    font-size: 22px;
}

.modal-close {
    background: transparent;
    border: none;
    color: #666;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #000000;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Форми */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000000;
    background: #fafafa;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input[type="file"] {
    padding: 8px;
    cursor: pointer;
}

.form-group small {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* Підвал */
.footer {
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 13px;
}

.footer-version {
    color: #999;
}

/* Сторінка логіну */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-container h1 {
    color: #000000;
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.login-container h2 {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    font-weight: 400;
}

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-hint {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 12px;
}

/* Welcome section */
.welcome-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.welcome-section h2 {
    color: #000000;
    margin-bottom: 15px;
}

.welcome-section p {
    margin-bottom: 20px;
    color: #666;
}

.welcome-section ul {
    list-style: none;
    padding-left: 0;
}

.welcome-section li {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.welcome-section li:last-child {
    border-bottom: none;
}

/* Адаптивність */
@media (max-width: 1024px) {
    .header-content {
        flex-wrap: wrap;
        padding: 15px 20px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .main-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    /* Хедер */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 15px;
        padding: 12px 15px;
    }
    
    .logo h1 {
        font-size: 18px;
        margin-bottom: 0;
    }
    
    .logo .subtitle {
        display: none;
    }
    
    /* Бургер меню */
    .burger-menu {
        display: flex;
        order: 3;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        display: flex;
        flex-direction: column;
        padding: 0;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 100;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    /* Логотип в меню */
    .main-nav::before {
        content: 'Tattoo Lamarch';
        display: block;
        padding: 20px 24px;
        font-size: 18px;
        font-weight: 600;
        color: #000;
        border-bottom: 2px solid #e0e0e0;
        background: #fafafa;
    }
    
    /* Навігаційні посилання */
    .nav-link {
        padding: 16px 24px;
        font-size: 15px;
        width: 100%;
        text-align: left;
        border-radius: 0;
        border-bottom: 1px solid #f5f5f5;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }
    
    .nav-link:hover {
        background: #f5f5f5;
        padding-left: 28px;
    }
    
    .nav-link.active {
        background: #000000;
        color: #ffffff;
        border-bottom-color: #000000;
    }

    /* User menu внизу */
    .user-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 20px 24px 30px 24px;
        margin-top: auto;
        border-top: 2px solid #e0e0e0;
        align-items: stretch;
        background: #fafafa;
        flex-shrink: 0;
    }
    
    .username {
        font-size: 14px;
        padding: 0 0 12px 0;
        text-align: left;
        font-weight: 500;
        color: #333;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 12px;
    }
    
    .btn-logout {
        padding: 12px 16px;
        font-size: 14px;
        width: 100%;
        text-align: center;
        background: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        font-weight: 500;
    }
    
    .btn-logout:hover {
        background: #fff0f0;
        border-color: #ff4444;
        color: #ff4444;
    }
    
    /* Основний контент */
    .main-content {
        padding: 15px;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .content-header h2 {
        font-size: 22px;
    }
    
    .btn-add {
        width: 100%;
        text-align: center;
    }
    
    /* Фільтри */
    .filters-section {
        padding: 15px;
        gap: 12px;
    }
    
    .filter-group {
        min-width: 100%;
        flex: 1 1 100%;
    }
    
    .filter-group label {
        font-size: 12px;
    }
    
    .filter-group input[type="text"],
    .filter-group select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    /* Dashboard */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dashboard-card {
        padding: 20px;
    }

    /* Форми */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Запобігає zoom на iOS */
    }
    
    .cities-checkbox-group {
        max-height: 150px;
    }
    
    .price-type-switcher {
        flex-direction: column;
        gap: 10px;
    }

    /* Таблиці */
    .table-container {
        border-radius: 0;
        margin: 0;
        border: none;
        background: transparent;
        box-shadow: none;
    }
    
    .data-table {
        font-size: 13px;
        display: block;
        width: 100%;
    }

    .data-table thead {
        display: none;
    }

    .data-table tbody {
        display: block;
        width: 100%;
    }

    .data-table tr {
        display: block;
        margin-bottom: 15px;
        background: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
    }

    .data-table td {
        display: block;
        padding: 12px 15px;
        border-bottom: 1px solid #f5f5f5;
        position: relative;
        min-height: 40px;
    }
    
    .data-table td:last-child {
        border-bottom: none;
    }

    .data-table td:before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: #999;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }
    
    /* Контент комірки */
    .data-table td:not(.actions) {
        font-size: 14px;
        color: #333;
        line-height: 1.5;
    }

    /* Блок дій */
    .data-table td.actions {
        background: #fafafa;
        padding: 15px;
        border-top: 2px solid #e0e0e0;
    }
    
    .data-table td.actions:before {
        display: none;
    }

    .data-table .actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .data-table .actions form {
        width: 100%;
        margin: 0;
    }
    
    .data-table .actions .btn-small {
        width: 100%;
        padding: 10px 16px;
        font-size: 13px;
        justify-content: center;
        display: block;
        text-align: center;
    }
    
    /* Статус бейдж в мобільній версії */
    .data-table .status-badge {
        display: inline-block;
        margin: 0;
    }

    /* Модальні вікна */
    .modal {
        padding: 0;
        align-items: flex-start;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        border: none;
        min-height: 100vh;
    }
    
    .modal-header {
        padding: 20px 15px;
        position: sticky;
        top: 0;
        background: #ffffff;
        z-index: 10;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .modal-footer {
        padding: 15px;
        position: sticky;
        bottom: 0;
        background: #ffffff;
        border-top: 2px solid #e0e0e0;
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Галерея в формі */
    #edit_current_gallery,
    #add_current_gallery {
        gap: 8px;
    }
    
    #edit_current_gallery .gallery-item,
    #add_current_gallery .gallery-item {
        width: calc(33.333% - 6px);
        max-width: 100px;
    }
    
    #edit_current_gallery img,
    #add_current_gallery img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    /* Підвал */
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px;
        font-size: 12px;
    }
    
    /* Сторінка логіну */
    .login-container {
        padding: 30px 20px;
    }
    
    .login-container h1 {
        font-size: 24px;
    }
    
    /* Повідомлення */
    .success-message,
    .error-message {
        padding: 12px 15px;
        font-size: 13px;
        margin: 0 -15px 15px -15px;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 16px;
    }
    
    .content-header h2 {
        font-size: 20px;
    }
    
    .filters-section {
        padding: 12px;
    }
    
    .filter-group input[type="text"],
    .filter-group select {
        padding: 9px 10px;
        font-size: 13px;
    }
    
    .nav-link {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .data-table {
        font-size: 13px;
    }
    
    .data-table td {
        padding: 10px 12px;
    }
    
    .data-table td:before {
        font-size: 10px;
        margin-bottom: 3px;
    }
    
    .data-table td:not(.actions) {
        font-size: 13px;
    }
    
    .data-table td.actions {
        padding: 12px;
    }
    
    .data-table .actions .btn-small {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    #edit_current_gallery .gallery-item,
    #add_current_gallery .gallery-item {
        width: calc(50% - 4px);
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .btn-add {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .modal-header h2 {
        font-size: 16px;
    }
    
    .form-group label {
        font-size: 13px;
    }
}

/* Чекбокси для міст */
.cities-checkbox-group {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    background: #fafafa;
}

.city-checkbox-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.city-checkbox-item:hover {
    background: #f0f0f0;
}

.city-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #000000;
}

.city-checkbox-item label {
    cursor: pointer;
    flex: 1;
    font-size: 14px;
    color: #333;
}

/* Перемикач типу ціни */
.price-type-switcher {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 10px;
    background: #fafafa;
    border-radius: 8px;
}

.price-type-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.price-type-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #000000;
}

.price-type-option label {
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.price-fields {
    display: none;
    margin-bottom: 20px;
}

.price-fields.active {
    display: block;
}

/* Скролбар */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Пагінація */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
}

.pagination-btn:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.pagination-btn.active {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.pagination-dots {
    padding: 8px 4px;
    color: #999;
}

/* Inline редагування статусу та TOP10 */
.status-cell {
    position: relative;
}

.status-display {
    display: inline-block;
}

.status-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f5f5f5;
    transition: all 0.2s ease;
}

.status-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #000000;
}

.status-toggle span {
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.data-row:hover .status-cell .status-display {
    display: none;
}

.data-row:hover .status-cell .status-toggle {
    display: flex;
}

/* Мобільна адаптація для пагінації */
@media (max-width: 768px) {
    .pagination {
        padding: 15px;
        gap: 6px;
    }
    
    .pagination-btn {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 36px;
    }
    
    /* Inline чекбокси завжди видимі на мобільних */
    .status-cell .status-display {
        display: none;
    }
    
    .status-cell .status-toggle {
        display: flex;
    }
}
