:root {
    --primary-blue: #1E3A8A;
    --secondary-blue: #0A2540;
    --accent-yellow: #FBBF24;
    --accent-yellow-hover: #F59E0B;
    --light-gray: #F3F4F6;
    --dark-gray: #374151;
    --text-dark: #1F2937;
    --text-light: #6B7280;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Panel theme layer */
body[data-panel-theme="dark"] .app-shell {
    --panel-bg: #0f172a;
    --panel-surface: #111827;
    --panel-surface-soft: #1f2937;
    --panel-border: #334155;
    --panel-text: #e5e7eb;
    --panel-muted: #94a3b8;
}

body[data-panel-theme="light"] .app-shell,
body:not([data-panel-theme]) .app-shell {
    --panel-bg: #f3f4f6;
    --panel-surface: #ffffff;
    --panel-surface-soft: #f8fafc;
    --panel-border: #e5e7eb;
    --panel-text: #1f2937;
    --panel-muted: #6b7280;
}

.app-shell .flex-grow-1 {
    background-color: var(--panel-bg) !important;
    color: var(--panel-text);
}

.app-shell .card,
.app-shell .modal-content,
.app-shell .dropdown-menu,
.app-shell .table {
    background-color: var(--panel-surface);
    color: var(--panel-text);
}

.app-shell .card,
.app-shell .modal-content,
.app-shell .dropdown-menu,
.app-shell .table,
.app-shell .form-control,
.app-shell .form-select {
    border-color: var(--panel-border);
}

.app-shell .card-header,
.app-shell .bg-white,
.app-shell .table thead th,
.app-shell .servis-table-modern thead th {
    background-color: var(--panel-surface-soft) !important;
    color: var(--panel-text) !important;
    border-color: var(--panel-border) !important;
}

.app-shell .table tbody tr,
.app-shell .servis-table-modern tbody tr {
    background-color: var(--panel-surface);
    color: var(--panel-text);
    border-color: var(--panel-border);
}

.app-shell .table tbody tr:hover,
.app-shell .servis-table-modern tbody tr:hover {
    background-color: var(--panel-surface-soft);
}

.app-shell .text-muted,
.app-shell small.text-muted {
    color: var(--panel-muted) !important;
}

.app-shell .form-control,
.app-shell .form-select {
    background-color: var(--panel-surface);
    color: var(--panel-text);
}

.app-shell .form-control:focus,
.app-shell .form-select:focus {
    background-color: var(--panel-surface);
    color: var(--panel-text);
}

.app-shell .servis-detail-box,
.app-shell .file-manager-card,
.app-shell .file-manager-stat {
    background-color: var(--panel-surface) !important;
    color: var(--panel-text);
    border-color: var(--panel-border) !important;
}

.app-shell .servis-detail-box strong,
.app-shell .servis-primary-title,
.app-shell .file-manager-file-title {
    color: var(--panel-text) !important;
}

.app-shell .nav-tabs {
    border-color: var(--panel-border);
}

.app-shell .nav-tabs .nav-link {
    color: var(--panel-text) !important;
    background: var(--panel-surface);
    border-color: var(--panel-border);
}

.app-shell .nav-tabs .nav-link.active {
    color: #1d4ed8 !important;
    background: #eef2ff;
    border-color: #bfdbfe #bfdbfe var(--panel-surface);
    font-weight: 700;
}

body[data-panel-theme="dark"] .app-shell .nav-tabs .nav-link.active {
    color: #bfdbfe !important;
    background: #1e3a8a;
    border-color: #3b82f6;
}

.panel-theme-toggle {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Navbar */
.navbar-custom {
    background-color: var(--primary-blue) !important;
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* ===== Mega Menu (Hizmetlerimiz) ===== */
.mega-nav-item.dropdown.position-static {
    position: static;
}

.mega-menu {
    width: 100%;
    max-width: 960px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    margin-top: 14px;
    border: none;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 60px rgba(10, 37, 64, 0.28);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease;
    display: block;
}

.mega-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 26px 28px 20px;
}

.mega-col {
    padding: 6px 10px;
    border-right: 1px solid #eef1f6;
}
.mega-col:last-child { border-right: none; }

.mega-col-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-yellow);
}

.mega-col-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--primary-blue);
    color: #fff;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.mega-col-head h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary-blue);
    line-height: 1.2;
}

.mega-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-list li { margin-bottom: 4px; }

.mega-list a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 8px;
    border-radius: 8px;
    color: var(--text-dark) !important;
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mega-list a i {
    color: var(--primary-blue);
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
    transition: color 0.2s ease;
}

.mega-list a:hover {
    background: var(--light-gray);
    color: var(--primary-blue) !important;
    transform: translateX(3px);
}
.mega-list a:hover i { color: var(--accent-yellow-hover); }

.mega-menu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 28px;
    background: var(--light-gray);
    border-top: 1px solid #e6e9f0;
    font-size: 0.88rem;
    color: var(--text-dark);
}

.mega-cta {
    display: inline-flex;
    align-items: center;
    background: var(--accent-yellow);
    color: var(--secondary-blue) !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 9px 18px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.mega-cta:hover {
    background: var(--accent-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

/* Desktop: open mega menu on hover */
@media (min-width: 992px) {
    .mega-nav-item:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile: stack the mega menu cleanly */
@media (max-width: 991.98px) {
    .mega-menu {
        position: static !important;
        transform: none !important;
        max-width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        margin-top: 6px;
        background: rgba(255,255,255,0.06);
        border-radius: 10px;
    }
    .mega-menu-inner {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 10px;
    }
    .mega-col {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        padding-bottom: 10px;
    }
    .mega-col:last-child { border-bottom: none; }
    .mega-col-head h6 { color: #fff; }
    .mega-list a { color: rgba(255,255,255,0.9) !important; }
    .mega-list a i { color: var(--accent-yellow); }
    .mega-list a:hover { background: rgba(255,255,255,0.12); color: #fff !important; }
    .mega-menu-footer {
        background: transparent;
        border-top: 1px solid rgba(255,255,255,0.12);
        color: rgba(255,255,255,0.9);
    }
}


/* Header Slider Section */
.header-slider-section {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin-top: 70px;
}

.header-slider {
    height: 100%;
}

.header-slide {
    height: 300px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.header-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3) 0%, rgba(10, 37, 64, 0.5) 100%);
}

.navbar-custom.navbar-scrolled {
    background-color: rgba(30, 58, 138, 0.95) !important;
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.nav-link {
    font-weight: 500;
    color: rgba(255,255,255,0.9) !important;
    transition: all 0.3s;
    padding: 10px 15px !important;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-yellow) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-yellow);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.remote-support-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 6px 12px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 12px;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 8px 22px rgba(239,68,68,0.32);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.05;
    text-align: left;
    animation: remoteSupportGlow 2.4s ease-in-out infinite;
}

.remote-support-btn::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -35%;
    width: 25%;
    height: 220%;
    background: rgba(255,255,255,0.45);
    transform: rotate(22deg);
    animation: remoteSupportShine 3.2s ease-in-out infinite;
}

.remote-support-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f87171, #dc2626);
    box-shadow: 0 12px 28px rgba(239,68,68,0.42);
}

.remote-support-btn small {
    display: block;
    margin-bottom: 2px;
    color: rgba(255,255,255,0.78);
    font-size: 0.62rem;
    font-weight: 600;
}

.remote-support-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
}

.remote-support-download {
    opacity: 0.85;
    animation: remoteSupportBounce 1.5s ease-in-out infinite;
}

@keyframes remoteSupportGlow {
    0%, 100% { box-shadow: 0 8px 22px rgba(239,68,68,0.28); }
    50% { box-shadow: 0 8px 30px rgba(251,191,36,0.52); }
}

@keyframes remoteSupportShine {
    0%, 55% { left: -35%; }
    85%, 100% { left: 125%; }
}

@keyframes remoteSupportBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

/* Hero Section for Bootstrap Carousel */
.hero-section {
    position: relative;
    margin-top: 70px;
    background: #071a2e;
}

/* NOT: Bootstrap 5 carousel display management must NOT be overridden here.
   Bootstrap uses transform-based transitions and manages display internally.
   Custom display:none/block breaks the slide animation. */

.hero-section .carousel-inner,
.hero-section .carousel-item {
    width: 100%;
    aspect-ratio: 16 / 5;
    background: radial-gradient(circle at center, #173b64 0%, #071a2e 72%);
}

.hero-section .carousel-item .hero-media,
.hero-section .carousel-item > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: transparent;
}

/* Navbar Toggle Button */
.navbar-toggler {
    border: 2px solid rgba(255,255,255,0.5) !important;
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 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%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.slider-item {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
}

.slider-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(10, 37, 64, 0.9) 100%);
    z-index: 1;
}

.slider-item .container {
    position: relative;
    z-index: 2;
}

.slider-item h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slider-item p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.owl-dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s;
}

.owl-dot.active {
    background: var(--accent-yellow);
    transform: scale(1.2);
}

/* Parallax Hero Slider */
.parallax-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    background-size: cover;
    background-position: center;
    background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1920');
    transition: background-image 1s ease-in-out;
    z-index: 1;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(10, 37, 64, 0.9) 100%);
    z-index: 2;
}

.parallax-content {
    position: relative;
    z-index: 3;
    color: white;
}

.parallax-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.parallax-title.show {
    opacity: 1;
    transform: translateY(0);
}

.parallax-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.2s;
}

.parallax-subtitle.show {
    opacity: 0.9;
    transform: translateY(0);
}

.parallax-buttons {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.4s;
}

.parallax-buttons.show {
    opacity: 1;
    transform: translateY(0);
}

.parallax-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.parallax-dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.parallax-dot.active {
    background: var(--accent-yellow);
    transform: scale(1.2);
}

.parallax-dot:hover {
    background: rgba(255,255,255,0.8);
}

/* Services Section */
.services-section {
    background: white;
    padding: 80px 0;
}

/* Quick Summary Section */
.quick-summary-section {
    background: white;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.summary-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}

.summary-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.15);
    border-color: var(--accent-yellow);
}

.summary-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--accent-yellow);
    transition: all 0.3s;
}

.summary-card:hover .summary-icon {
    transform: rotateY(180deg);
    background: var(--accent-yellow);
    color: var(--primary-blue);
}

.summary-card h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.summary-card p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Business Partners Section */
.partners-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    overflow: hidden;
}

.partners-panel {
    display: grid;
    grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    padding: 26px 0;
    border-top: 1px solid rgba(30, 58, 138, 0.1);
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
}

.partners-heading span {
    display: block;
    margin-bottom: 5px;
    color: var(--accent-yellow-hover);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.partners-heading h2 {
    margin: 0;
    color: var(--primary-blue);
    font-size: 1.65rem;
    font-weight: 800;
}

.partners-slider {
    position: relative;
    overflow: hidden;
    min-height: 84px;
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.partners-slider::before,
.partners-slider::after {
    content: '';
    position: absolute;
    top: 0;
    z-index: 2;
    width: 70px;
    height: 100%;
    pointer-events: none;
}

.partners-slider::before {
    left: 0;
    background: linear-gradient(90deg, #fbfbfc, rgba(251,251,252,0));
}

.partners-slider::after {
    right: 0;
    background: linear-gradient(270deg, #fbfbfc, rgba(251,251,252,0));
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 16px;
    width: max-content;
    animation: partnersMarquee 28s linear infinite;
}

.partners-slider:hover .partners-track {
    animation-play-state: paused;
}

.partner-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 170px;
    min-height: 72px;
    padding: 14px 22px;
    color: var(--primary-blue);
    background: #ffffff;
    border: 1px solid rgba(30, 58, 138, 0.12);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.partner-logo img {
    display: block;
    max-width: 122px;
    max-height: 42px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.partner-logo span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.partner-logo:hover {
    transform: translateY(-3px);
    border-color: var(--accent-yellow);
    box-shadow: 0 12px 28px rgba(30, 58, 138, 0.14);
}

@keyframes partnersMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* About Summary Section */
.about-summary-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.about-summary-content h2 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.about-summary-content .section-subtitle {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.about-text {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.about-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.about-features li {
    padding: 10px 0;
    color: var(--text-dark);
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.about-features li i {
    color: var(--accent-yellow);
    margin-right: 15px;
    font-size: 1.2rem;
}

.about-summary-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.about-summary-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.2);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.15);
    border-color: var(--accent-yellow);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: var(--accent-yellow);
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
    background: var(--accent-yellow);
    color: var(--primary-blue);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.service-link:hover {
    color: var(--accent-yellow);
}

.service-link i {
    transition: transform 0.3s;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    padding: 80px 0;
    color: white;
}

.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--accent-yellow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--accent-yellow);
}

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

/* Buttons */
.btn-warning {
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--primary-blue);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-warning:hover {
    background-color: var(--accent-yellow-hover);
    border-color: var(--accent-yellow-hover);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4);
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.5);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-blue);
    border-color: white;
}

/* Content Area */
.content-area {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    line-height: 1.8;
}

.page-content-section {
    background: #f8f9fa;
}

/* Footer */
.footer {
    background: var(--secondary-blue);
    color: white;
    padding: 60px 0 0;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--accent-yellow);
}

.footer-text {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--accent-yellow);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-menu a:hover {
    color: var(--accent-yellow);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.7);
}

.contact-info i {
    width: 30px;
    color: var(--accent-yellow);
}

.contact-info span {
    margin-left: 10px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    outline: none;
}

.newsletter-form button {
    width: 45px;
    height: 45px;
    background: var(--accent-yellow);
    border: none;
    border-radius: 50%;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    transform: scale(1.1);
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

.copyright-text {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.72);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-yellow);
    color: var(--primary-blue);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--primary-blue);
    color: var(--accent-yellow);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-color: var(--accent-yellow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-yellow);
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
    background: var(--accent-yellow);
    color: var(--primary-blue);
}

.feature-card h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    margin: 0;
}

/* Page Header */
.page-header {
    position: relative;
    overflow: hidden;
}

/* About Page */
.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.stat-item-small {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.stat-number-small {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-yellow);
    margin-bottom: 5px;
}

.stat-label-small {
    font-size: 0.9rem;
    color: var(--text-light);
}

.mission-card,
.vision-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 5px solid var(--accent-yellow);
    height: 100%;
}

.mission-icon,
.vision-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-yellow);
    margin-bottom: 20px;
}

.mission-card h3,
.vision-card h3 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 15px;
}

.value-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-color: var(--accent-yellow);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-yellow);
    margin-bottom: 20px;
    transition: all 0.3s;
}

.value-card:hover .value-icon {
    transform: rotateY(180deg);
    background: var(--accent-yellow);
    color: var(--primary-blue);
}

.value-card h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.value-card p {
    color: var(--text-light);
    margin: 0;
}

.team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.team-image {
    height: 250px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-info {
    padding: 25px;
    text-align: center;
}

.team-info h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 5px;
}

.team-role {
    color: var(--accent-yellow);
    font-weight: 500;
    margin-bottom: 15px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-social a {
    width: 35px;
    height: 35px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.team-social a:hover {
    background: var(--accent-yellow);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Services Page */
.service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-features li {
    padding: 8px 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.service-features li i {
    color: var(--accent-yellow);
    margin-right: 10px;
}

.why-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-color: var(--accent-yellow);
}

.why-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-yellow);
    margin-bottom: 20px;
}

.why-card h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.why-card p {
    color: var(--text-light);
    margin: 0;
}

/* References Page */
.reference-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
    height: 100%;
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-color: var(--accent-yellow);
}

.reference-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-yellow);
    margin-bottom: 20px;
}

.reference-logo.has-image {
    width: 150px;
    height: 86px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 10px;
}

.reference-logo.has-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.reference-card h3 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 5px;
}

.reference-sector {
    color: var(--accent-yellow);
    font-weight: 500;
    margin-bottom: 15px;
}

.reference-desc {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.reference-rating {
    color: var(--accent-yellow);
    font-size: 1rem;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.testimonial-content {
    margin-bottom: 20px;
    color: var(--text-light);
    font-style: italic;
}

.testimonial-content::before {
    content: '"';
    font-size: 3rem;
    color: var(--accent-yellow);
    opacity: 0.3;
    line-height: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-yellow);
    font-size: 1.2rem;
}

.author-info h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

.author-info p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* Contact Page */
.contact-info-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-yellow);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--text-light);
    margin: 0;
}

.contact-form-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    padding: 60px 40px;
    border-radius: 15px;
    color: white;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Cards (Admin Panel) */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.card-header {
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
    border-radius: 15px 15px 0 0 !important;
    padding: 20px;
}

/* Tables */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background-color: var(--primary-blue);
    color: white;
}

.table thead th {
    border-color: var(--primary-blue);
    padding: 15px;
    font-weight: 600;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
}

/* Forms */
.form-control:focus {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.25);
}

.form-select:focus {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.25);
}

/* Sidebar (AdminLTE style) */
.sidebar {
    background-color: var(--secondary-blue);
    min-height: 100vh;
    color: white;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu a {
    display: block;
    padding: 15px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: var(--primary-blue);
    color: var(--accent-yellow);
    padding-left: 25px;
}

.sidebar-menu a i {
    width: 25px;
    margin-right: 10px;
}

/* Status Badges */
.badge-pending {
    background-color: #6B7280;
}

.badge-processing {
    background-color: #3B82F6;
}

.badge-completed {
    background-color: #10B981;
}

/* Dashboard Cards */
.stat-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 5px solid var(--accent-yellow);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.stat-card h3 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
}

.stat-card p {
    color: var(--text-light);
    margin: 0;
    font-size: 1.1rem;
}

/* Mobile Responsive Fixes */
@media (max-width: 991px) {
    /* Hero Slider Mobile */
    .hero-section {
        margin-top: 60px !important;
    }
    
    .hero-section .carousel-inner,
    .hero-section .carousel-item {
        aspect-ratio: 2 / 1;
    }

    .hero-section .carousel-item .hero-media,
    .hero-section .carousel-item > img {
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .carousel-caption {
        display: block !important;
        bottom: 20px;
        padding: 15px;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem !important;
        margin-bottom: 10px;
    }
    
    .carousel-caption p {
        font-size: 0.9rem !important;
        margin-bottom: 15px;
    }
    
    .carousel-caption .btn {
        padding: 8px 20px !important;
        font-size: 0.85rem;
    }
    
    /* Navbar Mobile */
    .navbar-custom {
        padding: 10px 0;
    }

    .remote-support-btn {
        width: 100%;
        justify-content: center;
    }
    
    .navbar-collapse {
        background: var(--primary-blue);
        padding: 15px;
        border-radius: 0 0 10px 10px;
        margin-top: 10px;
    }

    .navbar-collapse.show {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .navbar-nav {
        margin-bottom: 10px;
    }
    
    .nav-link {
        padding: 12px 15px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Navbar Toggle Button Fix */
    .navbar-toggler {
        border: 2px solid rgba(255,255,255,0.5) !important;
        padding: 8px 12px;
        background: transparent;
        cursor: pointer;
        z-index: 1031;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(251, 191, 36, 0.25);
        outline: 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%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        width: 1.5em;
        height: 1.5em;
    }
    
    /* Quick Summary Mobile */
    .quick-summary-section {
        margin-top: 0 !important;
        padding: 30px 0 !important;
    }

    .partners-panel {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px 0;
    }

    .partners-heading {
        text-align: center;
    }

    .partners-heading h2 {
        font-size: 1.45rem;
    }

    .partners-slider {
        min-height: 72px;
        mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
    }

    .partner-logo {
        flex-basis: 140px;
        min-height: 62px;
        padding: 12px 16px;
    }

    .partner-logo img {
        max-width: 104px;
        max-height: 36px;
    }
    
    /* Stats Mobile */
    .stat-number {
        font-size: 2rem;
    }
    
    /* Service Cards Mobile */
    .service-card {
        padding: 25px 20px;
    }
}

@media (max-width: 576px) {
    .hero-section .carousel-inner,
    .hero-section .carousel-item {
        aspect-ratio: 6 / 5;
    }

    .hero-section .carousel-item .hero-media,
    .hero-section .carousel-item > img {
        height: 100% !important;
    }
    
    .carousel-caption {
        padding: 10px;
        bottom: 10px;
        left: 5%;
        right: 5%;
    }
    
    .carousel-caption h1 {
        font-size: 1.2rem !important;
    }
    
    .carousel-caption p {
        font-size: 0.8rem !important;
        margin-bottom: 10px;
    }
    
    .carousel-caption .btn {
        padding: 6px 15px !important;
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Mobile buttons spacing */
    .carousel-caption .btn.ms-2 {
        margin-left: 5px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .partners-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
    }

    .partners-slider {
        overflow: visible;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .partners-slider::before,
    .partners-slider::after {
        display: none;
    }

    .partner-logo-duplicate {
        display: none;
    }
}

/* Additional Carousel Fixes */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

/* Prevent layout shift */
#heroCarousel {
    overflow: hidden;
}

/* Ensure proper z-index for navbar */
.navbar-custom {
    z-index: 1030;
}

/* Modal Animation Fix - Prevent Vibration */
.modal.fade .modal-dialog {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
}

.modal.show .modal-dialog {
    transform: none !important;
    opacity: 1 !important;
}

.modal-backdrop {
    transition: none !important;
    opacity: 0.5 !important;
}

.modal {
    animation: none !important;
    transition: none !important;
}

.modal.fade {
    opacity: 1 !important;
}

.modal-dialog {
    transition: none !important;
    transform: none !important;
    margin: 0 auto;
}

/* Mobile Navbar Menu Fix - Anasayfa */
.navbar-collapse {
    transition: height 0.35s ease !important;
}

.navbar-collapse.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease !important;
}

.navbar-collapse.show {
    display: block;
}

/* Fix for modal animation interfering with navbar */
.navbar-custom .modal.fade,
.navbar-custom .modal-dialog {
    transition: opacity 0.15s linear, transform 0.3s ease-out !important;
}

/* Submenu Styles */
.has-submenu .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(255,255,255,0.1);
    border-left: 3px solid var(--accent-yellow);
    margin-left: 20px;
}

.has-submenu .submenu li a {
    padding: 10px 15px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.has-submenu .submenu li a:hover {
    background: rgba(255,255,255,0.1);
    padding-left: 20px;
}

.submenu-toggle {
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

.submenu-toggle .fa-chevron-down {
    font-size: 0.8em;
    transition: transform 0.3s;
}

.submenu-toggle .fa-chevron-up {
    transform: rotate(180deg);
}

/* Advertisement Popup */
.ad-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(12, 18, 28, 0.78);
}

.ad-popup-overlay.is-visible {
    display: flex;
}

.ad-popup-dialog {
    position: relative;
    width: min(92vw, 760px);
    max-height: min(86vh, 720px);
    overflow: hidden;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.ad-popup-media {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(86vh, 720px);
    object-fit: contain;
    background: #000000;
}

.ad-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ad-popup-close:hover,
.ad-popup-close:focus {
    background: rgba(0, 0, 0, 0.9);
}

@media (max-width: 576px) {
    .ad-popup-overlay {
        padding: 12px;
    }

    .ad-popup-dialog {
        width: 100%;
    }
}

/* Responsive panel shell */
.mobile-sidebar-toggle,
.mobile-sidebar-backdrop {
    display: none;
}

.app-shell {
    min-height: 100vh;
}

.app-shell > .flex-grow-1 {
    min-width: 0;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive > .table {
    min-width: max-content;
}

.dataTables_wrapper {
    width: 100%;
    overflow-x: auto;
}

.dataTables_wrapper .row {
    row-gap: 10px;
}

.popup-content,
.popup-overlay > div {
    max-width: min(95vw, 900px) !important;
}

@media (max-width: 991.98px) {
    body.sidebar-mobile-open {
        overflow: hidden;
    }

    .mobile-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 42px;
        min-height: 38px;
    }

    .app-shell {
        display: block !important;
    }

    .app-shell .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(82vw, 300px) !important;
        height: 100vh;
        min-height: 100vh !important;
        overflow-y: auto;
        z-index: 1055;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        box-shadow: 8px 0 24px rgba(0, 0, 0, 0.22);
    }

    body.sidebar-mobile-open .app-shell .sidebar {
        transform: translateX(0);
    }

    .mobile-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1050;
        background: rgba(15, 23, 42, 0.5);
    }

    body.sidebar-mobile-open .mobile-sidebar-backdrop {
        display: block;
    }

    .app-shell > .flex-grow-1 {
        width: 100%;
        min-height: 100vh;
    }

    .app-shell .navbar .container-fluid {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .app-shell .navbar-brand {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .app-shell .navbar .d-flex.align-items-center {
        margin-left: auto;
        min-width: 0;
    }

    .app-shell .navbar .text-white {
        max-width: 38vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-shell .p-4 {
        padding: 16px !important;
    }

    .card {
        border-radius: 10px;
    }

    .card:hover,
    .stat-card:hover {
        transform: none;
    }

    .stat-card {
        padding: 20px;
        margin-bottom: 14px;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .row > [class*="col-md-3"],
    .row > [class*="col-md-4"],
    .row > [class*="col-md-6"] {
        margin-bottom: 12px;
    }

    .table-responsive {
        border-radius: 8px;
    }

    .table th,
    .table td,
    .servis-table-modern thead th,
    .servis-table-modern tbody td {
        padding: 10px 8px;
        font-size: 0.86rem;
        white-space: nowrap;
    }

    .islem-butonlar,
    .d-flex.gap-1,
    .d-flex.gap-2 {
        flex-wrap: wrap;
    }

    .btn {
        min-height: 40px;
    }

    .btn-sm {
        min-height: 36px;
        padding: 7px 10px;
    }

    .form-control,
    .form-select,
    textarea,
    input,
    select {
        min-height: 42px;
        font-size: 16px;
    }

    textarea.form-control {
        min-height: 96px;
    }

    .popup-overlay {
        align-items: flex-start !important;
        padding: 12px;
        overflow-y: auto;
    }

    .popup-content,
    .popup-overlay > div {
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100vh - 24px) !important;
        margin: 0 !important;
        overflow-y: auto;
    }
}

@media (max-width: 767.98px) {
    h2,
    .h2 {
        font-size: 1.35rem;
    }

    h3,
    .h3 {
        font-size: 1.15rem;
    }

    .app-shell .navbar .btn-outline-light[target="_blank"] {
        display: none;
    }

    .row.mb-4,
    .row.g-3,
    .row.g-4 {
        row-gap: 12px;
    }

    .card-body {
        padding: 14px;
    }

    .card-body.p-0 {
        padding: 0 !important;
    }

    .stat-card {
        text-align: left;
    }

    .dataTables_length,
    .dataTables_filter,
    .dataTables_info,
    .dataTables_paginate {
        text-align: left !important;
        width: 100%;
    }

    .dataTables_filter input {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 6px;
    }

    .dataTables_paginate .pagination {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .form-check {
        min-height: 36px;
        display: flex;
        align-items: center;
    }

    .form-check-input {
        width: 1.15em;
        height: 1.15em;
    }
}

/* Ad Popup Styles */
.ad-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ad-popup-overlay.is-visible {
    visibility: visible;
    opacity: 1;
}

.ad-popup-dialog {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.ad-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.3s;
}

.ad-popup-close:hover {
    background: rgba(255, 0, 0, 0.8);
}

.ad-popup-media {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

/* Scrollable table-responsive with sticky headers and responsive scrolling height */
.table-responsive-scrollable {
    max-height: 68vh;
    overflow-y: auto !important;
    overflow-x: auto !important;
    position: relative;
}

.table-responsive-scrollable table {
    margin-bottom: 0;
}

.table-responsive-scrollable thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-responsive-scrollable thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f8fafc !important; /* Default light background for headers */
}

/* Dark mode compatibility */
body[data-panel-theme="dark"] .table-responsive-scrollable thead th {
    background-color: var(--dash-surface, #0B0F1F) !important;
}

/* Drag to scroll style */
.table-responsive-drag {
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
}
.table-responsive-drag:active {
    cursor: grabbing;
}

/* Webkit Scrollbar Customization for modern look */
.table-responsive-scrollable::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.table-responsive-scrollable::-webkit-scrollbar-track {
    background: transparent;
}
.table-responsive-scrollable::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 4px;
}
.table-responsive-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.55);
}
