/* =================== toolsbox247 - Modern UI =================== */
/* Color System with Glassmorphism & Gradients */

:root {
    /* Primary Gradient Colors */
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
    --accent-teal: #4ecdc4;
    --accent-purple: #a05fc4;
    
    /* Action Colors */
    --primary-color: #667eea;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #4ecdc4;
    
    /* Background & Surface */
    --bg-light: #f8f9fa;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --surface-light: rgba(255, 255, 255, 0.9);
    --surface-hover: rgba(255, 255, 255, 0.95);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.2);
    --card-hover-shadow: 0 12px 32px rgba(102, 126, 234, 0.25);
    
    /* Text */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    
    /* Borders */
    --border-color: rgba(0, 0, 0, 0.1);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

[data-bs-theme="dark"] {
    /* Primary Colors - Keep vibrant in dark mode */
    --gradient-start: #7c8fe9;
    --gradient-end: #8a5fc4;
    --accent-teal: #5ee7dc;
    --primary-color: #7c8fe9;
    
    /* Dark Backgrounds */
    --bg-light: #1a1d2e;
    --bg-gradient: linear-gradient(135deg, #1a1d2e 0%, #16213e 100%);
    --surface-light: rgba(26, 29, 46, 0.9);
    --surface-hover: rgba(26, 29, 46, 0.95);
    
    /* Glass Effect - Dark */
    --glass-bg: rgba(26, 29, 46, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    
    /* Shadows - Enhanced for dark */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.6);
    --card-hover-shadow: 0 12px 32px rgba(124, 143, 233, 0.4);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #b8bac2;
    --text-muted: #6c6f7f;
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.1);
    
    background-color: #1a1d2e;
    color: #ffffff;
}

/* =================== Base Styles =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* =================== Glassmorphism Utilities =================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--glass-shadow);
}

.glass-card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(102, 126, 234, 0.3);
}

/* =================== Gradient Utilities =================== */
.gradient-primary {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-border {
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* =================== Header & Navigation =================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-toggler {
    border: none;
    font-size: 1.25rem;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.navbar-toggler:hover {
    transform: scale(1.1);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Navbar height control */
.navbar {
    min-height: 70px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand img {
    object-fit: contain;
    display: block;
}

/* Navigation Links */
.nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--border-radius-sm);
    margin: 0 2px;
    padding: 0.5rem 0.6rem !important;
    font-weight: 500;
    position: relative;
}

.navbar-nav.gap-1 {
    gap: 0.25rem !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(102, 126, 234, 0.1);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Dropdown Menu */
.dropdown-menu {
    border-radius: var(--border-radius-md);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

[data-bs-theme="dark"] .dropdown-menu {
    background: rgba(26, 29, 46, 0.95);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    margin: 2px 0;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-color);
    transform: translateX(4px);
}

/* =================== Tool Cards =================== */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    border: none;
    height: 230px !important;
    background: var(--surface-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    will-change: transform, box-shadow;
}

[data-bs-theme="dark"] .tool-card {
    background: rgba(26, 29, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-hover-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(102, 126, 234, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 70% 70%, rgba(78, 205, 196, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: var(--border-radius-lg);
}

.card-link:hover .card-hover-effects {
    opacity: 1;
}

.tool-card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.3);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(78, 205, 196, 0.15) 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    will-change: transform, background;
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.card-link:hover .icon-wrapper {
    transform: scale(1.15) rotate(5deg);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(78, 205, 196, 0.25) 100%);
}

.card-link:hover .icon-wrapper::before {
    opacity: 0.3;
}

/* Dark mode card adjustments */
[data-bs-theme="dark"] .card {
    background-color: rgba(26, 29, 46, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-bs-theme="dark"] .bg-light {
    background-color: rgba(26, 29, 46, 0.6) !important;
}

[data-bs-theme="dark"] .border-bottom,
[data-bs-theme="dark"] .border-top {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* =================== Theme Toggle =================== */
.theme-toggle-btn {
    font-size: 1.25rem;
    padding: 0.75rem;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(102, 126, 234, 0.15) !important;
    border: 2px solid rgba(102, 126, 234, 0.3) !important;
    color: var(--primary-color) !important;
    min-width: 50px;
    min-height: 50px;
    cursor: pointer !important;
}

[data-bs-theme="dark"] .theme-toggle-btn {
    background: rgba(124, 143, 233, 0.25) !important;
    border-color: rgba(124, 143, 233, 0.4) !important;
    color: var(--accent-teal) !important;
}

.theme-toggle-btn:hover {
    background: rgba(102, 126, 234, 0.3) !important;
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

.theme-toggle-btn i {
    pointer-events: none;
}

/* =================== Buttons =================== */
.btn {
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* =================== Scroll to Top Button =================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* =================== Search Bar =================== */
#searchBar {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--glass-border);
}

#searchResults {
    max-height: 400px;
    overflow-y: auto;
    background: var(--surface-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

[data-bs-theme="dark"] #searchResults {
    background: rgba(26, 29, 46, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

.search-loading {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
}

/* =================== Forms & Inputs =================== */
.form-control {
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background: var(--surface-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: var(--surface-hover);
}

[data-bs-theme="dark"] .form-control {
    background: rgba(26, 29, 46, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* =================== Upload Area =================== */
.upload-area {
    border: 2px dashed var(--border-color) !important;
    border-radius: var(--border-radius-lg) !important;
    background: var(--surface-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(78, 205, 196, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-color) !important;
    background: var(--surface-hover);
    transform: scale(1.01);
    box-shadow: var(--shadow-md);
}

.upload-area:hover::before {
    opacity: 1;
}

[data-bs-theme="dark"] .upload-area {
    background: rgba(26, 29, 46, 0.4);
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* =================== Tool Container =================== */
.tool-container {
    background: var(--surface-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .tool-container {
    background: rgba(26, 29, 46, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

/* =================== Ad Spaces =================== */
.ad-space {
    min-height: 600px;
    min-width: 300px;
    border-radius: var(--border-radius-md);
    background: var(--surface-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

[data-bs-theme="dark"] .ad-space {
    background: rgba(26, 29, 46, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.ad-space-header {
    max-width: 900px;
    max-height: 150px;
    min-height: 150px;
    margin: 0 auto;
    border-radius: var(--border-radius-md);
    background: var(--surface-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px dashed var(--border-color);
}

[data-bs-theme="dark"] .ad-space-header {
    background: rgba(26, 29, 46, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

/* =================== Animations =================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* =================== Image Optimization =================== */
img {
    max-width: 100%;
    height: auto;
}

.img-card__img,
.banner-block__image,
.footer-logo {
    display: block;
    width: 100%;
    height: auto;
}

/* Prevent layout shift for images */
img[width][height] {
    height: auto;
}

/* Content visibility optimization for off-screen content */
.block,
.footer-main {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* =================== Responsive Design =================== */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 2rem 0 !important;
    }
    
    .hero-image {
        margin-top: 1.5rem;
    }
    
    #searchBar {
        position: static;
    }
    
    .tool-card {
        height: auto !important;
        min-height: 200px;
    }
    
    .ad-space {
        min-height: 100px;
        min-width: 320px;
        margin: 1rem 0;
    }
    
    .ad-space-header {
        max-width: 100%;
        min-height: 100px;
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    .tool-card {
        height: 210px !important;
    }
    
    .ad-space {
        min-height: 400px;
    }
}

@media (min-width: 992px) {
    .navbar-nav {
        width: 100%;
        justify-content: right;
        gap: 0.5rem;
    }
    
    .navbar-collapse .d-flex {
        margin-left: auto;
    }
}

/* =================== SHARER =================== */
    .sharer {
	  display: inline-flex;
	  flex-wrap: wrap;
      margin: 5px;
    gap: 8px;
	}

	.share-buttons {
      display: flex;
      flex-wrap: wrap;
    gap: 8px;
      margin: 5px;
    }
    
    .fa.fa-share-alt {
		margin-right: 5px;
    color: var(--accent-teal);
	}
	
	.share-text {
		padding: 9px;
	}
    
    .share-button {
      display: flex;
      align-items: center;
      text-decoration: none;
      color: #fff;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    padding: 10px 14px;
    }
    
    .share-button:hover {
      opacity: 0.8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    }
    
    .share-button i {
      font-size: 14px;
    }
    
/* Social Media Colors */
.share-button.facebook { background-color: #3b5998; }
.share-button.twitter { background-color: #1da1f2; }
.share-button.linkedin { background-color: #0077b5; }
.share-button.pinterest { background-color: #bd081c; }
.share-button.instagram { background-color: #e1306c; }
.share-button.reddit { background-color: #ff4500; }
.share-button.whatsapp { background-color: #25d366; }
.share-button.telegram { background-color: #0088cc; }

/* SVG Icons */
.share-button,
.svg-icon {
    display: inline-block;
    border-radius: var(--border-radius-sm);
}

.share-icon {
    color: #fff;
    padding: 12px 0px;
    font-size: larger;
}

.svg-icon svg {
    width: 1em;
    height: 1em;
    margin: 0;
}

.svg-icon {
    fill: #fff;
    stroke: none;
    transition: 0.3s ease;
}

.share-svg {
    fill: var(--accent-teal);
}

.facebook-svg { padding: 9px; background-color: #3b5998; }
.facebook-svg:hover { background-color: #2d4373; transform: translateY(-2px); }

.twitter-svg { padding: 9px; background-color: #55acee; }
.twitter-svg:hover { background-color: #2795e9; transform: translateY(-2px); }

.reddit-svg { padding: 9px; background-color: #ff4500; }
.reddit-svg:hover { background-color: #d45324; transform: translateY(-2px); }

.whatsapp-svg { padding: 9px; background-color: #25d366; }
.whatsapp-svg:hover { background-color: #1da851; transform: translateY(-2px); }

.telegram-svg { padding: 9px; background-color: #1394d4; }
.telegram-svg:hover { background-color: #016293; transform: translateY(-2px); }

.link-svg,
.copy-url {
    color: #44475b;
    fill: #44475b;
    padding: 9px;
    background-color: #fff;
    border: 1px solid #44475b;
    transition: all 0.3s ease;
}

.link-svg:hover,
.copy-url:hover {
    color: #f36333;
    fill: #f36333;
    border: 1px solid #f36333;
    transform: translateY(-2px);
}

@media only screen and (max-width:768px) {
    .sharer {
        font-size: small;
    }
    .share-button {
        font-size: small;
        padding: 8px 12px;
    }
}

/* =================== Utilities =================== */
.text-gradient {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

[data-bs-theme="dark"] .shadow-glow {
    box-shadow: 0 0 20px rgba(124, 143, 233, 0.5);
}

/* =================== Security Badges =================== */
.security-badge {
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    min-width: 150px;
    transition: all 0.3s ease;
}

.security-badge:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.security-badge i {
    display: block;
}

[data-bs-theme="dark"] .security-badge {
    background: rgba(26, 29, 46, 0.6);
}

/* =================== Homepage Dark Mode Fixes =================== */
[data-bs-theme="dark"] body.home {
    background: linear-gradient(135deg, #1a1d2e 0%, #16213e 100%) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .home-title__title,
[data-bs-theme="dark"] .home-title__subtitle {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .tools__item {
    background: rgba(26, 29, 46, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .tools__item h3,
[data-bs-theme="dark"] .tools__item p {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .tag {
    background: rgba(102, 126, 234, 0.2) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .tag.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .block--white {
    background: rgba(26, 29, 46, 0.6) !important;
}

[data-bs-theme="dark"] .title1,
[data-bs-theme="dark"] .title2,
[data-bs-theme="dark"] .subtitle1 {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .img-card,
[data-bs-theme="dark"] .banner-block {
    background: rgba(26, 29, 46, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .img-card__title,
[data-bs-theme="dark"] .img-card__body {
    color: #ffffff !important;
}

/* =================== Modern Footer Styles =================== */
.footer-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    color: rgba(255, 255, 255, 0.1);
}

.footer-wave svg {
    width: 100%;
    height: 100%;
}

.footer-brand {
    animation: fadeInUp 0.8s ease-out;
}

.footer-logo {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
}

.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-links a:hover i {
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.footer-link-brand {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.footer-link-brand:hover {
    opacity: 0.8;
    color: #ffffff;
}

.footer-tagline {
    font-style: italic;
    opacity: 0.9;
}

/* Dark Mode Footer Adjustments */
[data-bs-theme="dark"] .footer-main {
    background: linear-gradient(135deg, #1a1d2e 0%, #2d1b3d 100%);
}

[data-bs-theme="dark"] .footer-wave {
    color: rgba(102, 126, 234, 0.1);
}

[data-bs-theme="dark"] .footer-logo {
    filter: brightness(1) invert(0);
}

[data-bs-theme="dark"] .footer-heading::after {
    background: rgba(102, 126, 234, 0.7);
}

[data-bs-theme="dark"] .social-icon {
    background: rgba(102, 126, 234, 0.2);
}

[data-bs-theme="dark"] .social-icon:hover {
    background: rgba(102, 126, 234, 0.4);
}

/* Footer Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-heading {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        text-align: center !important;
    }
    
    .footer-bottom p {
        text-align: center !important;
        font-size: 0.85rem;
    }
}

/* =================== Search Results Styles =================== */
.search-result-item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: rgba(102, 126, 234, 0.1);
    text-decoration: none;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item strong {
    color: var(--primary-color);
}

[data-bs-theme="dark"] .search-result-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .search-result-item:hover {
    background-color: rgba(102, 126, 234, 0.2);
}

[data-bs-theme="dark"] .search-result-item strong {
    color: #a89ff7;
}

#searchResults {
    max-height: 400px;
    overflow-y: auto;
}

#searchResults .glass-card {
    backdrop-filter: blur(10px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--glass-shadow);
}

/* =================== Print Styles =================== */
@media print {
    .site-header,
    .scroll-to-top,
    .ad-space,
    .ad-space-header {
        display: none !important;
    }
}
