/* convrty File Converter Styles */

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 30%, #f8f9fa 30%, #f8f9fa 100%);
    background-attachment: fixed;
    color: #333;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.navbar-brand {
    color: #333 !important;
}

.nav-link {
    color: #666 !important;
    font-weight: 500;
}

.nav-link:hover {
    color: #333 !important;
}

/* Upload Container */
.upload-container {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #e9ecef;
}

/* Upload Area - Blue eye-catching design */
.upload-area {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: 3px dashed rgba(255,255,255,0.4);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin: 2rem 0;
    transition: all 0.4s ease;
    cursor: pointer;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.3);
}

.upload-area:hover {
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.upload-area.dragover {
    border-color: rgba(255,255,255,0.8);
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(40, 167, 69, 0.4);
}

.upload-icon {
    font-size: 3.5rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
}

/* White button style for upload area */
.btn-white {
    background-color: white;
    color: #007bff;
    border: 2px solid white;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 15px 35px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-white:hover {
    background-color: rgba(255,255,255,0.95);
    color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
    border-color: rgba(255,255,255,0.9);
}

/* File Info Display */
.file-info {
    background-color: rgba(255,255,255,0.95);
    border-radius: 8px;
    padding: 1.5rem;
    color: #333;
    border: 1px solid rgba(255,255,255,0.2);
}

.file-icon {
    font-size: 2rem;
    color: #dc3545;
}

/* Format Selection */
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-label {
    color: #495057;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Convert Button */
#convertBtn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 8px;
    padding: 15px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

#convertBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

#convertBtn:disabled {
    background: #6c757d;
    box-shadow: none;
    cursor: not-allowed;
}

/* Feature Badges */
.format-badges .badge {
    font-size: 0.9rem;
    padding: 8px 12px;
    margin: 4px;
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    border-radius: 20px;
}

/* Cards */
.card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* Alert Messages */
.alert {
    border-radius: 8px;
    border: none;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Loading Modal */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.spinner-border {
    color: #dc3545;
}

/* Features Section */
.features-section {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1rem;
}

.feature-card h5 {
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-area {
        padding: 2rem 1rem;
        min-height: 150px;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .btn-white {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Animation for success state */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* Button loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

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

/* Popular Conversions */
.popular-conversions {
    margin-top: 2rem;
}

.conversion-option {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #e9ecef !important;
}

.conversion-option:hover {
    border-color: #dc3545 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
}

/* Format Categories */
.format-category {
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.format-category:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.conversion-examples {
    font-size: 0.85rem;
}

/* Tool Cards and Categories */
.tools-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 3rem 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.tool-category {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.category-title {
    color: #007bff;
    font-size: 1.3rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.tool-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tool-card:hover {
    border-color: #007bff;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
}

.text-purple {
    color: #6f42c1 !important;
}

/* Header Stats */
.header-stats .stat-item {
    text-align: center;
    padding: 0 1rem;
}

.header-stats .stat-item:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.3);
}

/* Trust indicators */
.trust-indicators {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.trust-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.trust-indicator:last-child {
    margin-bottom: 0;
}

.trust-indicator i {
    color: #28a745;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.trust-indicator span {
    color: #495057;
    font-weight: 500;
}

/* Mega Menu Positioning Fix - All Menus Open Left */
.dropdown-menu.mega-menu {
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    max-width: 90vw;
    margin-right: 15px;
}

/* Alternative mega-menu positioning for all dropdowns */
.mega-dropdown .dropdown-menu {
    right: 0 !important;
    left: auto !important;
    transform: none !important;
}