@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --bs-primary: #8B1E2D;
    --bs-primary-rgb: 139, 30, 45;
    --bs-secondary: #2E3138;
    --bs-secondary-rgb: 46, 49, 56;
    --bs-dark: #2E3138;
    --bs-dark-rgb: 46, 49, 56;
    --bs-light: #F8F9FA;
    --bs-light-rgb: 248, 249, 250;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #F8F9FA;
    color: #333333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #2E3138;
}

/* Premium Animations & Interactions */
.transition-all-custom {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Card Lift Hover Effect */
.card-hover {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

    .card-hover:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(139, 30, 45, 0.08) !important;
        border-color: rgba(139, 30, 45, 0.15) !important;
    }

/* Image Zoom Effect */
.img-zoom-container {
    overflow: hidden;
    position: relative;
}

    .img-zoom-container img {
        transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .img-zoom-container:hover img {
        transform: scale(1.08);
    }

/* Custom Primary Button Styles */
.btn-primary {
    background-color: #8B1E2D !important;
    border-color: #8B1E2D !important;
    color: #FFFFFF !important;
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    transition: all 0.3s ease;
}

    .btn-primary:hover, .btn-primary:focus, .btn-primary:active {
        background-color: #6d1723 !important;
        border-color: #6d1723 !important;
        box-shadow: 0 4px 12px rgba(139, 30, 45, 0.25) !important;
    }

.btn-outline-primary {
    color: #8B1E2D !important;
    border-color: #8B1E2D !important;
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    transition: all 0.3s ease;
    background-color: transparent !important;
}

    .btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
        background-color: #8B1E2D !important;
        border-color: #8B1E2D !important;
        color: #FFFFFF !important;
        box-shadow: 0 4px 12px rgba(139, 30, 45, 0.15) !important;
    }

/* Custom Text and BG Colors */
.text-primary-custom {
    color: #8B1E2D !important;
}

.bg-primary-custom {
    background-color: #8B1E2D !important;
}

.text-secondary-custom {
    color: #2E3138 !important;
}

.bg-secondary-custom {
    background-color: #2E3138 !important;
}

/* Sticky Header Customizations */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-search {
    border: 1px solid rgba(139, 30, 45, 0.28) !important;
    border-radius: 999px;
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

    .navbar-search .input-group-text {
        background: transparent;
        border: 0;
        color: #8B1E2D;
        padding-left: 0.95rem;
    }

    .navbar-search .form-control {
        border: 0;
        box-shadow: none;
        padding-left: 0.3rem;
        padding-right: 1rem;
        color: #2E3138;
        background: transparent;
    }

        .navbar-search .form-control::placeholder {
            color: rgba(46, 49, 56, 0.55);
            opacity: 1;
        }

        .navbar-search .form-control:focus {
            box-shadow: none;
            outline: none;
        }

/* Infinite Scrolling References Slider */
@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.references-slider {
    display: flex;
    width: max-content;
    animation: infiniteScroll 25s linear infinite;
}

    .references-slider:hover {
        animation-play-state: paused;
    }

.brand-badge {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

    .brand-badge:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 25px rgba(139, 30, 45, 0.12) !important;
        border-color: rgba(139, 30, 45, 0.25) !important;
    }

/* Custom UI refinements */
.badge-category {
    background-color: rgba(139, 30, 45, 0.08);
    color: #8B1E2D;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35em 0.8em;
    border-radius: 4px;
    text-transform: uppercase;
}

.active-nav-link {
    color: #8B1E2D !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #8B1E2D;
}

/* Timeline Custom Styles */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid rgba(139, 30, 45, 0.2);
    padding-bottom: 2.5rem;
}

    .timeline-item::before {
        content: '';
        position: absolute;
        left: -6px;
        top: 5px;
        width: 11px;
        height: 11px;
        border-radius: 50%;
        background-color: #8B1E2D;
        border: 2px solid #FFFFFF;
    }

/* Scroll Top Button */
.btn-scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #8B1E2D;
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    opacity: 0.8;
}

    .btn-scroll-top:hover {
        opacity: 1;
        transform: translateY(-3px);
        color: #FFFFFF;
    }

input:focus, select:focus {
    box-shadow: 0 0 0 1px rgb(193 0 0 / 42%) !important;
}

.generalOemSearch:focus {
    box-shadow: none !important;
}

.generalOemSearchForm {
    width: 75% !important;
}
/* Custom Map Overlay */
.map-responsive {
    overflow: hidden;
    position: relative;
}

/* Admin Panel Styles */
.admin-shell {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #f2f4f7 100%);
}

.login-page {
    min-height: 100vh;
    background: #f5f7fa;
}

.login-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #2E3138 0%, #8B1E2D 100%);
    display: flex;
    align-items: center;
    padding: 3rem;
}

    .login-hero .hero-content {
        max-width: 560px;
    }

.login-page .form-control:focus {
    box-shadow: none;
    border-color: #8B1E2D;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid rgba(139, 30, 45, 0.18);
    border-radius: 10px;
    /*padding: 0.45rem 0.75rem;*/
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #8B1E2D !important;
    border-color: #8B1E2D !important;
    color: #fff !important;
}

.page-item.active .page-link {
    background-color: #8B0000 !important;
    border-color: #8B0000 !important;
}

.page-link {
    color: #8B0000;
}

    .page-link:hover {
        color: #fff;
        background-color: #8B0000;
        border-color: #8B0000;
    }

    .page-link:focus {
        box-shadow: 0 0 0 .25rem rgba(139,0,0,.25);
    }
/* DataTable başlıkları */
table.dataTable thead th,
table.dataTable thead td {
    background-color: #2f343a !important;
    color: #ffffff !important;
    border-color: #444 !important;
    font-weight: 600;
    vertical-align: middle;
}

/* Bootstrap 5 DataTables uyumu */
table.dataTable.table thead th {
    background-color: var(--bs-primary) !important;
    color: white !important;
}

.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #2E3138 0%, #24262b 100%);
    color: #fff;
    min-height: 100vh;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
}

    .admin-sidebar .brand-box {
        background: rgba(139, 30, 45, 0.16);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 16px;
        padding: 1rem;
    }

    .admin-sidebar .nav-link {
        color: rgba(255,255,255,0.82);
        border-radius: 12px;
        padding: 0.8rem 0.9rem;
        margin-bottom: 0.35rem;
        transition: all 0.2s ease;
    }

        .admin-sidebar .nav-link:hover,
        .admin-sidebar .nav-link.active {
            background: rgba(139, 30, 45, 0.22);
            color: #fff;
        }

.admin-content {
    flex: 1;
    padding: 2rem;
}

.admin-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.admin-stat-card {
    border-left: 4px solid #8B1E2D;
    background: linear-gradient(135deg, #fff 0%, #fcf6f7 100%);
}

.admin-table thead {
    background-color: #f7f7f8;
}

.admin-table th,
.admin-table td {
    vertical-align: middle;
}

.admin-badge {
    background: rgba(139, 30, 45, 0.1);
    color: #8B1E2D;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-empty-state {
    border: 1px dashed rgba(46, 49, 56, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    background: #fcfcfd;
}

.admin-topbar {
    display: none;
    background: linear-gradient(180deg, #2E3138 0%, #24262b 100%);
    color: #fff;
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.admin-sidebar-toggle {
    color: #fff;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

    .admin-sidebar-toggle:hover,
    .admin-sidebar-toggle:focus {
        color: #fff;
    }

.admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

@media (max-width: 991.98px) {
    .admin-shell {
        flex-direction: column;
    }

    .admin-topbar {
        display: flex;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        height: 100vh;
        overflow-y: auto;
        z-index: 1045;
        transition: left 0.3s ease;
    }

    .admin-shell.sidebar-open .admin-sidebar {
        left: 0;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    }

    .admin-shell.sidebar-open .admin-sidebar-backdrop {
        display: block;
    }

    .admin-content {
        padding: 1.25rem;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .admin-content {
        padding: 1rem;
    }
}

height: 0;
border-radius: 8px;
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}
