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

body, html {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Full-bleed background video */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center center;
    z-index: -1;
    pointer-events: none;
    min-width: 100%;
    min-height: 100%;
}

/* Main container */
.main-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(45deg, rgba(0,0,0,0.25), rgba(0,0,0,0.15));
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    z-index: 1;
}

.main-container.drag-active {
    transform: scale(0.98);
    filter: brightness(1.2);
    box-shadow: inset 0 0 50px rgba(102, 126, 234, 0.3);
}

/* Navigation */
.nav-bar {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
    opacity: 0.6 !important;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
    animation: logoPulse 3s ease-in-out infinite;
    padding: 10px;
}

.logo-image:hover {
    transform: scale(1.05);
}

@keyframes logoPulse {
    0%, 100% { 
        opacity: 0.6 !important; 
    }
    50% { 
        opacity: 0.9 !important; 
    }
}

.user-info {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
}

.bottom-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 58%;
    height: 60px;
    background: linear-gradient(90deg, 
        rgba(102, 126, 234, 0.3) 0%, 
        rgba(118, 75, 162, 0.3) 25%, 
        rgba(240, 147, 251, 0.3) 50%, 
        rgba(245, 87, 108, 0.3) 75%, 
        rgba(79, 172, 254, 0.3) 100%);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    backdrop-filter: blur(8px);
}

.nav-section {
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 15px;
}

.nav-section:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.nav-section.center {
    background: rgba(255,255,255,0.3);
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
}

.plus-button {
    position: absolute;
    bottom: 20px;
    left: calc(21% - 80px);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    z-index: 200;
}

.plus-button:hover {
    transform: scale(1.1);
}

.plus-button::before,
.plus-button::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 2px;
}

.plus-button::before {
    width: 30px;
    height: 4px;
}

.plus-button::after {
    width: 4px;
    height: 30px;
}

/* Drag and Drop Overlay */
.drag-drop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #ff8c42, #ee5a24, #ff6b35);
    background-size: 400% 400%;
    animation: gradientShift 6s ease infinite;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    color: white;
    text-align: center;
}

.drag-drop-overlay.active {
    display: flex;
}

.drop-zone {
    width: 95%;
    height: 85%;
    border: 3px dashed rgba(255,255,255,0.7);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 20px auto;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: white;
    background: rgba(255,255,255,0.1);
    transform: scale(1.02);
}

.drop-zone-animation {
    margin-bottom: -20px;
    opacity: 0.8;
}

.drop-zone-animation {
    position: relative;
}

.drop-zone-animation video {
    background: transparent;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.3));
    transition: all 0.3s ease;
}

/* Ripple effect when files are dropped */
.drop-zone-animation.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.4) 30%, rgba(255,255,255,0.2) 60%, transparent 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rippleExpand 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 10;
}

/* Secondary ripple for more pronounced effect */
.drop-zone-animation.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.3) 50%, transparent 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rippleExpand 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
    pointer-events: none;
    z-index: 9;
}

/* Full-screen ripple effect */
.drag-drop-overlay.ripple-screen::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.2) 30%, rgba(255,255,255,0.1) 60%, transparent 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: screenRipple 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 1001;
}

@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        width: 600px;
        height: 600px;
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes screenRipple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        transform: translate(-50%, -50%) scale(0);
    }
    25% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.3);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.7);
    }
    75% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        width: 200vw;
        height: 200vh;
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.drop-zone h1 {
    font-size: 162px;
    margin-bottom: 3px;
    font-weight: 900;
    transform: translateY(-95px);
    transition: all 0.3s ease;
}

.drop-zone p {
    font-size: 15px;
    margin-bottom: 3px;
    opacity: 0.9;
    transform: translateY(-95px);
    transition: all 0.3s ease;
}

.supported-formats {
    font-size: 11px;
    opacity: 0.8;
    transform: translateY(-95px);
    transition: all 0.3s ease;
}

/* Scale down text when file preview is active */
.drop-zone:has(.file-preview.active) h1 {
    transform: translateY(-95px) scale(0.7);
}

.drop-zone:has(.file-preview.active) p {
    transform: translateY(-95px) scale(0.8);
}

.drop-zone:has(.file-preview.active) .supported-formats {
    transform: translateY(-95px) scale(0.8);
}

/* File Preview */
.file-preview {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 1200px;
    width: 75%;
    font-size: 14px;
}

.file-preview.active {
    display: flex;
    flex-direction: column;
}

#fileList {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-preview-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.file-preview-left {
    flex: 2;
}

.file-preview-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin: 8px 0;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.file-icon {
    width: 25px;
    height: 25px;
    background: rgba(255,255,255,0.3);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.file-type-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    color: white;
}

.remove-btn {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    cursor: pointer;
    margin-left: 8px;
    font-size: 11px;
}

/* Upload Modal */
.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: flex-start;
    padding-left: 8%;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
}

.upload-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.85), rgba(247, 147, 30, 0.85), rgba(118, 75, 162, 0.85), rgba(102, 126, 234, 0.85));
    background-size: 400% 400%;
    animation: modalGradientShift 8s ease infinite;
    padding: 28px;
    border-radius: 20px;
    width: 60%;
    max-width: 400px;
    color: white;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.upload-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: white;
    opacity: 0.8;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 12px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.file-input {
    margin-bottom: 10px;
}

.platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.platform-card {
    position: relative;
    padding: 12px 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.platform-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.platform-card.selected {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.8);
}

.platform-card input[type="checkbox"] {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
}

.platform-name {
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 4px;
}

.platform-desc {
    font-size: 10px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.platform-ratio {
    font-size: 11px;
    opacity: 0.9;
    font-weight: bold;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #764ba2, #667eea, #ff8c42, #ff6b35);
    background-size: 600% 600%;
    animation: gradientShift 4s ease infinite;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    color: white;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
    max-width: 500px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spinner {
    width: 225px;
    height: 225px;
    margin: 0 auto -45px;
    position: relative;
}

/* Default CSS spinner - will be replaced by custom asset */
.spinner.default {
    border: 8px solid rgba(255,255,255,0.3);
    border-top: 8px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced spinner for when custom asset fails */
.spinner {
    border: 8px solid rgba(255,255,255,0.3);
    border-top: 8px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Custom HTML5 asset container */
.spinner.custom {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    animation: none !important;
}

.spinner.custom video,
.spinner.custom canvas,
.spinner.custom svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

/* Loading text styling */
#loadingTitle {
    font-size: 20px;
    margin-bottom: 8px;
}

#loadingMessage {
    font-size: 12px;
    opacity: 0.9;
    max-width: 300px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 50% 100%; }
    75% { background-position: 100% 0%; }
    100% { background-position: 0% 50%; }
}

@keyframes modalGradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 50% 100%; }
    75% { background-position: 100% 0%; }
    100% { background-position: 0% 50%; }
}

/* Processing Console */
.processing-console {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    color: white;
}

.processing-console.active {
    display: flex;
}

.console-content {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    border: 2px solid rgba(255,255,255,0.3);
}

.console-header {
    text-align: center;
    margin-bottom: 30px;
}

.console-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.batch-id {
    font-size: 14px;
    opacity: 0.8;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4fc3f7, #667eea);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
}

.status-log {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 30px;
}

.status-item {
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    font-size: 14px;
}

.status-item.completed {
    background: rgba(76, 175, 80, 0.3);
}

.status-item.active {
    background: rgba(255, 193, 7, 0.3);
    animation: pulse 2s infinite;
}

.status-item.error {
    background: rgba(244, 67, 54, 0.3);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.console-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.download-btn {
    background: linear-gradient(135deg, #4fc3f7, #667eea);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.close-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255,255,255,0.3);
}

