@font-face {
    font-family: 'Vazir';
    src: url('./fonts/Vazir.woff') format('woff');
    font-weight: bold;
}

/* Regular - وزن 400 */
@font-face {
    font-family: "PeydaWebFaNum";
    src: url("../fonts/PeydaWebFaNum-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* SemiBold - وزن 600 */
@font-face {
    font-family: "PeydaWebFaNum";
    src: url("../fonts/PeydaWebFaNum-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Bold - وزن 700 */
@font-face {
    font-family: "PeydaWebFaNum";
    src: url("../fonts/PeydaWebFaNum-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PeydaWebFaNum', 'Vazir', sans-serif;
    background: linear-gradient(145deg, #e8edf5 0%, #dce3ec 30%, #d0d9e3 100%);
    overflow-x: hidden;
    letter-spacing: -0.3px;
    position: relative;
    min-height: 100vh;
     background-attachment: fixed;
}

body::before {
    
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top center, #ffffff 0%, #ffffff 30%, #e8e8ec 50%, #c7cedb 100%);
    pointer-events: none;
    z-index: 0;
    transform: translateZ(0);
}

body::after {
   
    content: '';
    position: fixed;
    top: -20%;
    left: 0;
    width: 100%;
    height: 60%;
    background: radial-gradient(ellipse at 50% 0%, 
        rgba(255, 255, 245, 0.5) 0%, 
        rgba(255, 250, 230, 0.2) 40%,
        transparent 80%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
    transform: translateZ(0);
}

.container-fluid {
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
    transition: all 0.25s ease;
}

.note {
    color: #F84144;
}

/* ========== SIDEBAR ========== */
.sidebar {
    width: 280px;
    z-index: 1040;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.05);
}
.nav-link {
    color:var(--bs-red);
}
.nav-link:focus, .nav-link:hover {
    color: #000000;
}
.sidebar .nav-link {
    border-radius: 12px;
    margin-bottom: 6px;
    padding: 10px 16px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.sidebar .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(135deg, #f83939, #7f3a3a);
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
}

.sidebar .nav-link:hover::before {
    height: 60%;
}

.sidebar .nav-link:hover:not(.active) {
    background: linear-gradient(135deg, rgb(0 0 0 / 10%), rgb(161 161 161 / 18%));
    transform: translateX(-4px);
}

.sidebar .nav-link.active {
background: linear-gradient(135deg, #c22222, #ff4040);
    color: white !important;
    box-shadow: 0 6px 14px rgb(234 102 102 / 30%);
}

.sidebar .nav-link.active::before {
    height: 70%;
    background: white;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    transition: margin-right 0.3s ease;
}

@media (min-width: 768px) {
    .sidebar {
        transform: translateX(0);
        right: 0;
    }
    .main-content {
        margin-right: 280px;
    }
}

@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(100%);
        right: 0;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgb(163 163 163 / 40%);
        z-index: 1030;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        backdrop-filter: blur(6px);
    }
    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }
}

/* ========== HEADER - بدون تغییر ========== */
header {
    background-color: rgb(232 232 232 / 75%) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    position: sticky;
    top: 0;
    z-index: 1020;
}

header::before {
    /*  content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
   animation: shine 10s infinite ease-in-out; */
}

@keyframes shine {
    0% { left: -100%; opacity: 0; }
    10% { opacity: 1; }
    20% { left: 120%; opacity: 0; }
    100% { left: 120%; opacity: 0; }
}

/* ========== CARDS GLASSMORPHISM ========== */
.card {
    border-radius: 12px !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(255, 255, 255, 0.3) inset;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(255, 255, 255, 0.4) inset;
    background: rgba(255, 255, 255, 0.55) !important;
}

.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 1.2rem 1.5rem !important;
    backdrop-filter: blur(4px);
}

.card-body {
    padding: 1.5rem !important;
}

/* کارت‌های مخصوص اطلاعیه با افکت شیشه‌ای قوی‌تر */
.customer-profile {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(16px) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s ease;
}

.customer-profile:hover {
    background: rgba(255, 255, 255, 0.65) !important;
    transform: translateY(-4px);
}

/* نماهای رنگی برای nemad - بدون تغییر در شیشه‌ای بودن */
.bg-warning2 {
    background: linear-gradient(135deg, #f5b042, #ff8800);
}

.bg-success2 {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.bg-info2 {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.nemad {
width: 64px;
    height: 64px;
    border-radius: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff0000;
    font-size: 30px;
    box-shadow: 2px 6px 6px 0px rgb(0 0 0 / 7%);
    transition: all 0.3s ease;
}

.nemad:hover {
    transform: scale(1.05) rotate(2deg);
}
.form-control:focus {
    border-color: #fe8686 !important;
    box-shadow: 0 0 0 .25rem rgb(253 13 13 / 25%) !important;
}
.atach{
    max-width:64px;
    border-radius: 8px;
}
.atach-mini{
     max-width:32px;
    border-radius: 8px;
}
.atach_edit{
    max-width: 32px;
    margin: 5px;
     border-radius: 8px;
}
.customer-profile .profile-content {
    display: none;
}

.customer-profile .profile-content.show {
    display: block;
}

.customer-profile .toggle-profile.active {
    background-color: #0d6efd;
    color: white;
}
.list_car{
    margin:0px;
    padding: 10px !important;
}
.list_car li{
    font-size: 0.79em;
}
/* ========== BUTTONS ========== */
.btn-modern-v2 {
    font-size: 0.75rem;
    padding: 10px 16px;
    border-radius: 12px !important;
    font-weight: 600;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    letter-spacing: -0.2px;
}

.btn-modern-v2:hover {
    transform: translateY(-3px);
    filter: brightness(1.02);
}

.btn-modern-v2:active {
    transform: translateY(0);
}

.btn-modern-v2.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-modern-v2.btn-warning {
    background: linear-gradient(135deg, #f6b93b, #e67e22) !important;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.btn-modern-v2.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}
.radio{
    margin: 0px 12px;
    background-color: #e0e0e0;
    padding: 1px 12px;
    border-radius: 8px;
}
/* ========== BADGES ========== */
.badge {
    border-radius: 10px;
    padding: 6px 14px;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: -0.2px;
}

.bg-success-subtle {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.2)) !important;
    backdrop-filter: blur(4px);
    color: #0a5c3e !important;
}

.bg-danger-subtle {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(192, 57, 43, 0.2)) !important;
    backdrop-filter: blur(4px);
    color: #b91c1c !important;
}

.bg-warning-subtle {
    background: linear-gradient(135deg, rgba(246, 185, 59, 0.2), rgba(230, 126, 34, 0.2)) !important;
    backdrop-filter: blur(4px);
    color: #b45f06 !important;
}

.bg-info-subtle {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(41, 128, 185, 0.2)) !important;
    backdrop-filter: blur(4px);
    color: #0c6b8f !important;
}

/* ========== NOTIFICATIONS LIST ========== */
.notifications-list {
    background: transparent;
    padding: 0;
}

.notifications-list li {
position: relative;
    padding: 12px 16px;
    border-radius: 9px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgb(255 255 255 / 12%);
    backdrop-filter: blur(4px);
    margin-bottom: 8px;
    border: 1px solid rgb(199 199 199 / 30%);
    box-shadow: 0px 4px 3px 0px rgb(0 0 0 / 2%);
}

.notifications-list li:hover {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.6);
}

.notifications-list li::before {
content: "";
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 55%;
    border-radius: 10px;
    background: linear-gradient(180deg, #ea6666, #ffa8a8);
    opacity: 0;
    transition: opacity 0.25s;
}

.notifications-list li:hover::before {
    opacity: 1;
}

.notification-title {
    font-weight: 600;
    color: #1a2634;
}

.notification-date {
    font-size: 0.7rem;
    color: #5a6e7c;
}

/* ========== PROFILE INFO ========== */
.profile-info li {
    display: flex;
    align-items: center;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-info li:last-child {
    border-bottom: none;
}

.profile-info i {
    font-size: 1.1rem;
    color: var(--bs-red);
    margin-left: 12px;
}
.link-red{
    color:var(--bs-red);
}
.form-check-input:checked {
    background-color: var(--bs-red) !important;
    border-color: var(--bs-red) !important;
}
/* ========== OTP & INPUTS ========== */
.otp-input {
    width: 65px !important;
    height: 70px !important;
    font-size: 1.8rem !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 2px solid rgb(195 195 195 / 50%) !important;
    transition: all 0.25s;
    font-weight: 600;
}

.otp-input:focus {
    border-color: #ff0000 !important;
    box-shadow: 0 0 0 4px rgb(234 102 102 / 20%) !important;
    transform: scale(1.02);
    background: white;
}

.custom-input {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    padding: 12px 18px;
    transition: all 0.25s;
}

.custom-input:focus {
    border-color: #ff0000;
   box-shadow: 0 0 0 4px rgb(234 102 102 / 20%) !important;
    background: white;
}

/* ========== BOX_SEFID ========== */
.box_sefid {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ========== DARK MODE - Glassmorphism Dark ========== */
[data-bs-theme="dark"] .link-red{color: #fff ; background-color: #000;}
[data-bs-theme="dark"] .radio{  background-color: #343a40;}
[data-bs-theme="dark"] .text-dark{ color:var(--bs-light-text-emphasis) !important; }
[data-bs-theme="dark"] .notification-title { 
    color:var(--bs-light-text-emphasis);
}
[data-bs-theme="dark"] .toggle-sidebar {
    background-color: #343a40 !important;
}
[data-bs-theme="dark"] header svg {
    stroke: #e9ecef !important;
}
[data-bs-theme="dark"] body {
    background: linear-gradient(145deg, #0f172a 0%, #1a2438 50%, #0f172a 100%);
}

[data-bs-theme="dark"] body::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 60%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 55%),
        repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255, 255, 255, 0.03) 40px, rgba(255, 255, 255, 0.03) 80px),
        repeating-linear-gradient(-35deg, transparent, transparent 55px, rgba(255, 255, 255, 0.02) 55px, rgba(255, 255, 255, 0.02) 110px);
}

[data-bs-theme="dark"] .sidebar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(16px);
    border-left-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .card {
    background: rgba(30, 41, 59, 0.5) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .card:hover {
    background: rgba(30, 41, 59, 0.7) !important;
}

[data-bs-theme="dark"] .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

[data-bs-theme="dark"] .customer-profile {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .customer-profile:hover {
    background: rgba(30, 41, 59, 0.8) !important;
}

[data-bs-theme="dark"] header {
    background-color: rgba(33, 37, 43, 0.6) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

[data-bs-theme="dark"] .nav-link.link-dark {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .notifications-list li {
    background: rgba(51, 65, 85, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .notifications-list li:hover {
    background: rgba(51, 65, 85, 0.8);
}

[data-bs-theme="dark"] .otp-input,
[data-bs-theme="dark"] .custom-input {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
}

[data-bs-theme="dark"] .otp-input:focus,
[data-bs-theme="dark"] .custom-input:focus {
    background: #1e293b;
}

[data-bs-theme="dark"] .box_sefid {
    background: rgba(30, 41, 59, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .datetime,
[data-bs-theme="dark"] .time {
    background: rgba(0, 0, 0, 0.4);
    color: #cbd5e1;
}

[data-bs-theme="dark"] .chat {
    background: rgba(51, 65, 85, 0.7);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .profile-info li {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* ========== UTILITIES ========== */
.image_flare {
    animation: spark 6s infinite;
}

@keyframes spark {
    0%, 100% { filter: brightness(1); }
    8% { filter: brightness(1.35); }
    12% { filter: brightness(1); }
}

.bg-shine {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(248, 250, 252, 0.4));
    backdrop-filter: blur(8px);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.bg-shine::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    transform: rotate(25deg);
    animation: shineMove 5s linear infinite;
}

@keyframes shineMove {
    0% { transform: translateX(-100%) rotate(25deg); }
    100% { transform: translateX(100%) rotate(25deg); }
}

[data-bs-theme="dark"] .bg-shine {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.6));
}

.text-latin {
    text-align: center;
    font-size: 11px;
   background: linear-gradient(135deg, #747474, #bababa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

.datetime, .time {
    background: rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(4px);
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.chat {
    background: rgb(220 220 220 / 70%);
    backdrop-filter: blur(8px);
    border-radius: 24px 16px 24px 8px;
    padding: 10px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* اسکرول بار شیشه‌ای مدرن */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(203, 213, 225, 0.3);
    backdrop-filter: blur(4px);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46a0);
}

[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: rgba(51, 65, 85, 0.3);
}

/* انیمیشن ملایم برای بارگذاری */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* تاخیرهای مختلف برای کارت‌ها */
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }