/* Admin Panel Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --admin-primary: #6366f1;
    --admin-primary-dark: #4f46e5;
    --admin-secondary: #f59e0b;
    --admin-success: #10b981;
    --admin-danger: #ef4444;
    --admin-warning: #f59e0b;
    --admin-info: #3b82f6;
    --admin-light: #f8fafc;
    --admin-dark: #1e293b;
    --admin-gray: #64748b;
    --admin-border: #e2e8f0;
    --admin-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --admin-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--admin-light);
    color: var(--admin-dark);
    line-height: 1.6;
}

/* Admin Header */
.admin-header {
    background: white;
    box-shadow: var(--admin-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 100%;
}

.admin-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--admin-primary);
}

.admin-logo i {
    margin-right: 0.5rem;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-nav-link {
    color: var(--admin-gray);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-nav-link:hover {
    background: var(--admin-light);
    color: var(--admin-primary);
}

.admin-logout {
    background: var(--admin-danger);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-logout:hover {
    background: #dc2626;
}

/* Admin Sidebar */
.admin-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 250px;
    height: calc(100vh - 60px);
    background: white;
    box-shadow: var(--admin-shadow);
    z-index: 999;
}

.admin-menu-list {
    list-style: none;
    padding: 1rem 0;
}

.admin-menu-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--admin-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.admin-menu-item:hover {
    background: var(--admin-light);
    color: var(--admin-primary);
}

.admin-menu-item.active {
    background: var(--admin-light);
    color: var(--admin-primary);
    border-left-color: var(--admin-primary);
}

.admin-menu-item i {
    margin-right: 0.75rem;
    width: 20px;
}

/* Admin Main Content */
.admin-main {
    margin-left: 250px;
    margin-top: 60px;
    padding: 2rem;
    min-height: calc(100vh - 60px);
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-section-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.admin-section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--admin-dark);
}

.admin-section-header p {
    color: var(--admin-gray);
    margin-top: 0.5rem;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--admin-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: var(--admin-primary);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--admin-dark);
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--admin-gray);
    font-size: 0.9rem;
}

/* Dashboard Charts */
.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--admin-shadow);
}

.chart-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--admin-dark);
}

.chart-content {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-gray);
}

/* Forms */
.admin-input,
.admin-select,
.admin-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--admin-border);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    background: white;
}

.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus {
    outline: none;
    border-color: var(--admin-primary);
}

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

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--admin-dark);
}

.form-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.form-row input {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem;
    border: var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-alpha);
}

.form-row input[type="color"] {
    width: 60px;
    height: 40px;
    min-width: auto;
    border-radius: 8px;
    cursor: pointer;
}

.btn-success {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.btn-success i {
    margin-right: 0.5rem;
}display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--admin-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--admin-primary-dark);
}

.btn-secondary {
    background: var(--admin-gray);
    color: white;
}

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

.btn-success {
    background: var(--admin-success);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--admin-danger);
    color: white;
}

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

.btn-warning {
    background: var(--admin-warning);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

/* Tables */
.admin-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--admin-shadow);
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--admin-border);
}

/* Compact movie table specific styles - only for posters */
.movies-table-container .admin-table th,
.movies-table-container .admin-table td {
    padding: 1rem;
}

.admin-table th {
    background: var(--admin-light);
    font-weight: 600;
    color: var(--admin-dark);
}

.admin-table tbody tr:hover {
    background: var(--admin-light);
}

/* Compact movie table elements - only smaller posters */
.movie-poster-compact {
    width: 40px !important;
    height: 60px !important;
    object-fit: cover;
    border-radius: 4px;
}

/* Filters */
.movies-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: end;
}

.movies-filters .admin-input {
    flex: 1;
}

.movies-filters .admin-select {
    width: 200px;
}

/* Grids */
.categories-grid,
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.category-card,
.collection-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--admin-shadow);
    transition: transform 0.3s ease;
}

.category-card:hover,
.collection-card:hover {
    transform: translateY(-2px);
}

.category-card h3,
.collection-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--admin-dark);
}

.category-card p,
.collection-card p {
    color: var(--admin-gray);
    margin-bottom: 1rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

/* Media Library */
.media-upload-area {
    margin-bottom: 2rem;
}

.upload-zone {
    border: 2px dashed var(--admin-border);
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: var(--admin-primary);
    background: var(--admin-light);
}

.upload-zone i {
    font-size: 3rem;
    color: var(--admin-gray);
    margin-bottom: 1rem;
}

.upload-zone p {
    color: var(--admin-gray);
    font-size: 1.1rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.media-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--admin-shadow);
    transition: transform 0.3s ease;
}

.media-item:hover {
    transform: translateY(-2px);
}

.media-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.media-item-info {
    padding: 1rem;
}

.media-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--admin-dark);
}

.media-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--admin-shadow-lg);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--admin-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--admin-gray);
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: var(--admin-light);
}

.modal-body {
    padding: 1.5rem;
}

/* Settings Form */
.settings-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--admin-shadow);
    max-width: 600px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .form-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.form-row input {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem;
    border: var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-alpha);
}

.form-row input[type="color"] {
    width: 60px;
    height: 40px;
    min-width: auto;
    border-radius: 8px;
    cursor: pointer;
}

.btn-success {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.btn-success i {
    margin-right: 0.5rem;
}    grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    
    .categories-grid,
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .movies-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .movies-filters .admin-select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .admin-main {
        padding: 1rem;
    }
    
    .admin-section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--admin-border);
    border-top: 4px solid var(--admin-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-shipped {
    background: #d1fae5;
    color: #065f46;
}

.status-delivered {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Action Buttons */
.action-btn {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: scale(1.05);
}

.action-edit {
    background: var(--admin-info);
    color: white;
}

.action-delete {
    background: var(--admin-danger);
    color: white;
}

.action-view {
    background: var(--admin-success);
    color: white;
}

/* Image Upload Styles */
.image-upload-container {
    border: 2px dashed var(--admin-border);
    border-radius: 8px;
    padding: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.image-upload-container:hover {
    border-color: var(--admin-primary);
    background: #f8fafc;
}

.image-preview {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

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

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

.upload-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upload-zone {
    border: 2px dashed var(--admin-border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.upload-zone:hover {
    border-color: var(--admin-primary);
    background: #f0f9ff;
}

.upload-zone i {
    font-size: 2rem;
    color: var(--admin-primary);
    margin-bottom: 0.5rem;
}

.upload-zone p {
    margin: 0.5rem 0;
    color: var(--admin-gray);
    font-weight: 500;
}

.upload-zone small {
    color: var(--admin-gray);
    font-size: 0.8rem;
}

.upload-zone.dragover {
    border-color: var(--admin-primary);
    background: #f0f9ff;
    transform: scale(1.02);
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--admin-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

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

/* Success/Error states */
.upload-success {
    border-color: var(--admin-success);
    background: #f0fdf4;
}

.upload-error {
    border-color: var(--admin-danger);
    background: #fef2f2;
}

/* OMDb Status Panel */
.omdb-status-panel {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--admin-border);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.omdb-status-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.omdb-status-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.omdb-status-header h3 i {
    margin-right: 0.5rem;
}

.omdb-status-content {
    padding: 1.5rem;
}

.omdb-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.omdb-status-label {
    font-weight: 500;
    color: var(--admin-gray);
}

.omdb-status-value {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.omdb-status-value.connected,
.omdb-status-value.configured,
.omdb-status-value.active {
    background: #dcfce7;
    color: #166534;
}

.omdb-status-value.disconnected,
.omdb-status-value.not-configured,
.omdb-status-value.error {
    background: #fee2e2;
    color: #dc2626;
}

.omdb-status-value.checking {
    background: #fef3c7;
    color: #d97706;
}

/* Mass sync button special styling */
.btn.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.btn.btn-success i {
    margin-right: 0.5rem;
}

.btn.btn-success.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn.btn-success.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    to {
        left: 100%;
    }
}

/* Dark theme TMDB status */
.dark .tmdb-status-panel {
    background: var(--admin-dark);
    border-color: #374151;
}

.dark .omdb-status-item {
    border-bottom-color: #374151;
}

.dark .omdb-status-label {
    color: #9ca3af;
}

@media (max-width: 768px) {
    .omdb-status-header {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .omdb-status-content {
        padding: 1rem;
    }
    
    .omdb-status-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ==================== ENHANCED MOVIE MODAL STYLES ==================== */

.enhanced-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(4px);
    }
}

.enhanced-modal .modal-content {
    background: white;
    border-radius: 16px;
    width: 95%;
    max-width: 900px;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.enhanced-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.enhanced-modal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.modal-header-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-header-content h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.status-indicator {
    font-size: 0.5rem;
    color: #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.enhanced-modal .modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.enhanced-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.enhanced-modal .modal-body {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    background: #f8fafc;
}

.enhanced-form {
    padding: 2rem;
}

/* Form Progress */
.form-progress {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 25%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.step {
    flex: 1;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.step i {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.step:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.step.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.step.completed {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.step.completed:hover {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
}

.step.has-content {
    position: relative;
}

.step.has-content::after {
    content: '●';
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    color: #10b981;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Form Sections */
.form-section {
    display: none;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.form-section.active {
    display: block;
    animation: sectionFadeIn 0.3s ease-out;
}

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

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.section-header h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #667eea;
    width: 16px;
}

.form-input,
.form-textarea,
.form-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: white;
}

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

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

.field-validation {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

.field-hint {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Input Groups */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 1rem;
    color: #64748b;
    font-weight: 500;
    z-index: 1;
}

.input-group .form-input {
    padding-left: 2.5rem;
}

/* File Upload */
.file-upload-container {
    margin-bottom: 1rem;
}

.file-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.file-upload-area.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.upload-content i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
    display: block;
}

.upload-content p {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    color: #374151;
}

.file-types {
    font-size: 0.75rem;
    color: #64748b;
}

.image-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.remove-image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.url-alternative {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.url-alternative label {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

/* Toggle Switches */
.toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.toggle-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.toggle-item input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-item input[type="checkbox"]:checked + .toggle-slider {
    background: #667eea;
}

.toggle-item input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-label i {
    color: #667eea;
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.collection-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.collection-checkbox:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.collection-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.collection-checkbox input[type="checkbox"]:checked + .collection-label {
    color: #667eea;
    font-weight: 600;
}

.collection-label {
    font-size: 0.875rem;
    color: #374151;
    transition: all 0.3s ease;
}

/* Modal Footer */
.enhanced-modal .modal-footer {
    padding: 1.5rem 2rem;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.footer-left,
.footer-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

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

.btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #374151;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

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

/* Dark Theme */
[data-theme="dark"] .enhanced-modal .modal-content {
    background: #1e293b;
    color: white;
}

[data-theme="dark"] .enhanced-modal .modal-body {
    background: #0f172a;
}

[data-theme="dark"] .form-section {
    background: #1e293b;
    color: white;
}

[data-theme="dark"] .section-header h4 {
    color: white;
}

[data-theme="dark"] .section-header p {
    color: #94a3b8;
}

[data-theme="dark"] .form-group label {
    color: #e2e8f0;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea,
[data-theme="dark"] .form-select {
    background: #334155;
    border-color: #475569;
    color: white;
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus,
[data-theme="dark"] .form-select:focus {
    border-color: #667eea;
    background: #475569;
}

[data-theme="dark"] .file-upload-area {
    background: #334155;
    border-color: #475569;
}

[data-theme="dark"] .file-upload-area:hover {
    background: rgba(102, 126, 234, 0.1);
}

[data-theme="dark"] .toggle-item {
    background: #334155;
    border-color: #475569;
}

[data-theme="dark"] .toggle-item:hover {
    background: #475569;
}

[data-theme="dark"] .toggle-label {
    color: #e2e8f0;
}

[data-theme="dark"] .collection-checkbox {
    background: #334155;
    border-color: #475569;
}

[data-theme="dark"] .collection-checkbox:hover {
    background: rgba(102, 126, 234, 0.1);
}

[data-theme="dark"] .collection-label {
    color: #e2e8f0;
}

[data-theme="dark"] .enhanced-modal .modal-footer {
    background: #1e293b;
    border-color: #475569;
}

/* Responsive */
@media (max-width: 768px) {
    .enhanced-modal .modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
    }
    
    .enhanced-modal .modal-header {
        padding: 1.5rem;
    }
    
    .enhanced-modal .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .enhanced-form {
        padding: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .step {
        text-align: left;
        padding: 0.75rem;
    }
    
    .toggle-group {
        flex-direction: column;
    }
    
    .toggle-item {
        min-width: auto;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .enhanced-modal .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-left,
    .footer-right {
        width: 100%;
        justify-content: center;
    }
    
    .btn {
        flex: 1;
        justify-content: center;
    }
}

/* ==================== LEGACY MODAL STYLES ==================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #e1e5e9;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
    background: white;
}

.modal-footer {
    padding: 1.5rem 2rem;
    background: white;
    border-radius: 0 0 8px 8px;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-shrink: 0;
    border-top: 1px solid #e1e5e9;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.form-row input {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem;
    border: var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-alpha);
}

.form-row input[type="color"] {
    width: 60px;
    height: 40px;
    min-width: auto;
    border-radius: 8px;
    cursor: pointer;
}

.btn-success {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.btn-success i {
    margin-right: 0.5rem;
}display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.form-section h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.collections-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.collections-list label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 0;
    border: 1px solid #e1e5e9;
}

.collections-list label:hover {
    background: #e8eaed;
}

.collections-list input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.collections-list input[type="checkbox"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--admin-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: white;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e1e5e9;
    box-shadow: 0 0 0 3px rgba(225, 229, 233, 0.3);
}

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

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.form-group input[type="number"] {
    text-align: right;
}

.collections-list {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    background: #f8f9fa;
}

.collection-checkbox {
    display: flex;
    align-items: center;
    padding: 0.4rem;
}

.collection-checkbox-input {
    margin-right: 0.75rem !important;
}

/* Dark theme modal */
.dark .modal-content {
    background-color: var(--admin-dark);
    color: var(--admin-text);
}

.dark .modal-header {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.dark .modal-footer {
    background-color: #2d3748;
}

.dark .form-group input,
.dark .form-group select,
.dark .form-group textarea {
    background-color: #4a5568;
    border-color: #718096;
    color: var(--admin-text);
}

.dark .form-group input:focus,
.dark .form-group select:focus,
.dark .form-group textarea:focus {
    border-color: #667eea;
    background-color: #4a5568;
}

.dark .collections-list {
    background-color: #2d3748;
    border-color: #718096;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* ==================== CATEGORIES & COLLECTIONS GRID ==================== */

.categories-grid,
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.category-card,
.collection-card {
    background: white;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.category-card:hover,
.collection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-info,
.collection-info {
    margin-bottom: 1rem;
}

.category-info h3,
.collection-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--admin-text);
}

.category-info p,
.collection-info p {
    margin: 0 0 0.5rem 0;
    color: var(--admin-gray);
    font-size: 0.9rem;
}

.collection-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-actions,
.collection-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.action-btn.danger {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.action-btn.danger:hover {
    background: #b91c1c;
}

.action-btn.success {
    background: #059669;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.action-btn.success:hover {
    background: #047857;
}

/* Dark theme for categories/collections */
.dark .category-card,
.dark .collection-card {
    background-color: var(--admin-dark);
    border-color: #374151;
}

.dark .category-info p,
.dark .collection-info p {
    color: #9ca3af;
}

/* Responsive grid */
@media (max-width: 768px) {
    .categories-grid,
    .collections-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-card,
    .collection-card {
        padding: 1rem;
    }
}

/* ============= СТИЛИ МОДАЛЬНОГО ОКНА ФИЛЬМОВ ============= */

/* Модальное окно - фиксированное позиционирование по центру */
.modal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 2000 !important;
    overflow-y: auto !important;
    padding: 20px !important;
}

.modal-content {
    position: relative !important;
    background-color: white !important;
    margin: 50px auto !important;
    max-width: 600px !important;
    width: 90% !important;
    border-radius: 10px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    animation: modalSlideIn 0.3s ease-out !important;
    overflow: hidden !important;
}

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

.modal-header {
    background: var(--admin-primary) !important;
    color: white !important;
    padding: 1.5rem !important;
    border-bottom: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.modal-header h3 {
    margin: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
}

.modal-close {
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: background-color 0.2s ease !important;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.modal-body {
    padding: 2rem !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
}

.modal-footer {
    padding: 1.5rem 2rem !important;
    background-color: #f8fafc !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 1rem !important;
}

/* Форма фильма */
.form-group {
    margin-bottom: 1.5rem !important;
}

.form-group:last-child {
    margin-bottom: 0 !important;
}

.form-group label {
    display: block !important;
    margin-bottom: 0.5rem !important;
    font-weight: 500 !important;
    color: var(--admin-dark) !important;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100% !important;
    padding: 0.75rem !important;
    border: 2px solid var(--admin-border) !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    transition: border-color 0.2s ease !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none !important;
    border-color: var(--admin-primary) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

.form-group input[type="checkbox"] {
    width: auto !important;
    margin-right: 0.5rem !important;
}

/* Коллекции чекбоксы */
.collections-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 0.5rem !important;
    margin-top: 0.5rem !important;
}

.collection-checkbox {
    display: flex !important;
    align-items: center !important;
    padding: 0.5rem !important;
    border: 1px solid var(--admin-border) !important;
    border-radius: 6px !important;
    transition: background-color 0.2s ease !important;
}

.collection-checkbox:hover {
    background-color: #f8fafc !important;
}

.collection-checkbox input[type="checkbox"] {
    margin-right: 0.5rem !important;
}

.collection-checkbox label {
    margin-bottom: 0 !important;
    cursor: pointer !important;
    font-weight: normal !important;
}

/* Dark theme */
[data-theme="dark"] .modal-content {
    background-color: var(--admin-dark) !important;
    color: white !important;
}

[data-theme="dark"] .form-group label {
    color: white !important;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: white !important;
}

[data-theme="dark"] .modal-footer {
    background-color: #374151 !important;
}

[data-theme="dark"] .collection-checkbox {
    border-color: #4b5563 !important;
}

[data-theme="dark"] .collection-checkbox:hover {
    background-color: #374151 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .modal {
        padding: 10px !important;
    }
    
    .modal-content {
        width: 95% !important;
        margin: 20px auto !important;
    }
    
    .modal-body {
        padding: 1rem !important;
    }
    
    .collections-list {
        grid-template-columns: 1fr !important;
    }
}

/* Quick Add Forms */
.quick-add-form {
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.quick-add-form h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.form-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.form-row input {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem;
    border: var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-alpha);
}

.form-row input[type="color"] {
    width: 60px;
    height: 40px;
    min-width: auto;
    border-radius: 8px;
    cursor: pointer;
}

.btn-success {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.btn-success i {
    margin-right: 0.5rem;
}

 
 
/* ===== POSTER HUNTER STYLES ===== */

/* PosterHunter Status Panel */
.poster-hunter-status-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.poster-hunter-status-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.poster-hunter-status-header h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.poster-hunter-status-header h3 i {
    color: #fbbf24;
    font-size: 1.2rem;
}

.poster-hunter-status-content {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.poster-hunter-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.poster-hunter-status-item:last-child {
    grid-column: 1 / -1;
    justify-content: center;
    text-align: center;
}

.poster-hunter-status-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
}

.poster-hunter-status-value {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.poster-hunter-status-value.high-success {
    background: rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.5);
    color: #10b981;
}

.poster-hunter-status-value.medium-success {
    background: rgba(245, 158, 11, 0.3);
    border-color: rgba(245, 158, 11, 0.5);
    color: #f59e0b;
}

.poster-hunter-status-value.low-success {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.poster-hunter-status-value.checking {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
    color: #3b82f6;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Dark theme PosterHunter status */
.dark .poster-hunter-status-panel {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: #475569;
}

.dark .poster-hunter-status-header {
    background: rgba(30, 41, 59, 0.8);
    border-bottom-color: #475569;
}

.dark .poster-hunter-status-item {
    background: rgba(30, 41, 59, 0.6);
    border-color: #475569;
}

.dark .poster-hunter-status-label {
    color: #cbd5e1;
}

.dark .poster-hunter-status-value {
    background: rgba(30, 41, 59, 0.8);
    border-color: #475569;
    color: #f1f5f9;
}

/* Responsive PosterHunter */
@media (max-width: 768px) {
    .poster-hunter-status-header {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .poster-hunter-status-content {
        padding: 1rem;
        grid-template-columns: 1fr;
    }
    
    .poster-hunter-status-item {
        padding: 0.5rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .poster-hunter-status-item:last-child {
        grid-column: 1;
    }
}

/* Bulk Actions Panel */
.bulk-actions-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: var(--shadow);
    animation: slideDown 0.3s ease-out;
}

.bulk-actions-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.bulk-selection-info {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1rem;
}

.bulk-actions-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bulk-actions-buttons .btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.375rem;
}

/* Movie selection checkbox */
.movie-checkbox {
    transform: scale(1.2);
    cursor: pointer;
}

.movie-row-selected {
    background-color: rgba(74, 158, 255, 0.1) !important;
    border-left: 3px solid var(--accent-color);
}

.movie-row-selected td {
    border-color: rgba(74, 158, 255, 0.2);
}

/* Animation for bulk panel */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============= DARK THEME FOR ADMIN PANEL ============= */

[data-theme="dark"] {
    --admin-primary: #6366f1;
    --admin-primary-dark: #4f46e5;
    --admin-secondary: #f59e0b;
    --admin-success: #10b981;
    --admin-danger: #ef4444;
    --admin-warning: #f59e0b;
    --admin-info: #3b82f6;
    --admin-light: #1e293b;
    --admin-dark: #f8fafc;
    --admin-gray: #94a3b8;
    --admin-border: #334155;
    --admin-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --admin-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] body {
    background-color: var(--admin-light);
    color: var(--admin-dark);
}

[data-theme="dark"] .admin-header {
    background: #1e293b;
    border-bottom: 1px solid var(--admin-border);
}

[data-theme="dark"] .admin-header h1 {
    color: var(--admin-dark);
}

[data-theme="dark"] .admin-nav-link {
    color: var(--admin-gray);
}

[data-theme="dark"] .admin-nav-link:hover {
    color: var(--admin-primary);
}

[data-theme="dark"] .admin-logout {
    color: var(--admin-gray);
}

[data-theme="dark"] .admin-logout:hover {
    color: var(--admin-danger);
}

[data-theme="dark"] .admin-sidebar {
    background: #0f172a;
    border-right: 1px solid var(--admin-border);
}

[data-theme="dark"] .admin-menu-item {
    color: var(--admin-gray);
}

[data-theme="dark"] .admin-menu-item:hover,
[data-theme="dark"] .admin-menu-item.active {
    color: var(--admin-primary);
    background: #1e293b;
}

[data-theme="dark"] .admin-main {
    background: var(--admin-light);
}

[data-theme="dark"] .admin-section-header h2 {
    color: var(--admin-dark);
}

[data-theme="dark"] .admin-table {
    background: #1e293b;
    border: 1px solid var(--admin-border);
}

[data-theme="dark"] .admin-table th {
    background: #0f172a;
    color: var(--admin-dark);
    border-bottom: 1px solid var(--admin-border);
}

[data-theme="dark"] .admin-table td {
    color: var(--admin-gray);
    border-bottom: 1px solid var(--admin-border);
}

[data-theme="dark"] .form-group label {
    color: var(--admin-dark);
}

[data-theme="dark"] .form-control {
    background: #0f172a;
    border: 1px solid var(--admin-border);
    color: var(--admin-dark);
}

[data-theme="dark"] .form-control:focus {
    background: #1e293b;
    border-color: var(--admin-primary);
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--admin-gray);
}

[data-theme="dark"] .btn {
    background: var(--admin-primary);
    color: white;
    border: 1px solid var(--admin-primary);
}

[data-theme="dark"] .btn:hover {
    background: var(--admin-primary-dark);
    border-color: var(--admin-primary-dark);
}

[data-theme="dark"] .btn-secondary {
    background: #0f172a;
    color: var(--admin-dark);
    border: 1px solid var(--admin-border);
}

[data-theme="dark"] .btn-secondary:hover {
    background: #1e293b;
    border-color: var(--admin-primary);
}

[data-theme="dark"] .btn-success {
    background: var(--admin-success);
    color: white;
    border: 1px solid var(--admin-success);
}

[data-theme="dark"] .btn-warning {
    background: var(--admin-warning);
    color: white;
    border: 1px solid var(--admin-warning);
}

[data-theme="dark"] .btn-danger {
    background: var(--admin-danger);
    color: white;
    border: 1px solid var(--admin-danger);
}

[data-theme="dark"] .btn-info {
    background: var(--admin-info);
    color: white;
    border: 1px solid var(--admin-info);
}

[data-theme="dark"] .notification {
    background: #1e293b;
    border: 1px solid var(--admin-border);
    color: var(--admin-dark);
}

[data-theme="dark"] .notification.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--admin-success);
    color: var(--admin-success);
}

[data-theme="dark"] .notification.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--admin-danger);
    color: var(--admin-danger);
}

[data-theme="dark"] .notification.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--admin-warning);
    color: var(--admin-warning);
}

[data-theme="dark"] .notification.info {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--admin-info);
    color: var(--admin-info);
}

[data-theme="dark"] .modal-content {
    background: #1e293b;
    border: 1px solid var(--admin-border);
}

[data-theme="dark"] .modal-header {
    border-bottom: 1px solid var(--admin-border);
}

[data-theme="dark"] .modal-title {
    color: var(--admin-dark);
}

[data-theme="dark"] .modal-close {
    color: var(--admin-gray);
}

[data-theme="dark"] .modal-close:hover {
    color: var(--admin-dark);
}

[data-theme="dark"] .modal-body {
    color: var(--admin-gray);
}

[data-theme="dark"] .modal-footer {
    border-top: 1px solid var(--admin-border);
}

[data-theme="dark"] .status-panel {
    background: #1e293b;
    border: 1px solid var(--admin-border);
}

[data-theme="dark"] .status-panel-header {
    background: #0f172a;
    border-bottom: 1px solid var(--admin-border);
}

[data-theme="dark"] .status-panel-title {
    color: var(--admin-dark);
}

[data-theme="dark"] .status-panel-content {
    color: var(--admin-gray);
}

[data-theme="dark"] .status-item-label {
    color: var(--admin-gray);
}

[data-theme="dark"] .status-item-value {
    color: var(--admin-dark);
}

[data-theme="dark"] .bulk-actions-panel {
    background: #1e293b;
    border: 1px solid var(--admin-border);
}

[data-theme="dark"] .bulk-selection-info {
    color: var(--admin-primary);
}

[data-theme="dark"] .movie-row-selected {
    background-color: rgba(99, 102, 241, 0.1) !important;
    border-left: 3px solid var(--admin-primary);
}

[data-theme="dark"] .movie-row-selected td {
    border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .movie-checkbox {
    accent-color: var(--admin-primary);
}

[data-theme="dark"] .category-badge {
    color: white !important;
}

[data-theme="dark"] .stock-badge {
    color: white !important;
}

[data-theme="dark"] .rating-display {
    color: var(--admin-gray);
}

[data-theme="dark"] .movie-meta {
    color: var(--admin-gray);
}

/* Темная тема для всех изображений в таблице */
[data-theme="dark"] .admin-table td:first-child img,
[data-theme="dark"] .admin-table .movie-poster-compact,
[data-theme="dark"] .admin-table img[class*="poster"],
[data-theme="dark"] .admin-table img[alt*="movie"],
[data-theme="dark"] .admin-table img[alt*="Movie"] {
    border: 2px solid var(--admin-border) !important;
    background: #0f172a !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .admin-table td:first-child img:hover,
[data-theme="dark"] .admin-table .movie-poster-compact:hover,
[data-theme="dark"] .admin-table img[class*="poster"]:hover,
[data-theme="dark"] .admin-table img[alt*="movie"]:hover,
[data-theme="dark"] .admin-table img[alt*="Movie"]:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important;
    border-color: var(--admin-primary) !important;
}

[data-theme="dark"] .admin-table td:first-child img[src*="data:image/svg"],
[data-theme="dark"] .admin-table .movie-poster-compact[src*="data:image/svg"],
[data-theme="dark"] .admin-table img[class*="poster"][src*="data:image/svg"],
[data-theme="dark"] .admin-table img[alt*="movie"][src*="data:image/svg"],
[data-theme="dark"] .admin-table img[alt*="Movie"][src*="data:image/svg"] {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border: 2px dashed var(--admin-border) !important;
}

[data-theme="dark"] .action-btn {
    color: var(--admin-gray);
}

[data-theme="dark"] .action-btn:hover {
    color: var(--admin-primary);
}

[data-theme="dark"] .action-btn.action-delete:hover {
    color: var(--admin-danger);
}

[data-theme="dark"] .admin-input {
    background: #0f172a;
    border: 1px solid var(--admin-border);
    color: var(--admin-dark);
}

[data-theme="dark"] .admin-input:focus {
    background: #1e293b;
    border-color: var(--admin-primary);
}

[data-theme="dark"] .admin-input::placeholder {
    color: var(--admin-gray);
}

[data-theme="dark"] .admin-select {
    background: #0f172a;
    border: 1px solid var(--admin-border);
    color: var(--admin-dark);
}

[data-theme="dark"] .admin-select:focus {
    background: #1e293b;
    border-color: var(--admin-primary);
}

[data-theme="dark"] .movies-filters {
    background: #1e293b;
    border: 1px solid var(--admin-border);
}

[data-theme="dark"] .theme-toggle {
    color: var(--admin-gray);
}

[data-theme="dark"] .theme-toggle:hover {
    color: var(--admin-primary);
}

/* ============= DASHBOARD STYLES ============= */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--admin-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--admin-shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: var(--admin-primary);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--admin-dark);
    margin: 0;
    line-height: 1;
}

.stat-content p {
    color: var(--admin-gray);
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.chart-card {
    background: white;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--admin-shadow);
}

.chart-card h3 {
    color: var(--admin-dark);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.chart-content {
    color: var(--admin-gray);
}

.recent-order {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.recent-order:last-child {
    border-bottom: none;
}

.order-info {
    display: flex;
    flex-direction: column;
}

.order-info strong {
    color: var(--admin-dark);
    font-weight: 600;
}

.order-customer {
    color: var(--admin-gray);
    font-size: 0.9rem;
}

.order-total {
    color: var(--admin-primary);
    font-weight: 600;
}

.order-status {
    margin-left: 1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--admin-warning);
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--admin-success);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--admin-danger);
}

/* Dark theme for dashboard */
[data-theme="dark"] .stat-card {
    background: #1e293b;
    border: 1px solid var(--admin-border);
}

[data-theme="dark"] .stat-content h3 {
    color: var(--admin-dark);
}

[data-theme="dark"] .stat-content p {
    color: var(--admin-gray);
}

[data-theme="dark"] .chart-card {
    background: #1e293b;
    border: 1px solid var(--admin-border);
}

[data-theme="dark"] .chart-card h3 {
    color: var(--admin-dark);
}

[data-theme="dark"] .chart-content {
    color: var(--admin-gray);
}

[data-theme="dark"] .recent-order {
    border-bottom: 1px solid var(--admin-border);
}

[data-theme="dark"] .order-info strong {
    color: var(--admin-dark);
}

[data-theme="dark"] .order-customer {
    color: var(--admin-gray);
}

[data-theme="dark"] .order-total {
    color: var(--admin-primary);
}

/* ============= RESPONSIVE MOVIES TABLE ============= */

.movies-table-container {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 8px;
    border: 1px solid var(--admin-border);
}

.admin-table {
    width: 100%;
    min-width: 800px; /* Минимальная ширина для корректного отображения */
    border-collapse: collapse;
    background: white;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.admin-table th {
    background: #f8fafc;
    color: var(--admin-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-table td {
    color: var(--admin-gray);
    font-size: 0.9rem;
}

.admin-table tr:hover {
    background: #f8fafc;
}

/* Контейнер для постеров в таблице */
.admin-table td:first-child {
    text-align: center !important;
    vertical-align: middle !important;
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    padding: 0.5rem !important;
    position: relative !important;
}

.admin-table td:first-child img {
    position: relative !important;
    z-index: 1 !important;
}

/* Принудительные стили для всех изображений в таблице */
.admin-table td:first-child img,
.admin-table .movie-poster-compact,
.admin-table img[class*="poster"],
.admin-table img[alt*="movie"],
.admin-table img[alt*="Movie"] {
    width: 50px !important;
    height: 75px !important;
    min-width: 50px !important;
    min-height: 75px !important;
    max-width: 50px !important;
    max-height: 75px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 6px !important;
    border: 2px solid #e2e8f0 !important;
    background: #f8fafc !important;
    display: block !important;
    margin: 0 auto !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    /* Принудительное масштабирование */
    transform: scale(1) !important;
    transform-origin: center !important;
}

/* Hover эффекты для всех изображений в таблице */
.admin-table td:first-child img:hover,
.admin-table .movie-poster-compact:hover,
.admin-table img[class*="poster"]:hover,
.admin-table img[alt*="movie"]:hover,
.admin-table img[alt*="Movie"]:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--admin-primary) !important;
}

/* Fallback для изображений без постера */
.admin-table td:first-child img[src*="data:image/svg"],
.admin-table .movie-poster-compact[src*="data:image/svg"],
.admin-table img[class*="poster"][src*="data:image/svg"],
.admin-table img[alt*="movie"][src*="data:image/svg"],
.admin-table img[alt*="Movie"][src*="data:image/svg"] {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    border: 2px dashed #cbd5e1 !important;
}

.movie-poster-compact[src*="data:image/svg"]:before {
    content: "🎬";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    opacity: 0.5;
}

.movie-meta {
    font-size: 0.8rem;
    color: var(--admin-gray);
    margin-top: 0.25rem;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

.stock-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

.stock-high {
    background: var(--admin-success);
}

.stock-medium {
    background: var(--admin-warning);
}

.stock-low {
    background: var(--admin-danger);
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.rating-display i {
    color: #fbbf24;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: var(--admin-gray);
}

.action-btn:hover {
    background: #f1f5f9;
    color: var(--admin-primary);
}

.action-btn.action-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--admin-danger);
}

/* Dark theme for movies table */
[data-theme="dark"] .admin-table {
    background: #1e293b;
}

[data-theme="dark"] .admin-table th {
    background: #0f172a;
    color: var(--admin-dark);
    border-bottom: 1px solid var(--admin-border);
}

[data-theme="dark"] .admin-table td {
    color: var(--admin-gray);
    border-bottom: 1px solid var(--admin-border);
}

[data-theme="dark"] .admin-table tr:hover {
    background: #0f172a;
}

[data-theme="dark"] .action-btn:hover {
    background: #0f172a;
    color: var(--admin-primary);
}

[data-theme="dark"] .action-btn.action-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--admin-danger);
}

/* ============= RESPONSIVE DESIGN ============= */

@media (max-width: 1200px) {
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .chart-card {
        padding: 1rem;
    }
    
    .admin-table {
        min-width: 600px;
    }
    
    .movies-table-container {
        margin: 0 -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

@media (max-width: 480px) {
    .admin-table {
        min-width: 500px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .admin-table td:first-child img,
    .admin-table .movie-poster-compact,
    .admin-table img[class*="poster"],
    .admin-table img[alt*="movie"],
    .admin-table img[alt*="Movie"] {
        width: 35px !important;
        height: 52px !important;
        min-width: 35px !important;
        min-height: 52px !important;
        max-width: 35px !important;
        max-height: 52px !important;
        border-radius: 4px !important;
        border-width: 1px !important;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
    }
}
 
 / *   I m a g e   a c t i o n s   b u t t o n s   * /  
 / *   I m a g e   a c t i o n s   b u t t o n s   * /  
 . i m a g e - a c t i o n s   {  
         p o s i t i o n :   a b s o l u t e ;  
         t o p :   8 p x ;  
         r i g h t :   8 p x ;  
         d i s p l a y :   f l e x ;  
         g a p :   4 p x ;  
 }  
  
 . r e m o v e - i m a g e - b t n ,  
 . r e m o v e - i m a g e - p e r m a n e n t l y - b t n   {  
         w i d t h :   2 8 p x ;  
         h e i g h t :   2 8 p x ;  
         b o r d e r :   n o n e ;  
         b o r d e r - r a d i u s :   5 0 % ;  
         b a c k g r o u n d :   r g b a ( 0 ,   0 ,   0 ,   0 . 7 ) ;  
         c o l o r :   w h i t e ;  
         c u r s o r :   p o i n t e r ;  
         d i s p l a y :   f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         j u s t i f y - c o n t e n t :   c e n t e r ;  
         f o n t - s i z e :   1 2 p x ;  
         t r a n s i t i o n :   a l l   0 . 2 s   e a s e ;  
 }  
  
 . r e m o v e - i m a g e - b t n : h o v e r   {  
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   1 9 3 ,   7 ,   0 . 9 ) ;  
         t r a n s f o r m :   s c a l e ( 1 . 1 ) ;  
 }  
  
 . r e m o v e - i m a g e - p e r m a n e n t l y - b t n : h o v e r   {  
         b a c k g r o u n d :   r g b a ( 2 2 0 ,   5 3 ,   6 9 ,   0 . 9 ) ;  
         t r a n s f o r m :   s c a l e ( 1 . 1 ) ;  
 }  
  
 . r e m o v e - i m a g e - b t n   i ,  
 . r e m o v e - i m a g e - p e r m a n e n t l y - b t n   i   {  
         f o n t - s i z e :   1 0 p x ;  
 }  
  
 / *   D a r k   t h e m e   f o r   i m a g e   a c t i o n s   * /  
 [ d a t a - t h e m e = " d a r k " ]   . r e m o v e - i m a g e - b t n ,  
 [ d a t a - t h e m e = " d a r k " ]   . r e m o v e - i m a g e - p e r m a n e n t l y - b t n   {  
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 2 ) ;  
 }  
  
 [ d a t a - t h e m e = " d a r k " ]   . r e m o v e - i m a g e - b t n : h o v e r   {  
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   1 9 3 ,   7 ,   0 . 9 ) ;  
 }  
  
 [ d a t a - t h e m e = " d a r k " ]   . r e m o v e - i m a g e - p e r m a n e n t l y - b t n : h o v e r   {  
         b a c k g r o u n d :   r g b a ( 2 2 0 ,   5 3 ,   6 9 ,   0 . 9 ) ;  
 }  
 
 
 / *   M o v i e   s e l e c t i o n   s t y l e s   * / 
 . m o v i e - c h e c k b o x   { 
         w i d t h :   1 8 p x ; 
         h e i g h t :   1 8 p x ; 
         c u r s o r :   p o i n t e r ; 
         a c c e n t - c o l o r :   v a r ( - - a d m i n - p r i m a r y ) ; 
 } 
 
 . m o v i e - r o w - s e l e c t e d   { 
         b a c k g r o u n d - c o l o r :   r g b a ( 9 9 ,   1 0 2 ,   2 4 1 ,   0 . 1 )   ! i m p o r t a n t ; 
         b o r d e r - l e f t :   3 p x   s o l i d   v a r ( - - a d m i n - p r i m a r y ) ; 
 } 
 
 . m o v i e - r o w - s e l e c t e d   t d   { 
         b a c k g r o u n d - c o l o r :   t r a n s p a r e n t   ! i m p o r t a n t ; 
 } 
 
 / *   B u l k   a c t i o n s   p a n e l   * / 
 . b u l k - a c t i o n s - p a n e l   { 
         b a c k g r o u n d :   v a r ( - - a d m i n - s u r f a c e ) ; 
         b o r d e r :   1 p x   s o l i d   v a r ( - - a d m i n - b o r d e r ) ; 
         b o r d e r - r a d i u s :   8 p x ; 
         p a d d i n g :   1 r e m ; 
         m a r g i n :   1 r e m   0 ; 
         b o x - s h a d o w :   v a r ( - - a d m i n - s h a d o w - s m ) ; 
         a n i m a t i o n :   s l i d e D o w n   0 . 3 s   e a s e - o u t ; 
 } 
 
 . b u l k - a c t i o n s - c o n t e n t   { 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; 
         g a p :   1 r e m ; 
 } 
 
 . b u l k - s e l e c t i o n - i n f o   { 
         f o n t - w e i g h t :   5 0 0 ; 
         c o l o r :   v a r ( - - a d m i n - t e x t - p r i m a r y ) ; 
         f o n t - s i z e :   0 . 9 r e m ; 
 } 
 
 . b u l k - a c t i o n s - b u t t o n s   { 
         d i s p l a y :   f l e x ; 
         g a p :   0 . 5 r e m ; 
         f l e x - w r a p :   w r a p ; 
 } 
 
 . b u l k - a c t i o n s - b u t t o n s   . b t n   { 
         f o n t - s i z e :   0 . 8 r e m ; 
         p a d d i n g :   0 . 4 r e m   0 . 8 r e m ; 
         b o r d e r - r a d i u s :   6 p x ; 
         t r a n s i t i o n :   a l l   0 . 2 s   e a s e ; 
 } 
 
 . b u l k - a c t i o n s - b u t t o n s   . b t n : h o v e r   { 
         t r a n s f o r m :   t r a n s l a t e Y ( - 1 p x ) ; 
         b o x - s h a d o w :   0   4 p x   8 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 1 5 ) ; 
 } 
 
 / *   D a r k   t h e m e   f o r   b u l k   a c t i o n s   * / 
 [ d a t a - t h e m e = \  
 d a r k \ ]   . m o v i e - r o w - s e l e c t e d   { 
         b a c k g r o u n d - c o l o r :   r g b a ( 9 9 ,   1 0 2 ,   2 4 1 ,   0 . 1 5 )   ! i m p o r t a n t ; 
         b o r d e r - l e f t - c o l o r :   v a r ( - - a d m i n - p r i m a r y ) ; 
 } 
 
 [ d a t a - t h e m e = \ d a r k \ ]   . b u l k - a c t i o n s - p a n e l   { 
         b a c k g r o u n d :   v a r ( - - a d m i n - s u r f a c e - d a r k ) ; 
         b o r d e r - c o l o r :   v a r ( - - a d m i n - b o r d e r - d a r k ) ; 
 } 
 
 [ d a t a - t h e m e = \ d a r k \ ]   . b u l k - s e l e c t i o n - i n f o   { 
         c o l o r :   v a r ( - - a d m i n - t e x t - p r i m a r y - d a r k ) ; 
 } 
 
 / *   A n i m a t i o n   f o r   b u l k   a c t i o n s   p a n e l   * / 
 @ k e y f r a m e s   s l i d e D o w n   { 
         f r o m   { 
                 o p a c i t y :   0 ; 
                 t r a n s f o r m :   t r a n s l a t e Y ( - 1 0 p x ) ; 
         } 
         t o   { 
                 o p a c i t y :   1 ; 
                 t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ; 
         } 
 } 
 
 / *   R e s p o n s i v e   b u l k   a c t i o n s   * / 
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   { 
         . b u l k - a c t i o n s - c o n t e n t   { 
                 f l e x - d i r e c t i o n :   c o l u m n ; 
                 a l i g n - i t e m s :   s t r e t c h ; 
         } 
         
         . b u l k - a c t i o n s - b u t t o n s   { 
                 j u s t i f y - c o n t e n t :   c e n t e r ; 
         } 
         
         . b u l k - a c t i o n s - b u t t o n s   . b t n   { 
                 f l e x :   1 ; 
                 m i n - w i d t h :   1 2 0 p x ; 
         } 
 }  
 
 
 / *   M o v i e s   T a b l e   C o n t a i n e r   -   <8=8<0;L=K5  AB8;8  4;O  040?B82=>AB8  * / 
 . m o v i e s - t a b l e - c o n t a i n e r   { 
         o v e r f l o w - x :   a u t o ; 
         w i d t h :   1 0 0 % ; 
 } 
 
 / *   07>2K5  AB8;8  4;O  B01;8FK  * / 
 . a d m i n - t a b l e   { 
         w i d t h :   1 0 0 % ; 
         b o r d e r - c o l l a p s e :   c o l l a p s e ; 
         b a c k g r o u n d :   w h i t e ; 
         b o r d e r - r a d i u s :   8 p x ; 
         b o x - s h a d o w :   v a r ( - - a d m i n - s h a d o w ) ; 
 } 
 
 . a d m i n - t a b l e   t h , 
 . a d m i n - t a b l e   t d   { 
         p a d d i n g :   1 2 p x   8 p x ; 
         t e x t - a l i g n :   l e f t ; 
         b o r d e r - b o t t o m :   1 p x   s o l i d   v a r ( - - a d m i n - b o r d e r ) ; 
         v e r t i c a l - a l i g n :   m i d d l e ; 
 } 
 
 . a d m i n - t a b l e   t h   { 
         b a c k g r o u n d :   v a r ( - - a d m i n - l i g h t ) ; 
         f o n t - w e i g h t :   6 0 0 ; 
         c o l o r :   v a r ( - - a d m i n - d a r k ) ; 
 } 
 
 . a d m i n - t a b l e   t r : h o v e r   { 
         b a c k g r o u n d :   # f 8 f a f c ; 
 } 
 
 / *   !B8;8  4;O  ?>AB5@>2  * / 
 . m o v i e - p o s t e r - t h u m b   { 
         w i d t h :   5 0 p x ; 
         h e i g h t :   7 5 p x ; 
         o b j e c t - f i t :   c o v e r ; 
         b o r d e r - r a d i u s :   4 p x ; 
         b o r d e r :   1 p x   s o l i d   v a r ( - - a d m i n - b o r d e r ) ; 
 } 
 
 / *   40?B82=>ABL  * / 
 @ m e d i a   ( m a x - w i d t h :   1 2 0 0 p x )   { 
         . a d m i n - t a b l e   t h , 
         . a d m i n - t a b l e   t d   { 
                 p a d d i n g :   8 p x   6 p x ; 
                 f o n t - s i z e :   1 4 p x ; 
         } 
         
         . m o v i e - p o s t e r - t h u m b   { 
                 w i d t h :   4 0 p x ; 
                 h e i g h t :   6 0 p x ; 
         } 
 } 
 
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   { 
         . a d m i n - t a b l e   t h , 
         . a d m i n - t a b l e   t d   { 
                 p a d d i n g :   6 p x   4 p x ; 
                 f o n t - s i z e :   1 3 p x ; 
         } 
         
         . m o v i e - p o s t e r - t h u m b   { 
                 w i d t h :   3 5 p x ; 
                 h e i g h t :   5 2 p x ; 
         } 
 }  
 
 
 / *   B u l k   A c t i o n s   S t y l e s   * / 
 . b u l k - a c t i o n s - p a n e l   { 
         b a c k g r o u n d :   v a r ( - - a d m i n - l i g h t ) ; 
         b o r d e r :   1 p x   s o l i d   v a r ( - - a d m i n - b o r d e r ) ; 
         b o r d e r - r a d i u s :   8 p x ; 
         p a d d i n g :   1 6 p x ; 
         m a r g i n - b o t t o m :   2 0 p x ; 
         d i s p l a y :   n o n e ; 
 } 
 
 . b u l k - a c t i o n s - p a n e l . s h o w   { 
         d i s p l a y :   b l o c k ; 
         a n i m a t i o n :   s l i d e D o w n   0 . 3 s   e a s e ; 
 } 
 
 . b u l k - s e l e c t i o n - i n f o   { 
         m a r g i n - b o t t o m :   1 2 p x ; 
         f o n t - w e i g h t :   6 0 0 ; 
         c o l o r :   v a r ( - - a d m i n - d a r k ) ; 
 } 
 
 . b u l k - a c t i o n s - b u t t o n s   { 
         d i s p l a y :   f l e x ; 
         g a p :   1 2 p x ; 
         f l e x - w r a p :   w r a p ; 
 } 
 
 . b u l k - a c t i o n s - b u t t o n s   . b t n   { 
         f l e x :   1 ; 
         m i n - w i d t h :   1 2 0 p x ; 
 } 
 
 . m o v i e - c h e c k b o x   { 
         m a r g i n :   0 ; 
 } 
 
 . m o v i e - r o w - s e l e c t e d   { 
         b a c k g r o u n d - c o l o r :   r g b a ( 9 9 ,   1 0 2 ,   2 4 1 ,   0 . 1 )   ! i m p o r t a n t ; 
 } 
 
 @ k e y f r a m e s   s l i d e D o w n   { 
         f r o m   { 
                 o p a c i t y :   0 ; 
                 t r a n s f o r m :   t r a n s l a t e Y ( - 1 0 p x ) ; 
         } 
         t o   { 
                 o p a c i t y :   1 ; 
                 t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ; 
         } 
 }  
 
 
 / *   = = = = = = = = = = = = =   !" " +  !"    = = = = = = = = = = = = =   * / 
 
 / *   07>2K5  AB8;8  4;O  2A5E  :=>?>:  * / 
 . b t n   { 
         d i s p l a y :   i n l i n e - f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         j u s t i f y - c o n t e n t :   c e n t e r ; 
         g a p :   8 p x ; 
         p a d d i n g :   1 2 p x   1 6 p x ; 
         m i n - w i d t h :   1 2 0 p x ; 
         h e i g h t :   4 4 p x ; 
         b o r d e r :   n o n e ; 
         b o r d e r - r a d i u s :   8 p x ; 
         f o n t - s i z e :   1 4 p x ; 
         f o n t - w e i g h t :   5 0 0 ; 
         t e x t - d e c o r a t i o n :   n o n e ; 
         c u r s o r :   p o i n t e r ; 
         t r a n s i t i o n :   a l l   0 . 2 s   e a s e ; 
         w h i t e - s p a c e :   n o w r a p ; 
         o v e r f l o w :   h i d d e n ; 
         t e x t - o v e r f l o w :   e l l i p s i s ; 
 } 
 
 / *   &25B>2K5  20@80=BK  :=>?>:  * / 
 . b t n - p r i m a r y   { 
         b a c k g r o u n d :   v a r ( - - a d m i n - p r i m a r y ) ; 
         c o l o r :   w h i t e ; 
 } 
 
 . b t n - p r i m a r y : h o v e r   { 
         b a c k g r o u n d :   v a r ( - - a d m i n - p r i m a r y - d a r k ) ; 
         t r a n s f o r m :   t r a n s l a t e Y ( - 1 p x ) ; 
         b o x - s h a d o w :   0   4 p x   1 2 p x   r g b a ( 9 9 ,   1 0 2 ,   2 4 1 ,   0 . 3 ) ; 
 } 
 
 . b t n - s e c o n d a r y   { 
         b a c k g r o u n d :   v a r ( - - a d m i n - g r a y ) ; 
         c o l o r :   w h i t e ; 
 } 
 
 . b t n - s e c o n d a r y : h o v e r   { 
         b a c k g r o u n d :   # 4 7 5 5 6 9 ; 
         t r a n s f o r m :   t r a n s l a t e Y ( - 1 p x ) ; 
         b o x - s h a d o w :   0   4 p x   1 2 p x   r g b a ( 1 0 0 ,   1 1 6 ,   1 3 9 ,   0 . 3 ) ; 
 } 
 
 . b t n - s u c c e s s   { 
         b a c k g r o u n d :   v a r ( - - a d m i n - s u c c e s s ) ; 
         c o l o r :   w h i t e ; 
 } 
 
 . b t n - s u c c e s s : h o v e r   { 
         b a c k g r o u n d :   # 0 5 9 6 6 9 ; 
         t r a n s f o r m :   t r a n s l a t e Y ( - 1 p x ) ; 
         b o x - s h a d o w :   0   4 p x   1 2 p x   r g b a ( 1 6 ,   1 8 5 ,   1 2 9 ,   0 . 3 ) ; 
 } 
 
 . b t n - i n f o   { 
         b a c k g r o u n d :   v a r ( - - a d m i n - i n f o ) ; 
         c o l o r :   w h i t e ; 
 } 
 
 . b t n - i n f o : h o v e r   { 
         b a c k g r o u n d :   # 2 5 6 3 e b ; 
         t r a n s f o r m :   t r a n s l a t e Y ( - 1 p x ) ; 
         b o x - s h a d o w :   0   4 p x   1 2 p x   r g b a ( 5 9 ,   1 3 0 ,   2 4 6 ,   0 . 3 ) ; 
 } 
 
 . b t n - w a r n i n g   { 
         b a c k g r o u n d :   v a r ( - - a d m i n - w a r n i n g ) ; 
         c o l o r :   w h i t e ; 
 } 
 
 . b t n - w a r n i n g : h o v e r   { 
         b a c k g r o u n d :   # d 9 7 7 0 6 ; 
         t r a n s f o r m :   t r a n s l a t e Y ( - 1 p x ) ; 
         b o x - s h a d o w :   0   4 p x   1 2 p x   r g b a ( 2 4 5 ,   1 5 8 ,   1 1 ,   0 . 3 ) ; 
 } 
 
 . b t n - d a n g e r   { 
         b a c k g r o u n d :   v a r ( - - a d m i n - d a n g e r ) ; 
         c o l o r :   w h i t e ; 
 } 
 
 . b t n - d a n g e r : h o v e r   { 
         b a c k g r o u n d :   # d c 2 6 2 6 ; 
         t r a n s f o r m :   t r a n s l a t e Y ( - 1 p x ) ; 
         b o x - s h a d o w :   0   4 p x   1 2 p x   r g b a ( 2 3 9 ,   6 8 ,   6 8 ,   0 . 3 ) ; 
 } 
 
 / *    07<5@K  :=>?>:  * / 
 . b t n - s m   { 
         p a d d i n g :   8 p x   1 2 p x ; 
         m i n - w i d t h :   1 0 0 p x ; 
         h e i g h t :   3 6 p x ; 
         f o n t - s i z e :   1 3 p x ; 
 } 
 
 . b t n - l g   { 
         p a d d i n g :   1 6 p x   2 4 p x ; 
         m i n - w i d t h :   1 4 0 p x ; 
         h e i g h t :   5 2 p x ; 
         f o n t - s i z e :   1 6 p x ; 
 } 
 
 / *   !B8;8  4;O  8:>=>:  2  :=>?:0E  * / 
 . b t n   i   { 
         f o n t - s i z e :   1 6 p x ; 
         f l e x - s h r i n k :   0 ; 
 } 
 
 . b t n - s m   i   { 
         f o n t - s i z e :   1 4 p x ; 
 } 
 
 . b t n - l g   i   { 
         f o n t - s i z e :   1 8 p x ; 
 } 
 
 / *   !B8;8  4;O  h e a d e r - a c t i o n s   * / 
 . h e a d e r - a c t i o n s   { 
         d i s p l a y :   f l e x ; 
         g a p :   1 2 p x ; 
         f l e x - w r a p :   w r a p ; 
         a l i g n - i t e m s :   c e n t e r ; 
 } 
 
 / *   40?B82=>ABL  4;O  :=>?>:  * / 
 @ m e d i a   ( m a x - w i d t h :   1 2 0 0 p x )   { 
         . b t n   { 
                 m i n - w i d t h :   1 0 0 p x ; 
                 p a d d i n g :   1 0 p x   1 4 p x ; 
                 f o n t - s i z e :   1 3 p x ; 
         } 
         
         . h e a d e r - a c t i o n s   { 
                 g a p :   8 p x ; 
         } 
 } 
 
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   { 
         . b t n   { 
                 m i n - w i d t h :   8 0 p x ; 
                 p a d d i n g :   8 p x   1 2 p x ; 
                 f o n t - s i z e :   1 2 p x ; 
                 h e i g h t :   4 0 p x ; 
         } 
         
         . b t n - s m   { 
                 m i n - w i d t h :   7 0 p x ; 
                 p a d d i n g :   6 p x   1 0 p x ; 
                 h e i g h t :   3 2 p x ; 
                 f o n t - s i z e :   1 1 p x ; 
         } 
         
         . h e a d e r - a c t i o n s   { 
                 g a p :   6 p x ; 
                 f l e x - w r a p :   w r a p ; 
         } 
         
         . b t n   i   { 
                 f o n t - s i z e :   1 4 p x ; 
         } 
         
         . b t n - s m   i   { 
                 f o n t - s i z e :   1 2 p x ; 
         } 
 } 
 
 / *   "5<=0O  B5<0  4;O  :=>?>:  * / 
 [ d a t a - t h e m e = \  
 d a r k \ ]   . b t n   { 
         b o x - s h a d o w :   0   2 p x   4 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 3 ) ; 
 } 
 
 [ d a t a - t h e m e = \ d a r k \ ]   . b t n : h o v e r   { 
         b o x - s h a d o w :   0   4 p x   1 2 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 4 ) ; 
 }  
 
/* Admin Notifications */
.admin-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    min-width: 300px;
    max-width: 500px;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid var(--admin-info);
}

.admin-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.admin-notification-success {
    border-left-color: var(--admin-success);
}

.admin-notification-error {
    border-left-color: var(--admin-danger);
}

.admin-notification-info {
    border-left-color: var(--admin-info);
}

.admin-notification-warning {
    border-left-color: var(--admin-warning);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-content i {
    font-size: 1.25rem;
}

.admin-notification-success .notification-content i {
    color: var(--admin-success);
}

.admin-notification-error .notification-content i {
    color: var(--admin-danger);
}

.admin-notification-info .notification-content i {
    color: var(--admin-info);
}

.admin-notification-warning .notification-content i {
    color: var(--admin-warning);
}

/* Selected rows in table */
tr.selected {
    background-color: rgba(99, 102, 241, 0.1) !important;
}

tr.selected td {
    border-color: rgba(99, 102, 241, 0.3);
}

/* Movie checkbox styling */
.movie-checkbox {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* Bulk actions panel */
.bulk-actions-panel {
    background: white;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--admin-shadow);
}

.bulk-actions-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.bulk-selection-info {
    font-weight: 600;
    color: var(--admin-primary);
}

.bulk-actions-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* File upload drag over state */
.file-upload-area.dragover {
    background-color: rgba(99, 102, 241, 0.1);
    border-color: var(--admin-primary);
}
