/* CarBuddy Upload Portal Styles */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Upload area drag and drop */
#upload-area.drag-over {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

/* Message styling */
.message-success {
    background-color: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.message-error {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.message-info {
    background-color: #dbeafe;
    border: 1px solid: #3b82f6;
    color: #1e40af;
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

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

/* File size formatting */
.file-size {
    font-family: 'Courier New', monospace;
}

/* Focus states */
input:focus,
button:focus {
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    header h1 {
        font-size: 2rem;
    }
}
