/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #000000;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Admin Container */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 20px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.sidebar-header h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.sidebar-header p {
    opacity: 0.8;
    font-size: 14px;
}

.nav-menu {
    list-style: none;
    padding: 0 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 5px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255,255,255,0.8);
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(5px);
}

.nav-item.active {
    background: rgba(255,255,255,0.2);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-item i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 20px;
    background: #ffffff;
    min-height: 100vh;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Мобильные стили для header */
@media (max-width: 768px) {
    .top-bar {
        padding: 15px 20px;
        margin-bottom: 20px;
       
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .user-menu {
        min-width: 60px;
        min-height: 44px;
        padding: 8px 12px;
        border-radius: 12px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    
    .user-menu:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }
    
    .user-menu:active {
        transform: translateY(0);
    }
    
    .user-menu span {
        font-weight: 600;
        font-size: 14px;
    }
    
    .user-menu i {
        font-size: 20px;
        color: white;
    }
    
    .breadcrumb {
        font-size: 18px;
        font-weight: 600;
        color: #2c3e50;
    }
}

/* Desktop стили для header */
.breadcrumb {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

.user-menu {
    min-width: 120px;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
}

.user-menu:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.user-menu:active {
    transform: translateY(0);
}

.user-menu span {
    font-weight: 600;
    font-size: 14px;
    color: rgb(54, 67, 83);
}

.user-menu i {
    font-size: 20px;
    color: white;
}

/* User Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.dropdown-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #667eea;
}

.dropdown-item:hover i {
    color: white;
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 8px 20px;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 24px;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.stat-info h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #000000;
}

.stat-info p {
    color: #000000;
    font-size: 14px;
    opacity: 0.7;
}

/* Content Header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.content-header h2 {
    font-size: clamp(20px, 4vw, 28px);
    color: #000000;
    font-weight: 600;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
}

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

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

/* Filters */
.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input, .filter-select {
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    font-size: 14px;
    min-width: 200px;
    transition: border-color 0.3s ease;
    background: #ffffff;
    color: #000000;
}

.search-input:focus, .filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #ffffff;
}

.search-input::placeholder {
    color: #999999;
    opacity: 0.7;
}

/* Tables */
.table-container {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e5e5e5;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
}

.table-container thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e5e5e5;
}

.table-container th {
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    color: #000000;
    border-bottom: 2px solid #e5e5e5;
    font-size: 14px;
    background-color: #f8f9fa;
}

.table-container td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
    color: #000000;
    font-size: 14px;
}

.table-container tbody tr {
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.table-container tbody tr:hover {
    background-color: #f8f9fa;
}

.table-container tbody tr.active,
.table-container tbody tr.selected {
    background-color: #f0f4ff;
    border-left: 3px solid #667eea;
}

.table-container tbody tr.active:hover,
.table-container tbody tr.selected:hover {
    background-color: #e8f0ff;
}

.table-container p {
    padding: 40px;
    text-align: center;
    color: #000000;
    opacity: 0.7;
}

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

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

.data-table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e5e5e5;
}

.data-table th {
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    color: #000000;
    border-bottom: 2px solid #e5e5e5;
    font-size: 14px;
    background-color: #f8f9fa;
}

.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
    color: #000000;
    font-size: 14px;
}

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

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-secondary {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Стили для ролей */
.role-admin {
    background-color: #dc3545;
    color: white;
}

.role-shop_owner {
    background-color: #ffc107;
    color: #212529;
}

.role-user {
    background-color: #17a2b8;
    color: white;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

.text-center {
    text-align: center !important;
}

th, td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #f1f3f4;
}

th {
    background: #f8f9fa !important;
    font-weight: 600;
    color: #000000;
    font-size: 14px;
    border-bottom: 2px solid #e5e5e5;
}

td {
    color: #000000;
}

tr {
    background: #ffffff;
    transition: all 0.2s ease;
}

tr:hover {
    background: #f8f9fa;
}

tr.active,
tr.selected {
    background: #f0f4ff;
    border-left: 3px solid #667eea;
}

tr.active:hover,
tr.selected:hover {
    background: #e8f0ff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
    border: 1px solid #e5e5e5;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.modal-header h3 {
    font-size: 20px;
    color: #000000;
    font-weight: 600;
}

.close {
    font-size: 28px;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    transition: color 0.3s ease;
    opacity: 0.7;
}

.close:hover {
    color: #000000;
    opacity: 1;
}

/* Forms */
form {
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #000000;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #000000;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #ffffff;
}

.form-input::placeholder {
    color: #999999;
    opacity: 0.7;
}

.form-help {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #000000;
    font-style: italic;
    opacity: 0.7;
}

/* Login Modal Styles */
#login-modal {
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
}

#login-modal .modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

#login-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

#login-modal .modal-header h3 {
    color: white;
    margin: 0;
    font-size: 24px;
}

#login-modal .form-group label {
    color: white;
    font-weight: 500;
}

#login-modal .form-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

#login-modal .form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#login-modal .form-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

#login-modal .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
}

#login-modal .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f1f3f4;
}

/* Settings */
.settings-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 500px;
    border: 1px solid #e5e5e5;
}

/* Recent Section */
.recent-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e5e5e5;
}

.recent-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #000000;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .content-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    max-width: 400px;
    padding: 0;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    animation: slideInRight 0.4s ease;
    overflow: hidden;
}

.message-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
}

.message-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.message-text {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
}

.message-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    color: inherit;
    opacity: 0.7;
}

.message-close:hover {
    background: rgba(0,0,0,0.1);
    opacity: 1;
}

.message.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.message.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.message.info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Action Buttons in Tables */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.action-btn.edit {
    background: #007bff;
    color: white;
}

.action-btn.delete {
    background: #dc3545;
    color: white;
}

.action-btn.view {
    background: #6c757d;
    color: white;
}

.action-btn.success {
    background: #28a745;
    color: white;
}

.action-btn.danger {
    background: #dc3545;
    color: white;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    font-weight: bold;
} 

/* Загрузка изображений */
.image-upload-container {
    margin-top: 10px;
}

.image-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.image-upload-area:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.image-upload-area.dragover {
    border-color: #007bff;
    background: #e3f2fd;
}

.upload-placeholder {
    color: #666;
}

.upload-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    color: #999;
}

.upload-hint {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ddd;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-item .remove-image:hover {
    background: rgba(255, 0, 0, 1);
}

.image-urls {
    margin-top: 10px;
}

.image-url-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 5px;
}

.image-url-item input {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.image-url-item .remove-url {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.image-url-item .remove-url:hover {
    background: #c82333;
}

/* Улучшенные стили для datalist */
input[list] {
    background: white;
}

/* Прогресс загрузки */
.upload-progress {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}

.upload-progress-bar {
    height: 100%;
    background: #007bff;
    transition: width 0.3s ease;
}

/* Уведомления о загрузке */
.upload-status {
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
}

.upload-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.upload-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.upload-status.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
} 

/* Вариации товара */
.variations-container {
    margin-top: 15px;
}

.variations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.variations-header h4 {
    margin: 0;
    color: #333;
    border-bottom: none;
    padding-bottom: 0;
}

.variations-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.variation-item {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.variation-item:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.variation-item .remove-variation {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.variation-item .remove-variation:hover {
    background: #c82333;
    transform: scale(1.1);
}

.variation-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.variation-field {
    display: flex;
    flex-direction: column;
}

.variation-field label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.variation-field input,
.variation-field select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.variation-field input:focus,
.variation-field select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.variation-image-upload {
    grid-column: span 2;
}

.variation-image-preview {
    margin-top: 10px;
    max-width: 100px;
    max-height: 100px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.no-variations {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* Адаптивность для вариаций */
@media (max-width: 1200px) {
    .variation-fields {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 12px;
    }
    
    .variation-image-upload {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .variation-fields {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .variations-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        padding: 15px;
    }
    
    .form-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .variation-item {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .variation-fields {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .variation-field {
        width: 100%;
        min-width: 0;
    }
    
    .variation-field input,
    .variation-field select,
    .variation-field textarea {
        width: 100%;
        min-width: 0;
        font-size: 16px;
        padding: 12px;
    }
    
    .variation-multi-select {
        width: 100%;
        overflow-x: auto;
    }
    
    .checkbox-group {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    
    .checkbox-group label {
        min-width: 80px;
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .variation-images-preview {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
        width: 100%;
        overflow-x: auto;
    }
    
    .image-preview-item img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 8px;
    }
    
    .remove-image {
        position: absolute;
        top: -5px;
        right: -5px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #e74c3c;
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
    }
}

/* Улучшенные стили для кнопок */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #1e7e34;
}

.btn-info {
    background: linear-gradient(135deg, #45b7d1 0%, #96ceb4 100%);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #3a9bb8 0%, #7db89a 100%);
} 

/* Множественный выбор */
.variation-multi-select {
    grid-column: span 2;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #495057;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    user-select: none;
}

.checkbox-group label:hover {
    background: #e9ecef;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"]:checked + span {
    color: #007bff;
    font-weight: 500;
}

/* Адаптивность для множественного выбора */
@media (max-width: 1200px) {
    .variation-multi-select {
        grid-column: span 1;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 4px;
    }
    
    .checkbox-group label {
        padding: 6px 8px;
    }
}

@media (max-width: 768px) {
    .variation-fields {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .variation-multi-select {
        grid-column: span 1;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 4px;
    }
} 

/* Множественные фото */
.variation-images-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.image-preview-item {
    position: relative;
    display: inline-block;
}

.image-preview-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
}

.image-preview-item img:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-image:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Адаптивность для множественных фото */
@media (max-width: 768px) {
    .variation-images-preview {
        gap: 8px;
    }
    
    .image-preview-item img {
        width: 60px;
        height: 60px;
    }
    
    .remove-image {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
} 

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #000000;
    opacity: 0.7;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-state small {
    font-size: 14px;
    opacity: 0.7;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-info i {
    color: #667eea;
    font-size: 16px;
}

/* Date Info */
.date-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date-info .date {
    font-weight: 500;
    color: #000000;
}

.date-info .time {
    font-size: 12px;
    color: #000000;
    opacity: 0.7;
}

/* Amount */
.amount {
    font-weight: 600;
    color: #28a745;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge i {
    font-size: 10px;
}

.status-new {
    background: #e3f2fd;
    color: #1976d2;
}

.status-processing {
    background: #fff3e0;
    color: #f57c00;
}

.status-shipped {
    background: #e8f5e8;
    color: #388e3c;
}

.status-completed {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-cancelled {
    background: #ffebee;
    color: #d32f2f;
}

/* Code styling */
code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #333;
} 

/* User Avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    margin-right: 12px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar i {
    font-size: 20px;
    color: #666;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-weight: 600;
    color: #000000;
}

.user-phone {
    font-size: 12px;
    color: #000000;
    opacity: 0.7;
}

/* Email Info */
.email-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.email {
    font-weight: 500;
    color: #000000;
}

.verified-badge {
    color: #28a745;
    font-size: 12px;
}

.unverified-badge {
    color: #dc3545;
    font-size: 12px;
}

/* Role Badges */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge i {
    font-size: 10px;
}

.role-admin {
    background: #fff3cd;
    color: #856404;
}

.role-moderator {
    background: #d1ecf1;
    color: #0c5460;
}

.role-user {
    background: #e2e3e5;
    color: #383d41;
}

/* Status Badges */
.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

/* User Details Modal */
.user-details-modal {
    padding: 20px;
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    margin: 0 auto 20px;
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar-large i {
    font-size: 40px;
    color: #666;
}

.user-info-grid {
    display: grid;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: #000000;
    min-width: 120px;
}

.info-item span {
    color: #000000;
    text-align: right;
    opacity: 0.8;
}

/* Checkbox styling */
.form-group input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.form-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
} 

/* ===== КРАСИВЫЙ ДИЗАЙН ДЛЯ ТАБЛИЦ ПОЛЬЗОВАТЕЛЕЙ И РОЛЕЙ ===== */

/* Основной контейнер таблицы */
.table-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.table-container::before {
    display: none;
}

/* Заголовок таблицы */
.table-container h3 {
    color: #000000;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: left;
    text-shadow: none;
    position: relative;
}

.table-container h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #667eea;
    border-radius: 2px;
}

/* Таблица */
.data-table {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Заголовки таблицы */
.data-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e5e5e5;
}

.data-table th {
    color: #000000;
    font-weight: 600;
    font-size: 14px;
    padding: 18px 15px;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    border: none;
    position: relative;
    background: #f8f9fa;
}

.data-table th:first-child {
    border-top-left-radius: 15px;
}

.data-table th:last-child {
    border-top-right-radius: 15px;
}

.data-table th::after {
    display: none;
}

/* Строки таблицы */
.data-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #e5e5e5;
    background: #ffffff !important;
}

/* Убираем альтернативные цвета строк на десктопе */
.data-table tbody tr:nth-child(even),
.data-table tbody tr:nth-child(odd) {
    background: #ffffff !important;
}

.data-table tbody tr:hover {
    background: #f8f9fa !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.data-table tbody tr.active {
    background: #f0f4ff !important;
    border-left: 3px solid #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.data-table tbody tr.active:hover {
    background: #e8f0ff !important;
}

.data-table tbody tr.selected {
    background: #f0f4ff !important;
    border-left: 3px solid #667eea;
}

.data-table tbody tr.selected:hover {
    background: #e8f0ff !important;
}

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

/* Ячейки таблицы */
.data-table td {
    padding: 16px 15px;
    color: #000000;
    font-size: 14px;
    border: none;
    vertical-align: middle;
    background: transparent;
}

.data-table tbody tr:hover td {
    color: #000000; /* Темный текст для читаемости */
    background: transparent;
}

.data-table tbody tr.active td {
    color: #000000;
    background: transparent;
    font-weight: 500;
}

.data-table tbody tr.selected td {
    color: #000000;
    background: transparent;
    font-weight: 500;
}

.data-table tbody tr.selected td {
    color: #000000;
    background: transparent;
    font-weight: 500;
}

/* Бейджи ролей */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.badge:hover::before {
    left: 100%;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* Стили для разных ролей */
.role-admin {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.role-shop_owner {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

.role-user {
    background: linear-gradient(135deg, #45b7d1, #96ceb4);
    color: white;
}

/* Кнопки действий */
.btn-sm {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 2px;
    position: relative;
    overflow: hidden;
}

.btn-sm::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-sm:hover::before {
    width: 100%;
    height: 100%;
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

/* Сообщение "не найдено" */
.text-center {
    text-align: center !important;
    padding: 40px 20px;
    color: #000000;
    font-size: 16px;
    font-style: italic;
    background: #ffffff;
    border-radius: 10px;
    margin: 20px 0;
    opacity: 0.7;
}

/* Анимация загрузки */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Адаптивность */
@media (max-width: 768px) {
    .table-container {
        padding: 20px;
        margin: 10px 0;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 8px;
    }
    
    .badge {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 10px;
    }
}

    /* Убираем все альтернативные цвета - все строки белые */
    .data-table tbody tr:nth-child(even),
    .data-table tbody tr:nth-child(odd) {
        background: #ffffff !important;
    }
    
    .data-table tbody tr:nth-child(even):hover,
    .data-table tbody tr:nth-child(odd):hover {
        background: #f8f9fa !important;
    }

/* Эффект появления строк */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.data-table tbody tr {
    animation: fadeInUp 0.6s ease forwards;
}

.data-table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.data-table tbody tr:nth-child(2) { animation-delay: 0.2s; }
.data-table tbody tr:nth-child(3) { animation-delay: 0.3s; }
.data-table tbody tr:nth-child(4) { animation-delay: 0.4s; }
.data-table tbody tr:nth-child(5) { animation-delay: 0.5s; }

/* Улучшенные стили для выбранных строк */
.data-table tbody tr[data-selected="true"] {
    background: #f0f4ff !important;
    border-left: 3px solid #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.data-table tbody tr[data-selected="true"]:hover {
    background: #e8f0ff !important;
}

.data-table tbody tr[data-selected="true"] td {
    color: #000000;
    background: transparent;
    font-weight: 500;
}

/* Стили для модальных окон */
.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    color: white;
    font-weight: 600;
}

/* Кнопка "Добавить" */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Иконки в кнопках */
.btn i {
    margin-right: 8px;
    font-size: 14px;
}

/* Эффект свечения для активных элементов - удален, используем более мягкий стиль */

/* Стили для статуса пользователя */
.status-active {
    color: #4ecdc4;
    font-weight: 600;
}

.status-inactive {
    color: #ff6b6b;
    font-weight: 600;
}

/* Дополнительные градиенты для разнообразия */
.gradient-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gradient-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.gradient-3 { background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%); }
.gradient-4 { background: linear-gradient(135deg, #45b7d1 0%, #96ceb4 100%); }

/* Стили для уведомлений в дашборде */
.notification-item {
    transition: all 0.3s ease;
}

.notification-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 5px;
}

.empty-state small {
    font-size: 13px;
    color: #bbb;
} 

/* ===== МОБИЛЬНЫЙ ТАПБАР ===== */
/* Мобильная кнопка навигации */
.mobile-nav-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: none;
}

.mobile-nav-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.mobile-nav-toggle:active {
    transform: translateY(0);
}

/* Мобильный тапбар удален */

/* Адаптивность */
@media (max-width: 1024px) {
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    
    .table-container {
        padding: 15px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .badge {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    /* Мобильный тапбар удален */
}

@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
        min-height: 100vh;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 1001;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        backdrop-filter: blur(10px);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar-header {
        padding: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .sidebar-header h2 {
        font-size: 20px;
    }
    
    .nav-menu {
        padding: 20px;
        overflow-y: auto;
        max-height: calc(100vh - 100px);
    }
    
    .nav-item {
        padding: 15px 20px;
        margin-bottom: 8px;
        border-radius: 12px;
        font-size: 16px;
    }
    
    .nav-item i {
        font-size: 18px;
        margin-right: 15px;
    }
    
    .nav-item span {
        font-weight: 500;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
        margin-bottom: 80px;
        background: #ffffff;
        min-height: 100vh;
    }
    
    /* iOS-стиль для контента */
    .tab-content {
        background: #ffffff;
        padding: 16px 0;
    }
    
    .content-header {
        padding: 16px;
        background: #ffffff;
        margin-bottom: 16px;
        border-bottom: 1px solid #e5e5e5;
    }
    
    .content-header h2 {
        font-size: 28px;
        font-weight: 700;
        color: #000000;
        letter-spacing: -0.5px;
        margin: 0;
        line-height: 1.2;
    }
    
    .content-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    
    .content-header h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .table-container {
        padding: 0;
        border-radius: 0;
        margin-bottom: 0;
        box-shadow: none;
        background: #ffffff;
    }
    
    .table-container h3 {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 16px;
        margin-top: 0;
        padding: 0 16px;
        color: #000000;
        letter-spacing: -0.3px;
    }
    
    /* Контейнер для карточек */
    .table-responsive {
        padding: 0 16px 16px;
    }
    
    /* iOS-стиль карточек для таблиц */
    .data-table {
        display: block;
        width: 100%;
        border-collapse: collapse;
        background: #ffffff;
    }
    
    .data-table thead {
        display: none;
    }
    
    .data-table tbody {
        display: block;
        padding: 0;
    }
    
    .data-table tr {
        display: block;
        margin-bottom: 12px;
        border: none;
        border-radius: 16px;
        background: #ffffff !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
        padding: 0;
        position: relative;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Убираем все альтернативные цвета строк */
    .data-table tr:nth-child(even),
    .data-table tr:nth-child(odd) {
        background: #ffffff !important;
    }
    
    .data-table tr:hover {
        background: #f8f9fa !important;
    }
    
    .data-table tr:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
        background: #f0f0f0 !important;
    }
    
    .data-table tr.active,
    .data-table tr.selected,
    .data-table tr[data-selected="true"] {
        background: #f0f4ff !important;
        border-left: 3px solid #667eea;
    }
    
    .data-table tr.active:hover,
    .data-table tr.selected:hover,
    .data-table tr[data-selected="true"]:hover {
        background: #e8f0ff !important;
    }
    
    .data-table tr.active td,
    .data-table tr.selected td,
    .data-table tr[data-selected="true"] td {
        color: #000000 !important;
        background: transparent !important;
        font-weight: 500;
    }
    
    .data-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 14px 20px;
        border: none;
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
        position: relative;
        min-height: 50px;
        font-size: 15px;
        line-height: 1.5;
        background: #ffffff !important;
        color: #000000;
        font-weight: 400;
    }
    
    .data-table td:last-child {
        border-bottom: none;
    }
    
    .data-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #666666;
        font-size: 13px;
        position: static;
        flex-shrink: 0;
        margin-right: 12px;
        min-width: 100px;
        max-width: 120px;
        text-transform: none;
        letter-spacing: -0.1px;
    }
    
    .data-table td > *:not(:first-child),
    .data-table td > div,
    .data-table td > span,
    .data-table td > strong,
    .data-table td > a {
        flex: 1;
        text-align: right;
        color: #000000;
        font-weight: 500;
        word-break: break-word;
    }
    
    .data-table td strong {
        font-weight: 700;
        color: #000000;
    }
    
    /* Единый стиль для всех типов таблиц */
    .data-table tr[data-order-id],
    .data-table tr[data-user-id],
    .data-table tr[data-category-id] {
        background: #ffffff !important;
        margin-bottom: 12px;
    }
    
    /* Убираем градиенты и разные цвета - все белое */
    .data-table tr {
        background: #ffffff !important;
    }
    
    /* Бейджи и статусы внутри карточек */
    .data-table td .badge,
    .data-table td .status-badge {
        display: inline-flex;
        align-items: center;
        padding: 4px 10px;
        font-size: 12px;
        border-radius: 12px;
        font-weight: 500;
        margin: 0;
    }
    
    /* Кнопки действий внутри карточек */
    .data-table td .action-buttons,
    .data-table td .btn-sm {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .badge {
        display: inline-flex;
        align-items: center;
        padding: 4px 10px;
        font-size: 12px;
        border-radius: 12px;
        font-weight: 500;
        text-transform: none;
        letter-spacing: -0.1px;
        margin: 0;
        line-height: 1.3;
    }
    
    .btn-sm {
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 10px;
        margin: 0 4px 0 0;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 500;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn-sm:active {
        opacity: 0.7;
        transform: scale(0.95);
    }
    
    .btn-sm i {
        margin-right: 6px;
        font-size: 14px;
    }
    
    /* Группировка кнопок действий */
    .action-buttons {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .data-table tr {
        animation: slideInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .data-table tr:nth-child(1) { animation-delay: 0.05s; }
    .data-table tr:nth-child(2) { animation-delay: 0.1s; }
    .data-table tr:nth-child(3) { animation-delay: 0.15s; }
    .data-table tr:nth-child(4) { animation-delay: 0.2s; }
    .data-table tr:nth-child(5) { animation-delay: 0.25s; }
    
    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .mobile-user-card {
        background: white;
        border-radius: 15px;
        padding: 20px;
        margin-bottom: 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        border: 1px solid #e1e5e9;
    }
    
    .mobile-user-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 24px;
        margin-bottom: 15px;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    
    .mobile-user-info {
        margin-bottom: 15px;
    }
    
    .mobile-user-name {
        font-size: 18px;
        font-weight: 600;
        color: #000000;
        margin-bottom: 5px;
    }
    
    .mobile-user-details {
        color: #000000;
        font-size: 14px;
        line-height: 1.4;
        opacity: 0.7;
    }
    
    .mobile-user-actions {
        display: flex;
        gap: 10px;
        justify-content: center;
    }
    
    .modal-content {
        margin: 20px;
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 20px;
        border-bottom: 1px solid #e1e5e9;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-input {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .btn-sm {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    .badge {
        padding: 6px 12px;
        font-size: 11px;
        border-radius: 20px;
    }
    
    .message {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1000;
        max-width: 300px;
    }
    
    .filters {
        flex-direction: column;
        gap: 12px;
        padding: 0 16px 16px;
        background: #ffffff;
        margin-bottom: 16px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-input,
    .search-input,
    .filter-select {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 12px;
        border: 1px solid #e5e5e5;
        background: #ffffff;
        color: #000000;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .filter-input:focus,
    .search-input:focus,
    .filter-select:focus {
        outline: none;
        background: #ffffff;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }
    
    .filter-input::placeholder,
    .search-input::placeholder {
        color: #999999;
        opacity: 0.7;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .main-content {
        padding: 5px;
    }
    
    .content-header {
        padding: 10px 5px;
    }
    
    .content-header h2 {
        font-size: 18px;
    }
    
    .table-container {
        padding: 8px;
        margin: 3px 0;
    }
    
    .table-container h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .data-table tr {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .data-table td {
        padding: 8px 0;
        padding-left: 90px;
        min-height: 40px;
        font-size: 12px;
    }
    
    .data-table td:before {
        width: 80px;
        font-size: 10px;
        top: 8px;
    }
    
    .badge {
        padding: 5px 8px;
        font-size: 10px;
    }
    
    .btn-sm {
        padding: 6px 10px;
        font-size: 10px;
        min-width: 36px;
        min-height: 36px;
    }
    
    .mobile-user-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .mobile-user-name {
        font-size: 14px;
    }
    
    .mobile-user-details {
        font-size: 11px;
    }
    
    .nav-item {
        padding: 6px 10px;
        min-width: 80px;
        font-size: 10px;
    }
    
    .nav-item i {
        font-size: 10px;
        margin-right: 2px;
    }
    
    .nav-item span {
        font-size: 9px;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .sidebar {
        height: 60px;
    }
    
    .nav-menu {
        flex-direction: row;
        justify-content: center;
        height: 100%;
    }
    
    .nav-item {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-content {
        margin-top: 60px;
    }
}

/* Темная тема для мобильных */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .table-container {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .data-table tr {
        background: #34495e;
        border-color: #4a5f7a;
        color: #ecf0f1;
    }
    
    .mobile-user-name {
        color: #ecf0f1;
    }
    
    .mobile-user-details {
        color: #bdc3c7;
    }
    
    .modal-content {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .form-input {
        background: #34495e;
        border-color: #4a5f7a;
        color: #ecf0f1;
    }
    
    .form-input:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
    }
}

/* Анимации для мобильных */
@media (max-width: 768px) {
    .data-table tbody tr {
        animation: slideInUp 0.4s ease forwards;
    }
    
    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-item {
        transition: all 0.3s ease;
    }
    
    .nav-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .btn-sm {
        transition: all 0.3s ease;
    }
    
    .btn-sm:hover {
        transform: scale(1.1);
    }
}

/* Улучшенные стили для мобильных */
@media (max-width: 768px) {
    .btn:focus,
    .nav-item:focus,
    .tabbar-item:focus {
        outline: 2px solid #667eea;
        outline-offset: 2px;
    }
    
    .form-input:focus {
        outline: 2px solid #667eea;
        outline-offset: 2px;
        border-color: #667eea;
    }
    
    .btn,
    .nav-item,
    .tabbar-item {
        -webkit-tap-highlight-color: transparent;
    }
    
    .data-table td {
        word-break: break-word;
    }
    
    .mobile-user-name {
        word-break: break-word;
    }
} 

/* Анимация блеска для интерактивных элементов */
@keyframes shine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
} 

/* Улучшенные стили для мобильных кнопок */
@media (max-width: 768px) {
    .btn {
        position: relative;
        overflow: hidden;
    }
    
    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }
    
    .btn:active::before {
        left: 100%;
    }
    
    .btn-sm {
        position: relative;
        overflow: hidden;
    }
    
    .btn-sm::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.3s;
    }
    
    .btn-sm:active::before {
        left: 100%;
    }
}

/* Shake Animation for Login Errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.6s ease-in-out;
}

/* Enhanced Mobile Header Styles */
@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .content-header h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .content-header .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    /* Mobile Navigation Header */
    .mobile-nav-toggle {
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1001;
        background: #667eea;
        color: white;
        border: none;
        padding: 12px;
        border-radius: 8px;
        font-size: 18px;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }
    
    .mobile-nav-toggle:hover {
        background: #5a67d8;
        transform: scale(1.05);
    }
    
    .main-content {
        padding-top: 70px;
    }
}

/* Enhanced Message Styles */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message.success {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.message.error {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.message.info {
    background: linear-gradient(135deg, #4299e1, #3182ce);
}

.message.warning {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.message-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-icon {
    font-size: 18px;
}

.message-text {
    flex: 1;
    line-height: 1.4;
}

.message-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.message-close:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .message {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
} 