/* Large Marge - File Upload Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

.resume-section {
    margin-bottom: 2rem;
}

.resume-banner {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ebff 100%);
    border: 1px solid #667eea;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.resume-info h3 {
    margin: 0 0 0.5rem 0;
    color: #667eea;
    font-size: 1.2rem;
}

.resume-info p {
    margin: 0.25rem 0;
    color: #333;
}

.resume-dismiss {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.resume-dismiss:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.upload-section {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

.file-input-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-input-label {
    display: block;
    padding: 2rem;
    border: 2px dashed #667eea;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.file-input-label:hover {
    border-color: #764ba2;
    background: #f0f2ff;
    transform: translateY(-2px);
}

.file-input-text {
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 500;
}

.file-info {
    background: #f8f9ff;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.file-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

.file-size {
    color: #666;
    font-size: 0.9rem;
    background: #e8ebff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.upload-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.upload-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.upload-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.progress-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e5e9;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e1e5e9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

#progress-text {
    font-weight: 600;
    color: #667eea;
}

#upload-status {
    color: #666;
    font-style: italic;
}

.result-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e5e9;
}

.result-message {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.result-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Truck Animation Styles */
.truck-animation {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(135deg, #87CEEB 0%, #98D8E8 100%);
    border-radius: 12px;
    margin-top: 1rem;
    border: 3px solid #FFD700;
}

.truck-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.truck {
    font-size: 4rem;
    position: absolute;
    left: -100px;
    transition: all 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.truck-animation.truck-drive-in .truck {
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 0.5s ease-in-out 2s;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.marge-message {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 1s ease-in-out 2.5s;
}

.truck-animation.truck-drive-in .marge-message {
    opacity: 1;
}

.speech-bubble {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    border: 3px solid #FF4500;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-family: 'Comic Sans MS', cursive, sans-serif;
    max-width: 200px;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid #FF4500;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    left: -9px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 12px solid white;
}

.speech-bubble p {
    margin: 0.25rem 0;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
}

.speech-bubble strong {
    color: #FF4500;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Sticky Footer */
.sticky-footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 0;
    margin-top: auto;
    text-align: center;
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.footer-content a {
    color: #87CEEB;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #FFD700;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .upload-section {
        padding: 1.5rem;
    }
    
    .file-input-label {
        padding: 1.5rem;
    }
    
    .file-details {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Animation for form elements */
.upload-form > * {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}