@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/outfit-v11-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/outfit-v11-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/outfit-v11-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/outfit-v11-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/outfit-v11-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/outfit-v11-900.woff2') format('woff2');
}

:root {
    --bg-main: #f8fafc;
    --bg-card-header: #0f172a;
    --primary: #4f46e5;
    --primary-hover: #3730a3;
    --accent: #06b6d4;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    margin: 0;
    padding-top: 70px; /* offset for sticky navbar */
}

/* Primary and Success Button Overrides for Brand Parity */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}

/* Brand Theme Utility Overrides */
.text-primary {
    color: var(--primary) !important;
}
.bg-primary {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}
.border-primary {
    border-color: var(--primary) !important;
}
.link-primary {
    color: var(--primary) !important;
}
.link-primary:hover, .link-primary:focus {
    color: var(--primary-hover) !important;
}

/* Deep Bootstrap Selector & Active Segmented Overrides */
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle,
.btn-primary:active:focus,
.btn-primary.active:focus {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: #ffffff !important;
}

.btn-outline-primary:active,
.btn-outline-primary.active,
.show > .btn-outline-primary.dropdown-toggle,
.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary,
.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}

.btn-outline-primary:active:focus,
.btn-outline-primary.active:focus,
.btn-check:checked + .btn-outline-primary:focus,
.btn-check:checked + .btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25) !important;
}

/* Form Input & Selection Focus Brand Overrides */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25) !important;
}

/* Checkbox & Radio Selection Custom Brand Theme */
.form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.form-check-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25) !important;
}
.btn-success, .btn-success:active, .btn-success:focus {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #ffffff !important;
}
.btn-success:hover {
    background-color: #0891b2 !important;
    border-color: #0891b2 !important;
}
.btn-outline-success {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}
.btn-outline-success:hover {
    background-color: var(--accent) !important;
    color: #ffffff !important;
}
.bg-success, .badge.bg-success {
    background-color: var(--accent) !important;
    color: #ffffff !important;
}
.text-success {
    color: var(--accent) !important;
}

/* Navbar & Logo Styling */
.navbar-custom {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.brand-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-logo-footer {
    height: 36px;
    width: auto;
    margin: 0 auto;
    opacity: 0.95;
    transition: var(--transition-base);
}

.brand-logo-footer:hover {
    opacity: 1;
}

.platform-badge {
    height: 32px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-link-custom {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: var(--transition-base);
}

.nav-link-custom:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Jumbotron Section */
.hero-section {
    background-color: var(--bg-main);
    padding: 50px 0 30px 0;
    text-align: center;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 20px auto;
    line-height: 1.5;
}

/* Category Container & Header Styles */
.category-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.category-header {
    background-color: var(--bg-card-header);
    color: #ffffff;
    padding: 14px 20px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.category-body {
    padding: 20px;
}

/* Reusable Utility Tool Card Components */
.tool-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    text-decoration: none !important;
    color: var(--text-dark) !important;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 0 2px rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
}

.tool-icon-wrapper {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.tool-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

/* Sidebar Social Media Bar */
.social-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.social-sidebar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 16px;
    transition: var(--transition-base);
}

.social-sidebar-item:hover {
    width: 48px; /* slide-out effect */
}

.social-sidebar-fb { background-color: #3b5998; }
.social-sidebar-wa { background-color: #25d366; }
.social-sidebar-tw { background-color: #1da1f2; }
.social-sidebar-li { background-color: #0077b5; }
.social-sidebar-pi { background-color: #bd081c; }

/* Discover More Section */
.discover-more-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.discover-header {
    background-color: #f8f9fa;
    color: var(--text-dark);
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.discover-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none !important;
    color: var(--text-dark) !important;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-base);
}

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

.discover-item:hover {
    background-color: #f8f9fa;
}

.discover-arrow {
    color: var(--text-muted);
    font-size: 12px;
}


/* Footer Styling */
.site-footer {
    background-color: #212529;
    color: #cfd2d6;
    padding: 40px 0 20px 0;
    font-size: 14px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-text {
    color: #8c9096;
    line-height: 1.6;
}

.footer-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-link {
    color: #cfd2d6 !important;
    text-decoration: none !important;
}

.footer-link:hover {
    text-decoration: underline !important;
}

.footer-copyright {
    color: #8c9096;
    border-top: 1px solid #343a40;
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
}

/* Mobile Responsive Optimization */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    .hero-title {
        font-size: 22px;
    }
    .hero-subtitle {
        font-size: 14px;
    }
    .social-sidebar {
        display: none; /* hide sidebar on mobile */
    }
    .category-header {
        font-size: 16px;
        padding: 10px 15px;
    }
    .category-body {
        padding: 15px 10px;
    }
    .tool-card {
        padding: 12px 15px;
    }
    .tool-title {
        font-size: 14px;
    }
}

/* Upload Area & Drop Zone */
.upload-zone {
    border: 2px dashed #ccd1d9;
    border-radius: 8px;
    background-color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary);
    background-color: #f8f9fa;
}

.upload-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* File Preview Card */
.preview-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
    display: none;
}

/* Toast Notification System */
.toast-container-custom {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-custom {
    min-width: 250px;
    background-color: #333333;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-custom.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-custom-success {
    background-color: #28a745;
}

.toast-custom-error {
    background-color: #dc3545;
}

.toast-custom-warning {
    background-color: #ffc107;
    color: #333333;
}

/* Spinner and Processing States */
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    display: none;
}

.processing-text {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Accessibility Keyboard Navigation Outlines */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25) !important;
}

/* Extra Small Mobile Devices Tuning (320px - 480px) */
@media (max-width: 480px) {
    body {
        padding-top: 55px;
    }
    .hero-section {
        padding: 25px 10px 15px 10px;
    }
    .hero-title {
        font-size: 20px;
    }
    .hero-subtitle {
        font-size: 13px;
    }
    .upload-zone {
        padding: 25px 10px;
    }
    .upload-icon {
        font-size: 36px;
    }
    .form-check-inline {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 10px !important;
    }
    .d-flex.gap-3 button,
    .d-flex.gap-3 a {
        width: 100%;
    }
    .table th, .table td {
        font-size: 12px;
        padding: 8px 4px;
    }
}

/* Accordion styling for collapsible FAQs */
details.faq-accordion summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    font-size: 0.95rem;
}
details.faq-accordion summary::-webkit-details-marker {
    display: none;
}
details.faq-accordion summary::after {
    content: "+";
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    transition: transform 0.2s ease;
}
details.faq-accordion[open] summary::after {
    content: "−";
}
details.faq-accordion p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Reusable AdSense Placeholder slots */
.adsense-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    margin: 20px auto;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    transition: var(--transition-base);
}

.adsense-slot::before {
    content: 'ADVERTISEMENT';
    font-size: 9px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.adsense-slot .ad-placeholder-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

/* Specific Slot Sizes to prevent CLS */
.ad-banner {
    width: 100%;
    max-width: 970px;
    height: 90px;
    min-height: 90px;
}

.ad-inline {
    width: 100%;
    max-width: 728px;
    height: 90px;
    min-height: 90px;
}

.ad-sidebar {
    width: 100%;
    max-width: 300px;
    height: 250px;
    min-height: 250px;
}

.ad-mobile-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 50px;
    min-height: 50px;
    background-color: #ffffff;
    border-top: 1px solid #cbd5e1;
    z-index: 1000;
    margin: 0;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
    display: none; /* Only shown on mobile viewports */
}

/* GDPR / Cookie Consent Banner styling */
.cookie-consent-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 12px;
    z-index: 99999;
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    transform: translateY(100px);
}
.cookie-consent-banner.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .ad-banner {
        height: 100px;
        min-height: 100px;
    }
    .ad-inline {
        height: 100px;
        min-height: 100px;
    }
    .ad-mobile-sticky {
        display: flex; /* Active on mobile */
    }
    .cookie-consent-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}


