:root {
    --bg-color: #0b0c10;
    --panel-bg: rgba(31, 40, 51, 0.6);
    --panel-border: rgba(102, 252, 241, 0.1);
    --primary: #66fcf1;
    --primary-glow: rgba(102, 252, 241, 0.4);
    --secondary: #45a29e;
    --text-main: #c5c6c7;
    --text-muted: #8b8f94;
    --success: #2ecc71;
    --error: #e74c3c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Orbs for aesthetics */
.background-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: #66fcf1;
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #45a29e;
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: #7b2cbf;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Main Container */
.container {
    width: 100%;
    max-width: 800px;
    padding: 40px;
    border-radius: 24px;
    margin: 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Header */
header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo-container {
    width: 80px;
    height: 80px;
    background: rgba(102, 252, 241, 0.1);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    margin-bottom: 8px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    line-height: 1.5;
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.toggle-container input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 48px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--text-muted);
    top: 2px;
    left: 3px;
    transition: 0.3s;
}

.toggle-container input:checked + .toggle-slider {
    background-color: rgba(102, 252, 241, 0.2);
    border-color: var(--primary);
}

.toggle-container input:checked + .toggle-slider::before {
    transform: translateX(24px);
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.toggle-label {
    font-size: 0.95rem;
    font-weight: 600;
    user-select: none;
}

/* Drop Zone */
.drop-zone {
    position: relative;
    border: 2px dashed rgba(102, 252, 241, 0.3);
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    overflow: hidden;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(102, 252, 241, 0.05);
    box-shadow: 0 0 30px var(--primary-glow);
}

.drop-zone input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    pointer-events: none;
}

.upload-icon {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.drop-zone:hover .upload-icon, .drop-zone.dragover .upload-icon {
    transform: translateY(-5px);
}

.drop-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.drop-content p {
    color: var(--text-muted);
}

/* File List */
.file-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: transform 0.2s, background 0.2s;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: rgba(102, 252, 241, 0.1);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.8rem;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-name {
    font-weight: 600;
    color: #fff;
    word-break: break-all;
}

.file-size {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.file-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-processing {
    color: var(--secondary);
}

.status-ready {
    color: var(--success);
}

.status-error {
    color: var(--error);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.primary-btn {
    background: var(--primary);
    color: #000;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    background: #7bfff4;
}

.download-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    background: rgba(102, 252, 241, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.download-btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary-glow);
}

.hidden {
    display: none !important;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(102, 252, 241, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
