﻿
@font-face {
    font-family: 'GIP';
    src: url('/fonts/GIP/GIP-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* 1. Add spacing around tab text */

.nav-tabs .nav-link {
    padding-left: 20px !important;
    padding-right: 20px !important;
    font-weight: 600;
}

    /* 2. Make active tab text blue (text-primary) */
    .nav-tabs .nav-link.active {
        color: #175AA7 !important; /* Bootstrap primary color */
    }



.hero-section {
    color: white;
    width: 100vw;
    /*    padding: 60px 0;*/
    /*    margin-top: -1px;*/
    position: relative;
    /*    left: 50%;*/
    /*    right: 50%;*/
    /*    margin-left: -50vw !important;*/
    /*    margin-right: -50vw !important;*/
}

.img-container {
    background: url("/Common/Images/image2.jpg") no-repeat center center;
    padding: 42px 0;
    background-size: cover;
    margin-top: -20px !important;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'GIP' !important;
}

.search-box {
    background: white;
    border-radius: 8px;
    height: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

    .search-box input {
        border: none;
        outline: none;
        flex: 1;
        padding: 8px;
        /*        font-size: 16px;*/
        margin-left: 8px;
    }

    .search-box select {
        font-family: GIP !important;
        border: none;
        outline: none;
        background: #E8EFF6;
        height: 100%;
        color: #175AA7;
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
        padding: 0px 8px;
        font-weight: 500;
        font-size: 16px;
    }

    .search-box button {
        background: #175AA7;
        border: none;
        outline: none;
        width: 60px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        transition: all 0.3s;
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
    }

        .search-box button:hover {
            background: #2563eb;
            /*            transform: scale(1.05);*/
        }

.table th, .table td {
    padding-left: 2rem;
    padding-right: 2rem;
    border-bottom: none !important;
}

.table th {
    color: #bcbbbb;
}

.bigContainer {
    max-width: 1150px;
}

.zawsar {
    background-color: #E8EFF6;
    height: 100%;
    width: 1.5rem;
}

/* /Common/Styles/vehicles.css эсвэл site.css дээр нэмнэ */
.badge-success {
    background-color: #C3E8D2 !important;
    color: #15A059 !important;
    border-radius: 16px;
    padding: 5px 18px;
}

.badge-danger {
    background-color: #FFD4D4 !important;
    color: #E03F3F !important;
    border-radius: 16px;
    padding: 5px 18px;
}
/* CSS файлдаа эсвэл <style> tag-р */
.toast {
    min-width: 220px;
    font-size: 1.02em;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.toast-success {
    border-left: 6px solid #15A059;
}

.toast-error {
    border-left: 6px solid #E03F3F;
}

.toast .toast-body {
    padding: 12px 18px;
}

/* ----------- RESPONSIVE (шинэ) -------------- */

/* Mobile first adjustments */
@media (max-width: 991.98px) {
    .bigContainer {
        max-width: 98vw;
        padding: 8px !important;
    }

    .row.mb-4 {
        flex-direction: column !important;
    }

    .col-md-3, .col-md-9 {
        max-width: 100% !important;
        flex: 0 0 100%;
        border: none !important;
        padding: 0 !important;
    }

    .col-md-3 {
        border-bottom: 1px solid #eee !important;
        margin-bottom: 12px;
    }

    .img-fluid {
        max-width: 90vw;
    }

    .main-brand,
    .main-plate {
        font-size: 1.2em;
    }

    .table th, .table td {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
        font-size: 0.98em;
    }

    .headerColor {
        padding-left: 0.7rem;
    }

    .search-box {
        height: 48px;
    }

        .search-box button, .search-box select {
            font-size: 0.98em;
            width: 48px;
            min-width: 48px;
            padding: 0 8px;
        }

        .search-box input {
            font-size: 0.98em;
            padding: 8px 4px;
        }
}

@media (max-width: 575.98px) {
    h1 {
        font-size: 1.15em !important;
    }

    .img-container {
        padding: 18px 0;
    }

    .bigContainer {
        padding: 2vw !important;
    }

    .search-container {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }
}

/* Tab navigation (mobile scroll) */
@media (max-width: 767.98px) {
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        border-bottom: 1px solid #d8e1ec;
    }

        .nav-tabs .nav-item {
            white-space: nowrap;
        }

    .tab-content {
        padding-left: 2px;
        padding-right: 2px;
    }
}
