:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-image {
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-badge i {
    margin-right: 8px;
    font-size: 1rem;
}

/* Stats Section */
.stat-card {
    padding: 2rem 1rem;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Category Sections */
.category-section {
    margin-bottom: 4rem;
}

.category-header {
    margin-bottom: 2rem;
}

.category-icon-wrapper {
    display: inline-block;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.category-icon {
    font-size: 2.5rem;
    display: block;
}

/* Tool Cards */
.tool-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.tool-card-body {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.tool-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.tool-description {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tool-btn {
    margin-top: auto;
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

/* Upload Zone - Clean & Compact */
.upload-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-top: 2rem;
}

.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    background: #fafbfc;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.05);
}

.upload-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.file-input {
    display: none;
}

.upload-content h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Options Panel */
.options-panel {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.option-group {
    margin-bottom: 1rem;
}

.option-group:last-child {
    margin-bottom: 0;
}

/* Progress Container */
.progress-container {
    margin-top: 2rem;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
}

/* Tool Icon Large - Compact */
.tool-icon-large {
    font-size: 2.5rem;
    display: inline-block;
}

/* Result Page */
.success-icon {
    font-size: 5rem;
}

.result-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.result-header {
    background: var(--light-color);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.result-body {
    padding: 2rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.detail-item label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.detail-item span {
    font-weight: 500;
    color: var(--dark-color);
}

.download-section {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 1.5rem;
}

.download-icon {
    font-size: 3rem;
    color: var(--success-color);
}

.download-btn {
    box-shadow: var(--box-shadow);
    border: none;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

/* Action Buttons */
.action-buttons {
    margin-top: 2rem;
}

/* Tips Section */
.tips-section {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 2rem;
}

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

.tip-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.tip-card h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tip-card p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Share Section */
.share-section {
    border-top: 1px solid #dee2e6;
    padding-top: 2rem;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Features Section */
.feature-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.feature-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.feature-item h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-item p {
    margin-bottom: 0;
    color: var(--secondary-color);
}

/* Info Cards */
.info-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
}

.info-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.info-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Tool Info */
.tool-info {
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    .upload-zone {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .feature-badge {
        display: block;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .action-buttons {
        text-align: center;
    }
    
    .action-buttons .btn {
        display: block;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .social-buttons {
        justify-content: center;
    }
    
    .social-buttons .btn {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .upload-container {
        padding: 1rem;
    }
    
    .result-card .result-body {
        padding: 1rem;
    }
    
    .tool-card-body {
        padding: 1rem;
    }
    
    .feature-item {
        padding: 0.75rem;
    }
    
    .tips-section {
        padding: 1rem;
    }
}

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

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

.scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Utility Classes */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Beautiful Footer Styles - High Priority */
footer.footer-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%) !important;
    position: relative;
    overflow: hidden;
    color: #ffffff !important;
}

body footer.footer-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%) !important;
    border-top: 3px solid #e74c3c;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229, 57, 53, 0.5), transparent);
}

.footer-text {
    color: #b8c5d1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    margin: 0;
    padding: 0;
}

.footer-feature {
    color: #b8c5d1;
    padding: 0.25rem 0;
    transition: all 0.3s ease;
}

.footer-feature:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-link {
    color: #b8c5d1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateX(5px);
}

.footer-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 2rem 0 !important;
}

.footer-copyright {
    color: #e8f1f8;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-built {
    color: #9fb8cc;
    opacity: 0.9;
}

.footer-built .footer-link {
    color: #9fb8cc;
    text-decoration: underline;
}

.footer-built .footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Add subtle animations */
@keyframes footerGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.footer-section h5 i,
.footer-section h6 {
    animation: footerGlow 3s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}
