body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    padding: 3rem;
    max-width: 1200px;
}

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

.header h1 {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.tool-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.tool-card h3, .tool-card h4 {
    color: #667eea;
    margin-bottom: 1rem;
    font-weight: 600;
}

.upload-zone {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.05);
    cursor: pointer;
    margin-bottom: 1rem;
}

.upload-zone:hover {
    border-color: #764ba2;
    background: rgba(118, 75, 162, 0.1);
}

.upload-zone.dragover {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.upload-zone.compact {
    padding: 1.5rem 1rem;
    min-height: 120px;
}

.upload-zone.compact.file-selected {
    padding: 1rem;
    min-height: 140px;
}

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

.file-selected-content .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.btn-custom {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-success-custom {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn-success-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(40, 167, 69, 0.3);
    color: white;
}

.btn-danger-custom {
    background: linear-gradient(45deg, #dc3545, #e91e63);
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn-danger-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.3);
    color: white;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #dee2e6;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-select {
    border-radius: 10px;
    border: 2px solid #dee2e6;
    padding: 12px 15px;
}

.loading {
    text-align: center;
    padding: 2rem;
    display: none;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.result-section {
    background: rgba(40, 167, 69, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    display: none;
}

.nav-pills .nav-link {
    border-radius: 25px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.file-list {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.file-item:last-child {
    border-bottom: none;
}

.alert-custom {
    border-radius: 15px;
    border: none;
    padding: 1rem 1.5rem;
}

.back-to-home {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.page-info {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Progress bar styles */
.progress-container {
    margin: 1rem 0;
    display: none;
}

.progress {
    height: 8px;
    border-radius: 10px;
    background-color: rgba(102, 126, 234, 0.1);
}

.progress-bar {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .main-container {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .upload-zone {
        padding: 2rem 1rem;
    }
    
    .upload-zone.compact {
        padding: 1rem 0.5rem;
        min-height: 100px;
    }
}

/* Animation improvements */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

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

/* File upload improvements */
.upload-zone.processing {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.upload-zone.success {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.upload-zone.error {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
} 