﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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-family :Estedad !important;
  direction : rtl !important;

}
@font-face {
    font-family: 'Estedad';
    src: url('/fonts/Vazir.woff2') format('woff2'), url('/fonts/Vazir.woff') format('woff'), url('/fonts/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* کلاس بک‌گراند کل صفحه */
.bg-light-gradient {
    background: linear-gradient(135deg, #e0f7fa, #f1f8e9);
    min-height: 100vh;
    margin: 0;
}

/* کلاس شیشه‌ای برای کارت لاگین */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
/* سایدبار پیش‌فرض */



#sidebar {
    width: 300px;
    background: #343a40;
    color: white;
    transition: all 0.3s;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 1000;
    overflow-x: hidden;
    margin-top: 40px;
}

    #sidebar.collapsed {
        width: 50px;
    }

    #sidebar .nav-link {
        color: white;
        white-space: nowrap;
        overflow: hidden;
    }

    #sidebar.collapsed .nav-link span {
        display: none;
    }

#toggleSidebar {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
}

#content {
    margin-right: 250px;
    margin-top: 60px; /* فاصله از نوار بالا */
    transition: margin-right 0.3s;
}

    #content.collapsed {
        margin-right: 50px;
        margin-top: 60px;
    }

/* پیش‌فرض برای موبایل: بسته */
@media (max-width: 767.98px) {
    #sidebar {
        width: 250px;
        overflow: hidden;
    }

    #content {
        margin-right: 60px;
    }
}

/* استایل برای آکاردئون */
.nav-link[data-bs-toggle="collapse"] {
    position: relative;
    cursor: pointer;
}

    .nav-link[data-bs-toggle="collapse"]::after {
        content: "▼";
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
        font-size: 12px;
    }

    .nav-link[data-bs-toggle="collapse"][aria-expanded="true"]::after {
        transform: translateY(-50%) rotate(180deg);
    }


.submenu .nav-link {
    padding: 8px 15px;
    font-size: 14px;
    border-right: 2px solid #444;
}

    .submenu .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }