/* ==================== СТРАНИЦА КӨРНЕКІЛІКТЕР ==================== */
.visuals-page {
    min-height: 100vh;
}

.visuals-section {
    padding: 60px 20px;
    background: var(--light-bg);
}

.visuals-container {
    max-width: 1400px;
    margin: 0 auto;
}

.visuals-title {
    font-size: 3rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.visuals-description {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 50px;
}

/* ==================== ТАБЛИЦА ==================== */
.table-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.visuals-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

/* Заголовок таблицы */
.visuals-table thead {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.visuals-table thead th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.col-number {
    width: 60px;
    text-align: center !important;
}

.col-icon {
    width: 60px;
    text-align: center !important;
}

.col-name {
    min-width: 300px;
}

.col-date {
    width: 120px;
}

.col-size {
    width: 100px;
}

.col-actions {
    width: 140px;
    text-align: center !important;
}

/* Строки таблицы */
.visuals-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: table-row !important;
}

.visuals-table tbody tr[style*="display: none"] {
    display: none !important;
}

.visual-row {
    animation: tableSlideIn 0.5s ease forwards;
    opacity: 0;
}

.visual-row:nth-child(1) { animation-delay: 0.05s; }
.visual-row:nth-child(2) { animation-delay: 0.1s; }
.visual-row:nth-child(3) { animation-delay: 0.15s; }
.visual-row:nth-child(4) { animation-delay: 0.2s; }
.visual-row:nth-child(5) { animation-delay: 0.25s; }
.visual-row:nth-child(n+6) { animation-delay: 0.3s; }

@keyframes tableSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.visuals-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(67, 233, 123, 0.05) 0%, rgba(56, 249, 215, 0.05) 100%);
    transform: scale(1.01);
}

.visuals-table tbody td {
    padding: 20px 15px;
    vertical-align: middle;
    display: table-cell !important;
}

/* Номер */
.col-number {
    font-weight: 700;
    font-size: 1.2rem;
    color: #43e97b;
    text-align: center;
}

/* Иконка */
.col-icon i {
    font-size: 1.8rem;
    color: #e74c3c;
}

/* Название */
.visual-name {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.4;
}

/* Дата и размер */
.col-date,
.col-size {
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* Кнопки действий */
.table-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-table {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-table::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn-table:hover::before {
    width: 100px;
    height: 100px;
}

.btn-table i {
    position: relative;
    z-index: 1;
    font-size: 1rem;
}

.btn-view {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 233, 123, 0.4);
}

.btn-download {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

/* ==================== НЕТ ФАЙЛОВ ==================== */
.no-files-cell {
    padding: 0 !important;
}

.visuals-table .no-files {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.visuals-table .no-files i {
    font-size: 5rem;
    margin-bottom: 20px;
    color: #ddd;
}

.visuals-table .no-files p {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.visuals-table .no-files-hint {
    font-size: 1rem;
    color: #bbb;
}

.visuals-table .no-files code {
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #43e97b;
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 1024px) {
    .visuals-title {
        font-size: 2.5rem;
    }
    
    .col-name {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .visuals-section {
        padding: 40px 15px;
    }
    
    .visuals-title {
        font-size: 2rem;
    }
    
    .visuals-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .table-wrapper {
        overflow-x: auto;
    }
    
    .visuals-table {
        min-width: 700px;
    }
    
    .visuals-table thead th {
        padding: 15px 10px;
        font-size: 0.9rem;
    }
    
    .visuals-table tbody td {
        padding: 15px 10px;
    }
    
    .col-number {
        width: 50px;
    }
    
    .col-icon {
        width: 50px;
    }
    
    .visual-name {
        font-size: 1rem;
    }
    
    .btn-table {
        width: 35px;
        height: 35px;
    }
    
    .btn-table i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .visuals-title {
        font-size: 1.8rem;
    }
    
    .visuals-table {
        min-width: 650px;
    }
    
    .visuals-table thead th {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .visuals-table tbody td {
        padding: 12px 8px;
    }
}

