
:root {
    --upload-color: #00d2ff;
    --upload-bg: rgba(255, 85, 1, 0.05);
}

.upload-zone {
    width: 100%;
    max-width: 100%;
    height: 178px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    /*background-color: #fafafa;*/
    cursor: pointer;
    margin-bottom: 20px;
}

/* Эффект при наведении файла */
.upload-zone.dragover {
    border-color: var(--upload-color);
    background-color: var(--upload-bg);
    transform: scale(1.01);
}

/* Скрываем реальный инпут, но растягиваем его на всю площадь */
.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-content p {
    margin: 10px 0 5px;
    font-size: 1.1rem;
    /*color: #444;*/
}

.upload-content p span {
    color: var(--upload-color);
    font-weight: 600;
    text-decoration: underline;
}

.file-limit {
    font-size: 0.8rem;
    color: #888;
    display: block;
}


.upload-zone.dragover .upload-icon {
    filter: none; /* Возвращаем цвет иконке при драг-н-дропе */
    opacity: 1;
}

/* Кнопка загрузки */
.upload-btn {
    background-color: var(--upload-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.upload-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(255, 85, 1, 0.3);
}

.upload-container {
    margin: 20px 5px;
    /*background: #fff;*/
    border-radius: 12px;
}

.upload-icon {
    width: 60px;
    height: 60px;
    color: #b2bec3;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

/* Эффект при наведении мышкой на всю зону */
.upload-zone:hover .upload-icon {
    color: #636e72;
    transform: scale(1.05);
}

/* Состояние при перетаскивании файла (Drag and Drop) */
.upload-zone.dragover .upload-icon {
    color: var(--upload-color); /* Твой оранжевый цвет */
    transform: translateY(-10px) scale(1.1);
    /* Добавим небольшое свечение для акцента */
    filter: drop-shadow(0 4px 6px rgba(255, 85, 1, 0.2));
}

/* Контейнер, в котором лежит иконка и текст */
.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирует всё по горизонтали */
    justify-content: center;
    width: 100%;
    text-align: center;
}

/* Стили кнопок переключения */
.tabs-header {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #888;
    position: relative;
    transition: 0.3s;
}

.tab-btn.active {
    color: var(--upload-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--upload-color);
}

/* Управление видимостью контента */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Стили для текстового поля (вторая вкладка) */
.remote-upload-box textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.remote-upload-box textarea:focus {
    border-color: var(--upload-color);
}

.remote-upload-box .upload-btn {
    margin-top: 10px;
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}








#progressContainer {
    counter-reset: song-num; /* Инициализируем счетчик */
}

.file-card {
    display: flex;
    margin-bottom: 10px;
    /*background: #fff;*/
    border: 1px solid #434343;
    border-radius: 8px;
    counter-increment: song-num; /* Прибавляем 1 для каждой карточки */
}

.file-card .file-info{
    width: 100%;
    padding: 7px;
}

/* Общие стили */
.file-card progress {
    appearance: none;           /* Убираем стандартный вид ОС */
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 6px;                /* Делаем его тонким и стильным */
    border: none;
    border-radius: 10px;
    background-color: #333;     /* Цвет подложки (пустая часть) */
    overflow: hidden;
}

/* Стили для полоски заполнения в Chrome/Safari */
.file-card progress::-webkit-progress-bar {
    background-color: #00d2ff; /* Твой оранжевый */
    border-radius: 10px;
}

.file-card progress::-webkit-progress-value {
    background-color: #00d2ff;
    border-radius: 10px;
    transition: width 0.3s ease; /* Плавное движение при обновлении */
}

/* Стили для полоски заполнения в Firefox */
.file-card progress::-moz-progress-bar {
    background-color: #00d2ff;
    border-radius: 10px;
}


.file-card .songplayer{
    margin: 0px;
    border: none;
}

.card-side-panel {
    width: 40px;
    /*background: #fcfcfc;*/
    border-right: 1px solid #434343;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: move; /* Курсор перемещения */
}

/* Вывод номера */
.card-number::before {
    content: counter(song-num);
    font-weight: bold;
    color: var(--upload-color);
    font-size: 14px;
}

.drag-handle {
    color: #ccc;
    margin-top: 5px;
    font-size: 18px;
}

/* Стиль "фантома", который остается на месте при перетаскивании */
.ui-sortable-placeholder {
    border: 2px dashed #ddd !important;
    visibility: visible !important;
    background: #fafafa;
    height: 100px; /* Примерная высота вашей карточки */
}

/* Контейнер обнуляет счетчик */
#progressContainer {
    counter-reset: song-num;
}

/* Каждая карточка увеличивает его на 1 */
.file-card {
    counter-increment: song-num;
    display: flex;
    /* ... остальные стили ... */
}

/* Вставляем номер перед контентом */
.card-number::before {
    content: counter(song-num); /* Отображает текущее значение */
    font-weight: bold;
}




:root {
    --header-bg: #2d3436; /* Темный фон шапки */
    /*--body-bg: #ffffff;   /* Фон контента */
    --accent-color: #00d2ff; /* Ваш оранжевый */
}

.content-section {
    /*border: 1px solid #e1e4e8;*/
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.section-header {
    background-color: var(--header-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    user-select: none;
}

.header-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon {
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

.header-text {
    color: #dfe6e9;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-lang {
    color: #636e72;
    font-size: 11px;
    font-family: 'Monaco', 'Consolas', monospace;
}

.header-copy-btn {
    background: transparent;
    border: 1px solid #4b4b4b;
    color: #b2bec3;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.header-copy-btn:hover {
    color: #fff;
    border-color: var(--accent-color);
    background: rgba(255, 85, 1, 0.1);
}

.section-body {
    background: var(--body-bg);
    padding: 15px;
    min-height: 100px;
}




/* Все элементы внутри dropZone игнорируют мышь и файлы,
   события проходят напрямую к родителю (#dropZone) */
#dropZone * {
    pointer-events: none;
}






/* Стиль карточки, которую мы в данный момент тащим */
.ui-sortable-helper {
    opacity: 0.9;
    transform: scale(0.95); /* Легкое увеличение */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); /* Тень для эффекта глубины */
    cursor: grabbing !important;
    transition: transform 0.2s ease;
    z-index: 9999;
}

/* Стиль "пустого места" (placeholder), куда упадет карточка */
.ui-sortable-placeholder {
    background: rgba(0, 0, 0, 0.05); /* Светлый фон */
    border: 2px dashed #ccc; /* Пунктирная рамка */
    visibility: visible !important; /* Обязательно, чтобы увидеть его */
    border-radius: 8px;
    margin-bottom: 10px;
}

.card-controls {
    display: flex;
    flex-direction: column; /* Колонкой */
    gap: 8px;
    padding: 10px;
    border-left: 1px solid #434343;
}

.control-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.control-btn svg {
    fill: #666;
}

.info-btn:hover { background: #e3f2fd; }
.info-btn:hover svg { fill: #2196f3; }

.edit-btn:hover { background: #f1f8e9; }
.edit-btn:hover svg { fill: #4caf50; }

.delete-btn:hover { background: #ffebee; }
.delete-btn:hover svg { fill: #f44336; }