 link-tools {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
    }

    .link-section {
      display: flex;
      flex-direction: column;
      align-items: center;         /* kept as requested */
      max-width: 900px;            /* as requested */
      width: 100%;
      background: white;
      border-radius: 1.2rem;
      padding: 1.5rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      transition: all 0.2s ease;
    }

   
    .link-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      justify-content: center;     /* ensures nice centering when wrapped */
      width: 100%;
    }

    /* link-box: consistent chip style */
    .link-box {
      background: #f8f9fc;
      border: 1px solid #e9ecf0;
      border-radius: 0.6rem;
      padding: 0.5rem 0.9rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: background 0.15s, border-color 0.15s;
      /* avoid shrinking too much */
      flex-shrink: 0;
    }

    .link-box:hover {
      background: #f0f2f7;
      border-color: #c8d0dc;
    }

    .link-box a {
      color: #1a2634;
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 500;
      white-space: nowrap;
    }

    .link-box a:hover {
      color: #0057b3;
    }

    .link-box .sep {
      color: #b0b8c4;
      font-size: 0.7rem;
      margin: 0 0.1rem;
    }

    
    @media (max-width: 480px) {
      .link-section {
        padding: 1rem;
        align-items: center;  
      }
      .link-box {
        padding: 0.4rem 0.7rem;
      }
      .link-box a {
        font-size: 0.85rem;
      }
    }

    
    @media (max-width: 400px) {
      .link-box {
        padding: 0.3rem 0.6rem;
      }
      .link-box a {
        font-size: 0.8rem;
      }
    }

:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --bg-light: #f8f9fa;
}

body {
    background-color: #f0f2f5;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-container {
    max-width: 900px;
    margin: 0 auto;
    flex: 1;
}

.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 1rem;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary-color);
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.settings-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: none;
}

.file-item {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.file-item:hover {
    border-color: var(--primary-color);
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
}

.preview-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
    background-color: #eee;
}

/* Loading Spinner Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

footer {
    background: white;
    margin-top: auto;
    border-top: 1px solid #e5e5e5;
}

/* Range Slider Customization */
input[type=range]::-webkit-slider-thumb {
    background: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #7209b7;
    --success-color: #4cc9f0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --feature-color-1: #4361ee;
    --feature-color-2: #3a0ca3;
    --feature-color-3: #7209b7;
    --feature-color-4: #f72585;
    --feature-color-5: #4cc9f0;
    --feature-color-6: #4895ef;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f9fafc;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.container {
    max-width: 1200px;
}

/* Header Styles */
.main-header {
    text-align: center;
    margin-bottom: 30px;
}

.main-header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.main-header p {
    color: var(--gray-color);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Tool Card */
.tool-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 40px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* Features Section */
.features-section {
    background-color: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 40px;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-top: 4px solid var(--feature-color-1);
    height: 100%;
}

.feature-card:nth-child(2) {
    border-top-color: var(--feature-color-2);
}

.feature-card:nth-child(3) {
    border-top-color: var(--feature-color-3);
}

.feature-card:nth-child(4) {
    border-top-color: var(--feature-color-4);
}

.feature-card:nth-child(5) {
    border-top-color: var(--feature-color-5);
}

.feature-card:nth-child(6) {
    border-top-color: var(--feature-color-6);
}

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

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-card:nth-child(1) .feature-icon {
    color: var(--feature-color-1);
}

.feature-card:nth-child(2) .feature-icon {
    color: var(--feature-color-2);
}

.feature-card:nth-child(3) .feature-icon {
    color: var(--feature-color-3);
}

.feature-card:nth-child(4) .feature-icon {
    color: var(--feature-color-4);
}

.feature-card:nth-child(5) .feature-icon {
    color: var(--feature-color-5);
}

.feature-card:nth-child(6) .feature-icon {
    color: var(--feature-color-6);
}

.feature-card h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* FAQ Section */
.faq-section {
    background-color: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 40px;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: var(--light-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-question.active {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
}

.faq-answer.show {
    padding: 20px;
    max-height: 500px;
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

/* Article Section */
.article-section {
    background-color: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 40px;
}

.article-section h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.article-section h3 {
    color: var(--dark-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.article-section p {
    margin-bottom: 15px;
}

.article-section ul, .article-section ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.article-section li {
    margin-bottom: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 2rem;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .features-section, .faq-section, .article-section {
        padding: 25px 20px;
    }
}

@media (max-width: 576px) {
    .main-header h1 {
        font-size: 1.8rem;
    }
}

/* Stats Banner */
.stats-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Tips Section */
.tips-section {
    background-color: #e8f4fd;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    border-left: 5px solid var(--primary-color);
}

.tips-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.tip-icon {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 3px;
} 

:root {
    --primary-gradient: linear-gradient(135deg, #5558ff 0%, #00c0ff 100%);
    --primary-color: #5558ff;
    --secondary-color: #00c0ff;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --transition: all 0.3s ease;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0.8rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--primary-color);
}

.navbar-brand svg {
    margin-right: 10px;
    transition: var(--transition);
}

.navbar-brand:hover svg {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color);
    margin: 0 8px;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:not(.btn):hover {
    color: var(--primary-color);
    background-color: rgba(85, 88, 255, 0.08);
}

.nav-link:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:not(.btn):hover::after {
    width: 70%;
}

/* Desktop hover behavior */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: slideInRight 0.3s ease forwards;
    }
    
    .dropdown-toggle::after {
        transition: var(--transition);
    }
    
    .dropdown:hover .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    /* Right-to-left dropdown positioning */
    .dropdown-menu-right {
        right: 0;
        left: auto;
        transform: translateX(20px);
        opacity: 0;
    }
    
    /* Animation for right-to-left dropdown */
    @keyframes slideInRight {
        from {
            transform: translateX(20px);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
}

/* Mobile click behavior */
@media (max-width: 991.98px) {
    .dropdown-toggle::after {
        display: inline-block;
        margin-left: 0.255em;
        vertical-align: 0.255em;
        content: "";
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
    }
    
    .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
    
    /* Mobile dropdown with scroll */
    .dropdown-menu.mobile-scroll {
        max-height: 70vh;
        overflow-y: auto;
        padding: 1rem;
    }
    
    /* Custom scrollbar for mobile dropdown */
    .dropdown-menu.mobile-scroll::-webkit-scrollbar {
        width: 6px;
    }
    
    .dropdown-menu.mobile-scroll::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .dropdown-menu.mobile-scroll::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }
    
    .dropdown-menu.mobile-scroll::-webkit-scrollbar-thumb:hover {
        background: var(--secondary-color);
    }
    
    /* Scroll indicator for mobile */
    .scroll-indicator {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        height: 30px;
        background: linear-gradient(transparent, rgba(255,255,255,0.9));
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 5px;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .scroll-indicator.show {
        opacity: 1;
    }
    
    .scroll-indicator i {
        color: var(--primary-color);
        font-size: 0.8rem;
        animation: bounce 2s infinite;
    }
    
    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateY(0);
        }
        40% {
            transform: translateY(-5px);
        }
        60% {
            transform: translateY(-3px);
        }
    }
    
    /* Right alignment for mobile dropdown */
    .dropdown-menu {
        right: 0;
        left: auto;
        transform: translateX(10px);
    }
    
    .dropdown-menu.show {
        animation: mobileSlideInRight 0.3s ease forwards;
    }
    
    @keyframes mobileSlideInRight {
        from {
            transform: translateX(10px);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
}

.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    width: 500px;
    margin-top: 10px;
}

.dropdown-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.dropdown-header {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.dropdown-header i {
    margin-right: 8px;
    color: var(--primary-color);
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.dropdown-item:hover {
    background-color: rgba(85, 88, 255, 0.08);
    color: var(--primary-color);
}

.dropdown-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-top: 1rem;
    }
    
    .nav-link {
        margin: 4px 0;
        padding: 10px 16px !important;
    }
    
    .btn-compress {
        margin-top: 8px;
        width: 100%;
        text-align: center;
    }
    
    .dropdown-menu {
        width: calc(100vw - 2rem);
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .dropdown-two-column {
        grid-template-columns: 1fr;
    }
    
    /* Hide dropdown arrow on desktop */
    .dropdown-toggle::after {
        display: none;
    }
}

.compact-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 15px 0;
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e74c3c;
}

.copyright {
    color: #bdc3c7;
}

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .footer-links {
        justify-content: center;
    }
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px; 
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
}