/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #8B1A1A 0%, #CC3366 100%);
    min-height: 100vh;
    color: #333;
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.logo-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #BFBFBF;
    margin: 0;
}

.subtitle {
    color: #BFBFBF;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.upload-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

/* Upload Card */
.upload-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.upload-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.upload-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8B1A1A, #CC3366);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(139, 26, 26, 0.3);
}

.upload-icon i {
    font-size: 2rem;
    color: white;
}

.upload-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 0.5rem;
}

.upload-header p {
    color: #666666;
    font-size: 1rem;
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #f7fafc;
    margin-bottom: 2rem;
}

.file-upload-area:hover {
    border-color: #8B1A1A;
    background: #fdf2f2;
}

.file-upload-area.dragover {
    border-color: #8B1A1A;
    background: #fdf2f2;
    transform: scale(1.02);
}

.file-upload-area.file-selected {
    border-color: #48bb78;
    background: #f0fff4;
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.file-upload-content i {
    font-size: 3rem;
    color: #a0aec0;
    margin-bottom: 0.5rem;
}

.file-upload-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #262626;
    margin: 0;
}

.file-upload-content p {
    color: #666666;
    margin: 0;
}

.browse-btn {
    background: linear-gradient(135deg, #8B1A1A, #CC3366);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 26, 26, 0.3);
}

.browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 26, 26, 0.4);
}

/* File Info */
.file-info {
    display: none;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.file-details i {
    font-size: 1.5rem;
    color: #48bb78;
}

.file-text {
    flex: 1;
    text-align: left;
}

.file-name {
    display: block;
    font-weight: 600;
    color: #262626;
    margin-bottom: 0.25rem;
}

.file-size {
    display: block;
    font-size: 0.875rem;
    color: #666666;
}

.remove-file {
    background: #fed7d7;
    color: #c53030;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-file:hover {
    background: #feb2b2;
    transform: scale(1.1);
}

/* Output Options */
.output-options {
    margin-bottom: 2rem;
}

.output-options h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 1rem;
}

.format-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.format-option {
    cursor: pointer;
    transition: all 0.3s ease;
}

.format-option input[type="radio"] {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
}

.format-option input[type="radio"]:checked + .option-content {
    border-color: #8B1A1A;
    background: #fdf2f2;
    box-shadow: 0 4px 15px rgba(139, 26, 26, 0.2);
}

.option-content i {
    font-size: 1.5rem;
    color: #8B1A1A;
    width: 40px;
    text-align: center;
}

.option-text {
    flex: 1;
}

.option-title {
    display: block;
    font-weight: 600;
    color: #262626;
    margin-bottom: 0.25rem;
}

.option-description {
    display: block;
    font-size: 0.875rem;
    color: #666666;
}

/* Convert Button */
.convert-btn {
    width: 100%;
    background: linear-gradient(135deg, #8B1A1A, #CC3366);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 26, 26, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.convert-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 26, 26, 0.4);
}

.convert-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    box-shadow: none;
}

/* Instructions Card */
.instructions-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.instructions-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instructions-card h3 i {
    color: #8B1A1A;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #8B1A1A, #CC3366);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 0.25rem;
}

.step-content p {
    color: #666666;
    font-size: 0.875rem;
    margin: 0;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #8B1A1A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

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

.loading-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #262626;
    margin-bottom: 0.5rem;
}

.loading-content p {
    color: #666666;
    margin: 0;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid;
}

.notification-success {
    border-left-color: #48bb78;
}

.notification-error {
    border-left-color: #f56565;
}

.notification-info {
    border-left-color: #4299e1;
}

.notification i:first-child {
    font-size: 1.25rem;
}

.notification-success i:first-child {
    color: #48bb78;
}

.notification-error i:first-child {
    color: #f56565;
}

.notification-info i:first-child {
    color: #4299e1;
}

.notification span {
    flex: 1;
    font-weight: 500;
    color: #262626;
}

.notification button {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification button:hover {
    background: #f7fafc;
    color: #718096;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .upload-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .instructions-card {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 2rem 1rem;
    }
    
    .upload-card {
        padding: 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .upload-header h2 {
        font-size: 1.5rem;
    }
    
    .file-upload-area {
        padding: 1.5rem;
    }
    
    .format-options {
        gap: 0.75rem;
    }
    
    .option-content {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .upload-card {
        padding: 1rem;
    }
    
    .file-upload-area {
        padding: 1rem;
    }
    
    .file-details {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .file-text {
        text-align: center;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 0.75rem 1rem;
    }
}