/* === GLOBAL STYLES === */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #f0f9ff;
    background: #080b12;
    padding-bottom: 120px;
}

/* Background gradient */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at top left, rgba(0,255,255,.08), transparent 25%),
        radial-gradient(circle at top right, rgba(255,0,255,.06), transparent 22%),
        radial-gradient(circle at bottom left, rgba(0,125,255,.06), transparent 22%),
        radial-gradient(circle at bottom right, rgba(255,255,0,.04), transparent 18%);
    pointer-events: none;
    z-index: -1;
}

/* Back button */
.back {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 999;
    padding: 10px 16px;
    text-decoration: none;
    color: #66f5ff;
    border-radius: 14px;
    border: 1px solid rgba(102,245,255,.24);
    background: rgba(5,10,18,.76);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all .28s ease;
}

.back:hover {
    color: #fff;
    border-color: rgba(102,245,255,.54);
    background: rgba(102,245,255,.12);
    box-shadow: 0 0 12px rgba(102,245,255,.25);
}

/* === PAGE HEADER === */
.page-header {
    text-align: center;
    padding: 42px 20px 14px;
}

.page-header h1 {
    margin: 0;
    color: #66f5ff;
    text-shadow: 
        0 0 10px rgba(102,245,255,.35),
        0 0 24px rgba(102,245,255,.18);
    font-size: 2.4em;
}

.page-header p {
    margin: 14px auto 0;
    max-width: 760px;
    opacity: .82;
    line-height: 1.7;
    color: rgba(240,249,255,.78);
}

/* === UPLOAD CONTAINER === */
.upload-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === DRAG & DROP ZONE === */
.upload-zone {
    position: relative;
    min-height: 320px;
    border-radius: 24px;
    border: 2px dashed rgba(102,245,255,.45);
    background: rgba(12,16,26,.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .28s ease;
    overflow: hidden;
}

.upload-zone::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(102,245,255,.08), transparent 70%);
    opacity: 0;
    transition: opacity .28s ease;
    pointer-events: none;
}

.upload-zone:hover {
    border-color: rgba(102,245,255,.75);
    background: rgba(12,16,26,.95);
    box-shadow: 0 0 20px rgba(102,245,255,.2);
}

.upload-zone:hover::before {
    opacity: 1;
}

.upload-zone.drag-over {
    border-color: rgba(102,245,255,.95);
    background: rgba(12,16,26,.99);
    box-shadow: 
        0 0 30px rgba(102,245,255,.35),
        inset 0 0 30px rgba(102,245,255,.08);
}

.upload-zone-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
}

.upload-icon {
    font-size: 3.2em;
    margin-bottom: 16px;
    opacity: .9;
    transition: transform .28s ease;
}

.upload-zone:hover .upload-icon {
    transform: scale(1.08) translateY(-4px);
}

.upload-zone-content h2 {
    margin: 0 0 8px;
    color: #66f5ff;
    font-size: 1.6em;
    text-shadow: 0 0 12px rgba(102,245,255,.25);
}

.upload-zone-content p {
    margin: 0 0 4px;
    color: rgba(240,249,255,.68);
    font-size: .95em;
}

.upload-formats {
    margin-top: 12px !important;
    font-size: .85em;
    color: rgba(255,200,0,.72) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === FILES INFO === */
.files-info {
    margin-top: 32px;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 8px;
}

.info-header h3 {
    margin: 0;
    color: #66f5ff;
    font-size: 1.2em;
    text-shadow: 0 0 8px rgba(102,245,255,.2);
}

/* === PAIRING INFO === */
.pairing-info {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(102,245,255,.08);
    border: 1px solid rgba(102,245,255,.2);
}

.pairing-stats {
    display: flex;
    gap: 24px;
    font-size: .95em;
    color: rgba(240,249,255,.82);
}

.pairing-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.pairing-stats span:nth-child(3) {
    color: #22c55e;
    text-shadow: 0 0 8px rgba(34,197,94,.3);
}

/* === FILES LIST === */
.files-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 24px;
    border-radius: 12px;
    background: rgba(12,16,26,.6);
    border: 1px solid rgba(102,245,255,.12);
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(102,245,255,.08);
    transition: background .2s ease;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item:hover {
    background: rgba(102,245,255,.06);
}

.file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    font-size: 1.8em;
    flex-shrink: 0;
}

.file-column {
    flex: 1;
    min-width: 0;
}

.file-column.file-original {
    min-width: 180px;
}

.file-column.file-technical {
    min-width: 180px;
}

.file-column.file-pairing {
    min-width: 140px;
}

.file-column.file-upload-status {
    min-width: 120px;
}

.file-label {
    font-size: .75em;
    color: rgba(102,245,255,.6);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.file-value {
    font-size: .9em;
    color: #f0f9ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: bold;
    color: #f0f9ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.file-meta {
    font-size: .85em;
    color: rgba(240,249,255,.56);
    display: flex;
    gap: 12px;
}

.file-status {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9em;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    background: rgba(102,245,255,.15);
    color: #66f5ff;
    font-size: .85em;
    font-weight: bold;
}

.status-badge.success {
    background: rgba(34,197,94,.2);
    color: #22c55e;
}

.status-badge.error {
    background: rgba(239,68,68,.2);
    color: #ef4444;
}

.pairing-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    background: rgba(102,245,255,.15);
    color: #66f5ff;
    font-size: .85em;
    font-weight: bold;
    white-space: nowrap;
}

.pairing-badge.paired {
    background: rgba(34,197,94,.2);
    color: #22c55e;
}

.pairing-badge.warning {
    background: rgba(255,193,7,.15);
    color: #ffc107;
}

.file-remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: rgba(239,68,68,.15);
    color: #ef4444;
    cursor: pointer;
    font-size: 1.2em;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-remove:hover {
    background: rgba(239,68,68,.3);
}

/* === BUTTONS === */
.btn-primary, .btn-secondary {
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-size: .95em;
    font-weight: bold;
    cursor: pointer;
    transition: all .28s ease;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #66f5ff, #00ffff);
    color: #000;
    text-shadow: none;
    box-shadow: 
        0 0 20px rgba(102,245,255,.4),
        0 4px 16px rgba(0,0,0,.3);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 
        0 0 30px rgba(102,245,255,.6),
        0 6px 24px rgba(0,0,0,.4);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(102,245,255,.12);
    color: #66f5ff;
    border: 1px solid rgba(102,245,255,.3);
}

.btn-secondary:hover {
    background: rgba(102,245,255,.2);
    border-color: rgba(102,245,255,.6);
}

/* === PROGRESS SECTION === */
.progress-section {
    margin-top: 32px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 8px;
    font-size: .95em;
    color: rgba(240,249,255,.78);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(12,16,26,.8);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(102,245,255,.15);
    box-shadow: inset 0 0 8px rgba(0,0,0,.5);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ffff, #66f5ff);
    box-shadow: 0 0 12px rgba(102,245,255,.5);
    transition: width .3s ease;
}

.progress-text {
    margin-top: 12px;
    font-size: .9em;
    color: rgba(240,249,255,.68);
    text-align: center;
}

/* === RESULTS CONTAINER === */
.results-container {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-header h2 {
    margin: 0;
    color: #66f5ff;
    text-shadow: 0 0 8px rgba(102,245,255,.2);
}

#resultsList {
    display: grid;
    gap: 12px;
}

.result-item {
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid;
    background: rgba(12,16,26,.6);
}

.result-item.success {
    border-left-color: #22c55e;
    background: rgba(34,197,94,.08);
}

.result-item.error {
    border-left-color: #ef4444;
    background: rgba(239,68,68,.08);
}

.result-item strong {
    color: #66f5ff;
}

.result-item.success strong {
    color: #22c55e;
}

.result-item.error strong {
    color: #ef4444;
}

/* === SCROLLBAR === */
.files-list::-webkit-scrollbar {
    width: 8px;
}

.files-list::-webkit-scrollbar-track {
    background: rgba(102,245,255,.05);
    border-radius: 4px;
}

.files-list::-webkit-scrollbar-thumb {
    background: rgba(102,245,255,.25);
    border-radius: 4px;
}

.files-list::-webkit-scrollbar-thumb:hover {
    background: rgba(102,245,255,.45);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.8em;
    }

    .upload-zone {
        min-height: 240px;
    }

    .upload-zone-content {
        padding: 24px 16px;
    }

    .upload-icon {
        font-size: 2.4em;
    }

    .file-item {
        flex-wrap: wrap;
    }

    .file-column {
        flex: 0 0 100%;
    }

    .file-column.file-original,
    .file-column.file-technical,
    .file-column.file-pairing,
    .file-column.file-upload-status {
        min-width: auto;
        flex: 0 0 calc(50% - 6px);
    }

    .file-column.file-upload-status {
        order: 5;
    }

    .pairing-stats {
        flex-wrap: wrap;
        gap: 12px;
    }

    .info-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .btn-secondary {
        align-self: flex-start;
    }
}
#infoTitle{
    font-size:32px;
    color:#00ffff;
    text-shadow:0 0 15px #00ffff;
    margin-bottom:15px;
}

#infoDesc,
#infoDesc + p{
    font-size:20px;
    line-height:1.8;
    font-weight:bold;
    color:#ff3333;
    text-shadow:0 0 10px rgba(255,0,0,0.8);
}

.rules-link{
    color:#ffd700;
    font-weight:bold;
}

.rules-link:hover{
    text-shadow:0 0 10px #ffd700;
}
