﻿@font-face {
    font-family: 'Shabnam';
    src: url('../fonts/shabnam.eot') format('embedded-opentype'), url('../fonts/shabnam.ttf') format('truetype'), url('../fonts/shabnam.woff') format('woff'), url('../fonts/shabnam.woff2') format('woff2');
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    .container, .container-md, .container-sm {
        max-width: 98%;
    }
}

:root {
    --primary-color: #caecff;
    --secondary-color: #73cdff;
    --accent-color: #ff6b6b;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #107c8d;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    font-size: 14px;
    font-family: Shabnam !important;
    background: linear-gradient(135deg, #f5f7fb 0%, #e9edf7 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    direction: rtl;
}

[role="main"] {
    min-height: 630px;
    width: 89%;
    float: left;
}

.h4, h4 {
    font-size: 1.1rem;
}

.h5, h5 {
    font-size: 1rem;
}

p, label {
    font-size: 0.85rem;
}

header nav {
    background-image: repeating-linear-gradient(28deg, #fcfcfc 0px, #eef9ff 1px, transparent 1px, transparent 5px), repeating-linear-gradient(251deg, #ffffff 0px, #ffffff 1px, transparent 1px, transparent 5px);
}

form {
    background-image: repeating-linear-gradient(28deg, #fcfcfc 0px, #eef9ff 1px, transparent 1px, transparent 5px), repeating-linear-gradient(251deg, #ffffff 0px, #ffffff 1px, transparent 1px, transparent 5px);
}

.modal-footer {
    background-color: #fff;
}

tbody, td, tfoot, th, thead, tr {
    font-weight: 100;
    font-size: 0.8rem;
    padding: 5px 3px !important;
    vertical-align: middle;
}

.bg-warning {
    background-color: rgb(255 244 203) !important;
}

.bg-success {
    background-color: rgb(195 232 187) !important;
}

.btn-secondary {
    background-color: #e3e3e3;
    border-color: #c2c2c2;
    color: #000;
}

.btn-info {
    background-color: #e8fbff;
    border-color: #bbe0e8;
}

.btn-warning {
    background-color: #fff4cb;
    border-color: #dcc981;
}

.btn-group-vertical > .btn, .btn-group > .btn {
    margin: 0 6px;
}

.badge {
    font-size: 0.77rem;
    font-weight: 100;
    padding: 6px 14px;
}

.btn, input, select {
    font-size: 0.8rem !important;
    font-weight: 100;
}

.btn-outline-info {
    color: #466db5 !important;
    border-color: #668fd9 !important;
}

    .btn-outline-info:hover {
        background-color: #bfe9ff !important;
    }

.bageran-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0.4rem 0;
}

body a {
    text-decoration: none;
}

.logo {
    height: 70px;
    filter: brightness(0) saturate(100%) invert(1);
}

.text-report-header {
    color: #f5f9ff;
    font-size: 0.9rem;
}

.text-report-detail {
    color: #f5f9ff;
}

.navbar {
    padding: 0;
}

.navbar-nav {
    padding: 3px 7px;
    margin-right: 15px;
}

    .navbar-nav li {
        padding: 0 4px;
    }

.nav-item .fas {
    color: #8396bd;
}

.user-avatar-sm {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8396bd;
    font-size: 13px;
    border: 1px solid;
}

#changePasswordBtn {
    background-color: #fffefa;
    border-radius: 5px;
    border: 1px solid #dddddd;
}

    #changePasswordBtn:hover {
        background-color: #fffae6;
    }

.logout-btn {
    background-color: #fff9f9;
    border-radius: 6px;
    padding: 0 0rem !important;
    transition: all 0.3s;
    border: 1px solid #dddddd;
    margin: 0;
}

    .logout-btn:hover {
        background-color: #ffedef;
        color: white !important;
        border-color: #ffdbde;
    }

.card-header {
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%);
}

.btn-outline-success {
    background-color: #fff !important;
}

    .btn-outline-success:hover {
        color: green !important;
        background-color: #eefff7 !important
    }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: unset;
}

.card-body {
    padding: 7px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5e86;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

a {
    font-size: 0.79rem !important;
    padding: 5px !important;
}

.text-left {
    text-align: left;
    margin-left: 11px;
    margin-top: 2px;
}

table thead td {
    white-space: nowrap;
    position: relative;
}

table tbody td {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .user-info {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .logo {
        height: 40px;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .mobile-user-info {
        display: flex;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid #dee2e6;
    }

        .mobile-user-info .user-avatar-sm {
            width: 29px;
            height: 29px;
            font-size: 14px;
        }

        .mobile-user-info .user-info {
            margin-right: 0.75rem;
            color: #ffffff;
        }
}

@media (max-width: 767.98px) {
    .navbar-collapse {
        padding-top: 0;
        background-color: #4a5877;
        border-radius: 12px;
    }

    .navbar-nav.ms-auto {
        border-top: 0;
        padding-top: 0;
        margin-top: 0;
        width: 100%;
    }

    .logout-btn {
        background-color: unset !important;
        border-radius: 0;
        border: 0;
        margin: 0 18px 0 0;
    }

    .change-password-btn {
        background-color: unset !important;
        border-radius: 0;
        border: 0;
        margin: 0 18px 0 0;
    }

    .mobile-user-info {
        display: flex;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid #dee2e6;
    }

        .mobile-user-info .user-avatar-sm {
            width: 29px;
            height: 29px;
            font-size: 14px;
        }

        .mobile-user-info .user-info {
            margin-right: 0.75rem;
            color: #ffffff;
        }
}

a {
    color: #3b88b3;
}

.text-header {
    color: #0077c0;
    font-size: 0.9rem;
}

.btn.disabled, .btn:disabled {
    color: #707172 !important;
}

input[data-placeholder-dir="rtl"][data-content-dir="ltr"] {
    direction: rtl;
    text-align: right;
}

    input[data-placeholder-dir="rtl"][data-content-dir="ltr"]::placeholder {
        direction: rtl;
        text-align: right;
    }

    input[data-placeholder-dir="rtl"][data-content-dir="ltr"]:focus,
    input[data-placeholder-dir="rtl"][data-content-dir="ltr"]:not(:placeholder-shown) {
        direction: ltr;
        text-align: left;
    }

a[href="#advancedSearch"] {
    background-color: #e9f4ff;
}

    a[href="#advancedSearch"]:active, a[href="#advancedSearch"]:hover {
        background-color: #e9f4ff !important;
    }

footer {
    padding: 24px 61px;
    background-color: #000d26;
    color: #fff;
    width: 98%;
    margin: auto;
    border-radius: 27px;
}

    footer h2 {
        color: #fff;
    }

    footer a {
        color: #fff;
        text-decoration: none;
    }

    footer ul {
        list-style: none;
    }

        footer ul li {
            padding: 6px 0;
            position: relative;
        }

.footer-title {
    position: relative;
}

    .footer-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 85%;
        background: #ffA300;
        height: 2px;
    }

.footer-quick-links ul li a:before {
    right: 0;
    left: unset;
    transform: rotate(180deg);
}

.footer-quick-links ul {
    list-style: none;
    padding: 0 20px;
}

    .footer-quick-links ul li a:before {
        content: '';
        display: block;
        position: absolute;
        top: 4px;
        right: -18px;
        width: 21px;
        height: 25px;
        background: url(/img/icon-menu-item.svg) no-repeat left center;
    }

@media (max-width: 1500px) and (min-width: 573px) {
    .user-info span {
        display: block !important;
    }

    .fa-sign-out-alt {
        color: #b38181;
    }

    .nav-link span {
        display: none !important;
    }

    .navbar-nav li {
        padding: 0;
    }

    .navbar-nav .nav-item {
        font-size: 1.7rem;
        padding: 0 5px;
    }

    .navbar-nav li a {
        padding: 0;
    }
}

@media (min-width: 573px) {
    #mobile-menu {
        display: none;
    }
}

@media (max-width: 912px) and (min-width: 573px) {
    .container, .container-md, .container-sm {
        max-width: 100%;
    }

    [role="main"] {
        width: 100%;
        float: unset;
    }
}

@media (max-width: 573px) {
    [role="main"] {
        width: 100%;
        float: unset;
    }

    .navbar-nav .nav-link.active {
        color: #ffcaf2;
    }

    .navbar-nav {
        padding: 0 0 0 16px;
    }

    .login-card, .recovery-card {
        margin-top: 10px;
    }

    .login-header h2, .recovery-header h2 {
        font-size: 1.2rem !important;
    }

    a[href="#advancedSearch"] {
        width: 100%;
        margin-top: 5px;
    }

    .export-container {
        text-align: end;
    }

    #btnExport {
        min-width: 48px;
    }

    .navbar-collapse .nav-link {
        padding: 8px;
        background-color: #4a5877 !important;
        margin: 5px 0;
        border-radius: 11px !important;
        color: #fff;
    }

        .navbar-collapse .nav-link .fas {
            color: #fff;
        }

    .text-left {
        margin-left: 0;
    }
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 40px auto;
    max-width: 500px;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

    .empty-state:hover {
        border-color: #dac100;
        background-color: #fbfbfb;
    }

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #fffab7, #fff7c7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    border: 1px solid #d9d9d9;
}

    .empty-state-icon i {
        font-size: 36px;
        color: #6d6d6d;
    }

.empty-state-title {
    font-size: 1.5rem;
    color: #343a40;
    margin-bottom: 12px;
}

.empty-state-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-action .btn {
    padding: 12px 28px;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2);
}

    .empty-state-action .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(13, 110, 253, 0.3);
    }

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(108, 117, 125, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(108, 117, 125, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(108, 117, 125, 0);
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        padding: 9px 4px !important;
    }

    .empty-state {
        padding: 60px 16px;
        margin: 20px auto;
    }

    .empty-state-icon {
        width: 70px;
        height: 70px;
    }

        .empty-state-icon i {
            font-size: 32px;
        }

    .empty-state-title {
        font-size: 1.3rem;
    }
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 249, 251, 0.7);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.35s ease-out;
}

.loader-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 20px;
    padding: 32px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.7);
    text-align: center;
    max-width: 90%;
    width: 360px;
    animation: slideUp 0.45s ease-out;
    opacity: 0;
    animation: slideUp 0.45s ease-out 1s forwards;
    margin: auto;
    top: 21%;
    position: relative;
}

.truck-scene {
    position: relative;
    width: 100%;
    height: 100px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.truck-wrapper {
    transform: scaleX(-1);
    display: inline-block;
}

.truck-svg {
    width: 130px;
    height: auto;
    opacity: 0.75;
    animation: truckMove 2.5s ease-in-out infinite;
}

@keyframes truckMove {
    0%, 100% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(4px);
    }
}

.truck-ground {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient( 90deg, transparent 0%, rgba(200, 208, 218, 0.5) 15%, rgba(138, 148, 166, 0.7) 50%, rgba(200, 208, 218, 0.5) 85%, transparent 100% );
    overflow: hidden;
    border-radius: 2px;
}

    .truck-ground::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 200%;
        height: 100%;
        background: repeating-linear-gradient( 90deg, transparent 0px, transparent 20px, rgba(90, 100, 112, 0.5) 20px, rgba(90, 100, 112, 0.5) 30px, transparent 30px, transparent 50px );
        animation: lineMove 1.2s linear infinite;
    }

@keyframes lineMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50px);
    }
}

.loader-text h3 {
    color: #589ac3;
    font-size: clamp(16px, 4.5vw, 19px);
    margin: 0 0 6px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.loader-text p {
    color: #8a94a6;
    font-size: clamp(11px, 3.5vw, 13px);
    margin: 0;
    font-weight: 400;
}

@keyframes progress {
    0% {
        width: 0%;
        margin-left: 0%;
    }

    50% {
        width: 60%;
        margin-left: 20%;
    }

    100% {
        width: 0%;
        margin-left: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.truck-svg .wheel-spin {
    transform-origin: center;
    transform-box: fill-box;
    animation: wheelSpin 1s linear infinite;
}

@keyframes wheelSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 768px) {
    .loader-card {
        padding: 26px 24px;
        width: 88%;
        border-radius: 18px;
    }

    .truck-scene {
        height: 90px;
    }

    .truck-svg {
        width: 110px;
    }

    .truck-ground {
        width: 130px;
    }
}

@media screen and (max-width: 480px) {
    .loader-card {
        padding: 22px 18px;
        width: 92%;
    }

    .truck-scene {
        height: 80px;
    }

    .truck-svg {
        width: 95px;
    }

    .truck-ground {
        width: 115px;
    }

    .loader-text h3 {
        font-size: 15px;
    }

    .loader-text p {
        font-size: 11px;
    }
}