/* ============================================
   ICON GROUP - MAIN THEME (Light Blue Modern)
   Theme 1: Default Professional Theme
   ============================================ */

:root {
    /* Primary Colors */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary-color: #64748b;
    --secondary-hover: #475569;

    /* Footer Newsletter Input Styling */
    footer .input-group .form-control::placeholder {
        color: rgba(255, 255, 255, 0.5) !important;
        opacity: 1;
        /* Firefox */
    }

    footer .input-group .form-control {
        color: #fff !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }

    /* Backgrounds */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;

    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;

    /* Border & Shadows */
    --border-color: #e2e8f0;
    --border-dark: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Success, Warning, Danger */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Fixed Header Styles */
/* Fixed Header Styles */
/* Fixed Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    /* Geliştirme: Bootstrap Backdrop (1040) maskesini geçmesi için 1000'den 1050'ye yükseltildi */
    transition: all 0.3s ease;
    background: transparent;
}

/* Add padding to body to prevent content from being hidden behind fixed header */
body:not(.home-page) {
    padding-top: 90px;
}

@media (max-width: 991.98px) {
    body:not(.home-page) {
        padding-top: 68px;
        /* Top bar gizlendiği için sadece navbar yüksekliği kadar boşluk bırakıldı */
    }
}

/* Top Bar - Setup for transition */
.top-bar {
    transition: all 0.4s ease;
    max-height: 50px;
    opacity: 1;
    overflow: hidden;
}

/* Scrolled state */
header.scrolled {
    top: 0 !important;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

header.scrolled .top-bar {
    max-height: 0 !important;
    height: 0;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Scroll Sonrası (Beyaz Arka Planda) Mobil Bildirim Zili ve İkonların Rengini Koyulaştırma */
header.scrolled #notif-bell-mobile {
    color: var(--text-primary) !important;
}

header.scrolled .navbar-toggler-icon {
    filter: invert(1);
    opacity: 0.8;
}

header.scrolled .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: none;
}

/* Preloader */

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 120px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.preloader-bar {
    width: 200px;
    height: 4px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.preloader-progress {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    animation: loadProgress 2s ease-in-out infinite;
    position: absolute;
    top: 0;
    left: 0;
}

.preloader-text {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

@keyframes loadProgress {
    0% {
        width: 0%;
        left: 0;
    }

    50% {
        width: 70%;
        left: 0;
    }

    100% {
        width: 0%;
        left: 100%;
    }
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
}

/* ============================================
   FORMS
   ============================================ */


.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    /* Essential for input icon positioning */
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.4rem 0.75rem 0.4rem 2.4rem;
    /* Even tighter padding */
    color: var(--text-primary);
    transition: all 0.2s ease-in-out;
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.form-control:focus {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* New Robust Positioning */
.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s;
}

.form-control:focus+.input-icon,
.form-control:focus~.input-icon {
    color: var(--primary-color);
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    border-radius: 0.75rem;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

/* ============================================
   AUTH PAGES (Login/Register)
   ============================================ */

.auth-page {
    background-color: var(--bg-main);
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    /* Increased width to match dark theme */
    padding: 2rem;
    /* Reduced padding */
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    color: white;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transform: rotate(-5deg);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.btn-auth {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-auth:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Old input-icon definition removed, now handled in FORMS section */

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider::before {
    margin-right: 1rem;
}

.auth-divider::after {
    margin-left: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.alert-auth {
    padding: 1rem;
    border-radius: 0.75rem;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

/* ============================================
   MEMBERSHIP PLANS / PRICING TABLES
   ============================================ */

.transition-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transition-hover:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.nav-pills .nav-link {
    color: #000000 !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background: var(--primary-color);
    color: var(--text-white) !important;
}

/* ============================================
   HERO SLIDER
   ============================================ */

#hero-slider {
    position: relative;
    height: 600px;
}

.carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(37, 99, 235, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--text-white);
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.6);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border-radius: 0;
}

/* ============================================
   SECTIONS
   ============================================ */

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.intro-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-card) 100%);
}

.sectors-section {
    background: var(--bg-main);
    padding: 5rem 0;
}

/* ============================================
   SECTOR CARDS
   ============================================ */

.sector-card {
    background: var(--bg-card);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.sector-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.sector-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.sector-card:hover .sector-img {
    transform: scale(1.05);
}

.sector-body {
    padding: 1.5rem;
    text-align: center;
}

.sector-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* ============================================
   LISTING CARDS
   ============================================ */

.listing-card {
    transition: all 0.3s ease;
}

.listing-card:hover {
    transform: translateY(-5px);
}

/* ============================================
   HOVER EFFECTS
   ============================================ */

.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* ============================================
   COMPANY LOGOS
   ============================================ */

.companies-section {
    background: var(--bg-main);
}

.company-logo {
    max-height: 80px;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.company-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {

    #hero-slider,
    .carousel-item {
        height: 760px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Reduce navbar padding on mobile when scrolled - eliminate top gap */
    header.scrolled .navbar {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
}

/* ============================================
   MOBILE NAVBAR (≤992px)
   ============================================ */

@media (max-width: 991.98px) {

    /* --- Yeni Modern & Premium Mobil Drawer Stilleri --- */
    .modern-mobile-menu {
        background: rgba(15, 23, 42, 0.95) !important;
        /* Dark Slate transparent */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .modern-mobile-menu .offcanvas-header {
        background: rgba(0, 0, 0, 0.2) !important;
        padding: 1.5rem 1.25rem !important;
    }

    .modern-mobile-menu .offcanvas-body {
        padding: 1.5rem 1.25rem 2rem 1.25rem;
        overflow-x: hidden;
    }

    /* Premium Nav Listesi Animasyonları ve Görünümü */
    .premium-nav-list .nav-link {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid transparent;
        font-weight: 500;
        font-size: 0.95rem;
    }

    .premium-nav-list .nav-link:hover,
    .premium-nav-list .nav-link:focus,
    .premium-nav-list .nav-link[aria-expanded="true"] {
        background: rgba(255, 255, 255, 0.08) !important;
        border-color: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
        color: #fff !important;
    }

    .premium-nav-list .nav-link.active {
        background: linear-gradient(90deg, rgba(37, 99, 235, 0.2) 0%, transparent 100%) !important;
        border-left: 3px solid var(--primary-color) !important;
        color: #fff !important;
    }

    /* Akordeon Ok Çevirme Animasyonu */
    .premium-nav-list .transition-icon {
        transition: transform 0.3s ease;
    }

    .premium-nav-list .nav-link[aria-expanded="true"] .transition-icon {
        transform: rotate(180deg);
        color: var(--primary-color);
    }

    /* Dropdown Alt Menüleri */
    .premium-nav-list .collapse .card {
        border-left: 2px solid rgba(255, 255, 255, 0.05) !important;
        margin-left: 1rem;
        border-radius: 0;
    }

    .premium-nav-list .menu-child-item {
        font-size: 0.85rem;
        transition: all 0.2s ease;
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .premium-nav-list .menu-child-item:hover,
    .premium-nav-list .menu-child-item.text-primary.fw-bold {
        color: #fff !important;
        transform: translateX(5px);
    }

    .premium-nav-list .menu-child-item.text-primary.fw-bold {
        color: #93c5fd !important;
    }

    /* Kullanıcı Profil Widget */
    .user-profile-widget {
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }

    .user-profile-widget:hover {
        background: rgba(255, 255, 255, 0.08) !important;
    }

    .tracking-wide {
        letter-spacing: 1px;
    }

    /* Offcanvas Açıkken Sayfanın Kaymasını / Bozulmasını Engelleyen Onarımlar */
    body.offcanvas-active,
    html.offcanvas-active {
        overflow: hidden !important;
        /* Arkadaki sayfanın kaymasını engeller */
        touch-action: none;
    }

    .offcanvas-backdrop {
        /* Mobil Safari ve bazı tarayıcılardaki scroll sıçrama problemini engeller */
        position: fixed;
        inset: 0;
        z-index: 1040;
    }
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: #1e293b;
    /* Dark Slate Blue/Gray for contrast */
    color: #f8fafc;
    /* Very light gray/white text */
    padding-top: 3rem;
    padding-bottom: 2rem;
}

footer h5 {
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.2s ease;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-primary {
    background: var(--primary-color) !important;
}

.bg-light {
    background: var(--bg-main) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* ============================================
   HEADER BUTTONS (Login/Register)
   ============================================ */
.nav-link-btn {
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-link-btn:hover {
    color: var(--primary-color) !important;
}

.btn-minimal {
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-minimal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border-color: #ffffff;
}

/* ============================================
   HEADER & TOP BAR DARK THEME (Minimalist)
   ============================================ */

.top-bar {
    background: #252525 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Inter', sans-serif;
    /* Minimalist font */
    letter-spacing: 0.5px;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.8rem;
    font-weight: 300;
    /* Thin font */
    transition: all 0.2s ease;
    text-decoration: none;
}

.top-bar a:hover {
    color: var(--primary-color) !important;
    opacity: 1;
}

.top-bar i {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-right: 6px;
}

.social-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.social-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.top-bar a {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.2s ease;
}

.top-bar a:hover {
    color: var(--primary-color) !important;
}

.top-bar i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.social-link {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.social-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Mobile Responsive Top Bar */
@media (max-width: 767px) {
    .top-bar {
        padding: 0.4rem 0 !important;
    }

    /* Hide email and phone on mobile */
    .top-bar .col-md-6:first-child {
        display: none !important;
    }

    /* Center social icons on mobile */
    .top-bar .col-md-6:last-child {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center !important;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
    }

    .social-link {
        font-size: 1.1rem !important;
        margin: 0 !important;
    }
}

.navbar {
    background: #0f0f0f !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand img {
    filter: brightness(1.2);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: #93c5fd !important;
    /* Lighter blue - 7.2:1 contrast on #0f0f0f - WCAG AA PASS */
    font-weight: 600;
}

.dropdown-menu {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.9);
}

.dropdown-item:hover {
    background: rgba(37, 99, 235, 0.2);
    color: var(--primary-color);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.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(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Footer overflow fix & Overscroll color match */
html {
    background-color: #212529;
    /* Matches Bootstrap .bg-dark footer */
    height: 100%;
}

body {
    background-color: var(--bg-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

footer {
    overflow-x: hidden;
    margin-top: auto;
}

/* ============================================
   MOVING REQUEST FORM (Light Theme Override)
   ============================================ */
/* Ensure card in moving request has white bg and dark text in Theme 1 */
.moving-request-card,
main .card {
    background-color: #ffffff;
    color: var(--text-primary);
}

main .card .form-control {
    background-color: #f8fafc;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

main .card .form-label {
    color: var(--text-primary);
}

/* ============================================
   SETTINGS PANEL (Animations Control)
   ============================================ */

.settings-toggle {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
}

.settings-toggle:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.6);
}

.settings-panel {
    position: fixed;
    right: -320px;
    bottom: 6rem;
    width: 300px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    z-index: 9998;
    transition: right 0.3s ease;
}

.settings-panel.open {
    right: 2rem;
}

.settings-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-switch {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-dark);
    transition: 0.3s;
    border-radius: 24px;
}

.slider-switch:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--text-white);
    transition: 0.3s;
    border-radius: 50%;
}

input:checked+.slider-switch {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

input:checked+.slider-switch:before {
    transform: translateX(20px);
}

/* Settings Toggle - Always Visible */
.settings-toggle {
    display: flex !important;
}

/* ============================================
   QUICK ACTION CARDS (Custom Frames)
   ============================================ */
.quick-card {
    background: #ffffff;
    border: none !important;
    /* Remove default Bootstrap border */
    border-radius: 1.5rem !important;
    /* Maintain specific roundness */
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.05),
        /* Faux Border - Subtle */
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        /* Drop Shadow */
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    /* Inner light stroke */
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

/* Gradient Stroke Effect on Hover via Pseudo-element */
.quick-card::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Full coverage */
    border-radius: 1.5rem;
    padding: 2px;
    /* Border width */
    background: linear-gradient(135deg, var(--primary-color), var(--info-color), #8b5cf6);
    -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;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.quick-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 15px 30px -5px rgba(37, 99, 235, 0.15),
        /* Primary color shadow */
        0 8px 10px -5px rgba(37, 99, 235, 0.04);
}

.quick-card:hover::after {
    opacity: 1;
    transform: scale(1);
    /* Ensure it scales nicely if needed */
}

/* Optional: Icon Rotation or Scale inside quick-card */
.quick-card:hover .rounded-circle {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

/* ============================================
   ELEGANT CARDS (Membership, Storage, Listing)
   ============================================ */
.elegant-card {
    background: #ffffff;
    border: none !important;
    border-radius: 1.5rem !important;
    /* Matches quick-card */
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
    height: 100%;
    /* Ensure full height in columns */
    display: flex;
    flex-direction: column;
}

/* Ensure ::after pseudo-element creates the border effect */
.elegant-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color), #8b5cf6);
    -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;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.elegant-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 15px 30px -5px rgba(37, 99, 235, 0.15),
        0 8px 10px -5px rgba(37, 99, 235, 0.04);
}

.elegant-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.elegant-card .card-img-top {
    /* Ensure image respects border radius at top */
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    width: 100%;
}

/* User Account Button Fix */
.user-account-btn.show,
.user-account-btn:active,
.user-account-btn:focus {
    color: #000 !important;
    background-color: #fff !important;
    border-color: #fff !important;
}

/* Fix for dark mode if needed, assuming default is light text on dark header */
.navbar-dark .user-account-btn {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-dark .user-account-btn:hover {
    color: #fff;
    border-color: #fff;
}

/* ============================================
   NOTIFICATION DROPDOWN FIXES
   ============================================ */
#notif-dropdown {
    background-color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border-radius: 12px !important;
    overflow: hidden;
    color: var(--text-primary) !important;
}

#notif-dropdown .dropdown-header {
    background-color: #f8fafc !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    font-weight: 700;
}

#notif-dropdown .dropdown-header h6,
#notif-dropdown .dropdown-header small {
    color: var(--text-primary) !important;
}

/* Bildirim listesi öğeleri */
#notif-list .list-group-item {
    background-color: #ffffff !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 12px 16px;
    transition: background-color 0.2s ease;
}

#notif-list .list-group-item:hover {
    background-color: #f1f5f9 !important;
}

/* Okunmamış (koyu arka plan yerine açık hafif mavi) */
#notif-list .list-group-item.bg-dark {
    background-color: #eff6ff !important;
    /* Light blue */
    color: var(--text-primary) !important;
}

#notif-list .list-group-item.bg-dark h6,
#notif-list .list-group-item.bg-dark strong {
    color: var(--primary-color) !important;
}

/* Metin renkleri */
#notif-list h6,
#notif-list strong {
    color: var(--text-primary) !important;
    font-weight: 600;
}

#notif-list small,
#notif-list p {
    color: var(--text-secondary) !important;
}

#notif-list .text-muted {
    color: #94a3b8 !important;
}

/* Footer link */
#notif-dropdown .dropdown-item {
    text-align: center;
    padding: 10px;
    color: var(--primary-color) !important;
    font-weight: 600;
    background-color: #f8fafc !important;
    border-top: 1px solid var(--border-color);
}

#notif-dropdown .dropdown-item:hover {
    background-color: #e2e8f0 !important;
}

/* ============================================
   ACCESSIBILITY: CONTRAST FIXES (WCAG AA)
   ============================================ */

/* text-muted was #94a3b8 (2.85:1 on white - FAIL).
   #596779 gives ~4.7:1 on white - PASSES AA */
:root {
    --text-muted: #596779;
}

.text-muted {
    color: #596779 !important;
}

small.text-muted,
.small.text-muted {
    color: #4a5568 !important;
}

/* Form labels in moving/contact cards */
label.small.text-muted,
label.small.text-muted.fw-bold {
    color: #374151 !important;
}

/* Settings panel small text */
.settings-panel small.text-muted,
.settings-panel .text-muted {
    color: #4a5568 !important;
}

/* opacity-75 on primary bg - force full opacity for contrast */
.bg-primary .opacity-75,
[style*="background-color"] .opacity-75 {
    opacity: 1 !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

/* p.text-muted on bg-white sections */
section.bg-white p.text-muted,
.bg-white .text-muted {
    color: #596779 !important;
}

/* ============================================
   NOTIFICATION PERMISSION MODAL
   ============================================ */

.notification-permission-modal {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Flex sırası yerine viewport'a sabit */
    flex: none !important;
    min-height: unset !important;
}

.notification-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.notification-modal-content {
    position: relative;
    z-index: 100000;
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.notification-icon {
    margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
    .notification-modal-content {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }
}