/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: white;
    background-image: radial-gradient(circle, #ddd 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
header {
    background: white;
    color: black;
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    align-items: center;
}

/* Upload Section */
.upload-section {
    margin-bottom: 30px;
}

.upload-label {
    cursor: pointer;
    display: block;
}

.upload-area {
    border: 3px dashed #e5e7eb;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #666;
    background: #f3f4f6;
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #666;
    background: #f3f4f6;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.upload-area h3 {
    color: #374151;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.upload-area p {
    color: #6b7280;
    margin-bottom: 10px;
}

.upload-area small {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* Export Section */
.export-section {
    margin-top: 20px;
}

.export-button {
    width: 100%;
    padding: 18px 24px;
    background: black;
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.export-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background: #333;
}

.export-button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Phone Device Frame */
.preview-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.phone-device {
    width: 300px;
    height: 600px;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 35px;
    padding: 15px;
    box-shadow: 
        0 0 0 3px #333,
        0 0 0 8px #000,
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    position: relative;
    transform: rotate(-2deg);
    transition: all 0.5s ease;
}

.phone-device:hover {
    transform: rotate(0deg) scale(1.05);
}

/* Camera notch removed for cleaner look */
.phone-device::before {
    display: none;
}

.phone-device::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.video-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
    background: #000;
}

.placeholder {
    text-align: center;
    color: #666;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.placeholder p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.video-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Instructions */
.instructions {
    background: #f8fafc;
    padding: 40px;
    border-top: 1px solid #e5e7eb;
}

.instructions h3 {
    color: #374151;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.instructions ol {
    list-style: none;
    counter-reset: step-counter;
}

.instructions li {
    counter-increment: step-counter;
    margin-bottom: 12px;
    padding-left: 40px;
    position: relative;
    color: #6b7280;
    line-height: 1.6;
}

.instructions li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: black;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Export Progress Modal */
.export-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    z-index: 10001;
    min-width: 350px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.export-progress h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

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

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    max-width: 300px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.notification.success {
    background: black;
}

.notification.error {
    background: #666;
}

.notification.info {
    background: black;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    
    .phone-device {
        width: 250px;
        height: 500px;
        transform: none;
    }
    
    header {
        padding: 30px 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
}

/* Animations */
@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; 
    }
} 