[file name]: style.css
[file content begin]
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
}

:root {
    --primary: #5d6d7e;
    --secondary: #424949;
    --success: #7d8c7d;
    --danger: #a5696f;
    --warning: #b7956e;
    --light: #f5f5f5;
    --dark: #2c3e50;
    --gray: #7f8c8d;
    --border: #bdc3c7;
    --bg-gradient-start: #bdc3c7;
    --bg-gradient-end: #95a5a6;
    --accent: #34495e;
}

body {
    background: linear-gradient(180deg, #d3d3d3 5%, #ffffff 50%);
    min-height: 100vh;
    padding: 20px;
    font-family: Calibri, sans-serif;
}

/* Темная тема */
body.dark-theme {
    background: linear-gradient(180deg, #6A6A6A 5%, #d3d3d3 50%);
    min-height: 100vh;
    padding: 20px;
    font-family: Calibri, sans-serif;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

header h1 i {
    color: #ecf0f1;
}

/* Кнопка админ-панели и кнопка "Назад" */
.admin-btn, .back-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.25);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.admin-btn:hover, .back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.admin-btn i, .back-btn i {
    font-size: 1.1rem;
}

/* Для админ-панели кнопка "Назад" слева */
.back-btn {
    right: auto;
    left: 30px;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 800px;
}

/* Sidebar */
.sidebar {
    background: #e8e8e8;
    padding: 30px;
    border-right: 1px solid var(--border);
}

.folder-list {
    margin-top: 10px;
}
/* Заголовок карточки папки */
.folder-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.folder-info-header h4 {
    margin: 0;
    flex-grow: 1;
}

.delete-folder-btn.minimal {
    border: none;
    background: transparent;
    color: #cccccc;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 10px;
    font-size: 1.1rem;
}

.delete-folder-btn.minimal:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    transform: scale(1.1);
}


/* Кнопка удаления в правом верхнем углу */
.delete-folder-btn {
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.delete-folder-btn:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.folder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.folder-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.folder-item.active {
    border-color: var(--primary);
    background: #e8edf1;
}

.folder-icon {
    color: #7f8c8d !important;
    font-size: 1.2rem;
}

.folder-iconn {
    color: #a0a0a0 !important; /* Более светлый серый */
    font-size: 2.5rem !important; /* Увеличиваем размер */
    margin-bottom: 15px;
    opacity: 0.8; /* Делаем немного прозрачной */
    transition: all 0.3s ease;
}

.folder-item:hover .folder-iconn {
    color: #4a5a6b !important; /* При наведении делаем синей */
    opacity: 1;
    transform: scale(1.1); /* Легкое увеличение при наведении */
}


.folder-info h4 {
    color: var(--dark);
    margin-bottom: 5px;
}

.folder-meta {
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    gap: 10px;
}

.create-folder {
    margin-top: 30px;
}

.create-folder input {
    width: 90%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 1rem;
    background: white;
}

.create-folder button {
    width: 100%;
}

/* Content Area */
.content-area {
    padding: 30px;
}

/* Upload Section */
.upload-section {
    background: #e8e8e8;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.folder-selector {
    margin-bottom: 20px;
}

.folder-selector label {
    display: block;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.folder-toggle-btn {
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.folder-toggle-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.folder-toggle-btn i {
    margin-right: 5px;
}

.folder-meta span:not(:last-child)::after {
    content: "•";
    margin: 0 5px;
    opacity: 0.5;
}

.folder-dropdown {
    width: 42%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    color: var(--dark);
    cursor: pointer;
    overflow-y: auto;
    max-height: 46px; /* Высота одной строки */
    transition: max-height 0.3s ease;
}

/* При фокусе увеличиваем высоту для показа списка */
.folder-dropdown:focus {
    max-height: 300px;
    position: relative;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Стили для опций */
.folder-dropdown option {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.folder-dropdown option:hover {
    background-color: #f8f9fa;
}

.folder-dropdown option:checked {
    background-color: var(--primary-light);
    color: var(--dark);
}

.upload-area {
    border: 3px dashed var(--primary);
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
}

.upload-area.drag-over {
    background: #e8edf1;
    border-color: var(--secondary);
}

.upload-area i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.upload-area h3 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.upload-area p {
    color: var(--gray);
    margin: 10px 0;
}

/* Кнопка выбора файлов - БЕЗ иконки */
#selectFilesBtn {
    background: linear-gradient(to right, #7f8c8d, #616a6b);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(127, 140, 141, 0.3);
    min-width: 200px;
}

#selectFilesBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(127, 140, 141, 0.4);
    background: linear-gradient(to right, #616a6b, #4a5152);
}

#selectFilesBtn i {
    display: none;
}

#selectFilesBtn span {
    display: inline-block;
    text-align: center;
}

/* Центрируем кнопку в контейнере */
.upload-area .btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

.file-info {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 15px;
    font-style: italic;
    text-align: center;
}

/* Gallery */
.gallery-section {
    margin-top: 40px;
}

.gallery-section h3 {
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.image-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.image-preview {
    height: 200px;
    overflow: hidden;
    background: #ecf0f1;
    position: relative;
    cursor: default !important; /* Обычный курсор */
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: default !important; /* Обычный курсор на изображении */
}

.image-card:hover .image-preview img {
    transform: scale(1.05);
}

.image-overlay {
    display: none !important; /* Скрываем оверлей */
}

.image-preview:hover .image-overlay {
    opacity: 1;
}

.btn-view {
    background: rgba(255,255,255,0.9) !important;
    color: #333 !important;
    border: none;
    padding: 12px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: white !important;
    transform: scale(1.1);
}

.image-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.image-name {
    font-weight: bold;
    color: var(--dark);
    word-break: break-all;
    font-size: 0.95rem;
    flex: 1;
    line-height: 1.4;
}

.image-size {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    margin-left: 10px;
}

.image-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
}

.detail-item i {
    width: 16px;
    text-align: center;
    color: #5d6d7e;
}

.image-url {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    margin-top: auto;
}

.image-url input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    background: #f9f9f9;
    color: #333;
    font-family: monospace;
    min-width: 0;
}

.image-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #4a5a6b;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #6a7a6a;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #8c575d;
}
.folder-actions {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  flex-wrap: wrap;
}
/* Общий стиль для прозрачных кнопок папки */
.btn-folder {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.btn-folder:hover {
    background: #f8f9fa;
    border-color: #bbb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Конкретные цвета для кнопок */

/* Кнопка Открыть - синий акцент */
.btn-folder-primary {
    border-color: #4a5a6b;
    color: #4a5a6b;
}

.btn-folder-primary:hover {
    background: #4a5a6b;
    color: white;
    border-color: #4a5a6b;
}

/* Кнопка Удалить - красный акцент */
.btn-folder-danger {
    border-color: #a0a0a0;
	align-items: right;
    color: #a0a0a0;
}

.btn-folder-danger:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

/* Для кнопки удаления в шапке просмотра карточек */
#deleteFolderBtn {
    background: transparent;
    border: 1px solid #a0a0a0;
    color: #a0a0a0;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#deleteFolderBtn:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}


.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #9c7c5a;
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

/* Export Button in folders */
.export-btn {
    background: #7d7280;
    color: white;
}

.export-btn:hover {
    background: #6a606e;
}

/* Admin Panel */
.admin-panel {
    padding: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dark);
    margin: 10px 0;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Folders Table */
.folders-section {
    margin: 40px 0;
}

.folders-section h3 {
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.folders-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.folders-table th {
    background: var(--primary);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.folders-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
}

.folders-table tr:last-child td {
    border-bottom: none;
}

.folders-table tr:hover {
    background: #f5f5f5;
}

/* Quick Actions */
.quick-actions {
    margin-top: 40px;
    padding: 25px;
    background: #e8e8e8;
    border-radius: 15px;
}

.quick-actions h3 {
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.modal-content h3 {
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-content label {
    display: block;
    color: var(--dark);
    margin: 15px 0 8px;
    font-weight: 600;
}

/* Progress */
.progress-container {
    margin: 20px 0;
}

.progress-bar {
    height: 10px;
    background: var(--border);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--success), #7d8c7d);
    width: 0%;
    transition: width 0.3s ease;
}

/* Стили для модального окна очистки */
.cleanup-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
    background: #e8e8e8;
    padding: 20px;
    border-radius: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.stat-item i {
    font-size: 2rem;
    color: #5d6d7e;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
}

.cleanup-settings {
    background: #e8e8e8;
    padding: 20px;
    border-radius: 10px;
}

.setting-item {
    margin-bottom: 15px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #2c3e50;
    font-weight: 500;
}

.setting-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.setting-item input[type="number"] {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    width: 80px;
    background: white;
}

.cleanup-warning {
    background: #f5f5dc;
    color: #666;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    border: 1px solid #ddd;
}

.cleanup-results {
    background: #e8e8e8;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid #ccc;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-item i {
    font-size: 1.5rem;
    color: #7d8c7d;
}

.result-info {
    flex: 1;
}

.result-label {
    font-size: 0.9rem;
    color: #666;
}

.result-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .sidebar.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100%;
        z-index: 100;
        box-shadow: 5px 0 15px rgba(0,0,0,0.15);
    }
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .image-card {
        margin-bottom: 15px;
    }
    
    .image-actions {
        flex-direction: column;
    }
    
    .image-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .image-header {
        flex-direction: column;
        gap: 5px;
    }
    
    .image-size {
        align-self: flex-start;
        margin-left: 0;
    }
}

/* Modal improvements */
.modal-content {
    max-width: 600px;
}

.url-container {
    margin: 20px 0;
}

.url-container label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 600;
    color: var(--dark);
}

.image-url {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.image-url input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    background: #f9f9f9;
    color: #333;
    font-family: 'Courier New', monospace;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-success {
    background: var(--success);
    color: white;
}

.notification-error {
    background: var(--danger);
    color: white;
}

.notification-warning {
    background: var(--warning);
    color: white;
}

@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;
    }
}

/* Animation for copied button */
.btn.copied {
    background: var(--success) !important;
    transform: scale(0.95);
}
[file content end]