﻿
@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: #324160;
    --secondary-color: #5e75a4;
    --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;
}

main {
    min-height: 580px;
}

.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: 50px;
}

.text-report-header {
    color: #f5f9ff;
    font-size: 0.9rem;
}

.text-report-detail {
    color: #f5f9ff;
}

.navbar {
    padding: 0;
}

.navbar-nav {
    padding: 7px;
    margin-top: 8px;
    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-color: #8396bd;
}

.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;
        }
}

.text-header {
    color: #4a5e86;
    font-size: 0.9rem;
}

.btn.disabled, .btn:disabled {
    color: #fbfbfb !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: 1130px) 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 (max-width: 912px) and (min-width: 573px) {
    .container, .container-md, .container-sm {
        max-width: 100%;
    }
}

@media (max-width: 573px) {
    .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) {
    .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;
    }
}
