/* static/css/sidebar-secondary.css */
.sidebar-secondary {
    position: fixed;
    top: var(--navbar-height);
    right: var(--sidebar-primary-width);
    width: var(--sidebar-secondary-width);
    height: calc(100vh - var(--navbar-height-15));
    background-color: #dff4f0;
    border-left: 1px solid #36495c;
    z-index: 1021;
    display: flex;
    flex-direction: column;
    
    /* انیمیشن بهینه با transform */
    transform: translateX(100%); /* در حالت RTL، به سمت راست بیرون می‌رود */
    visibility: hidden; /* در حالت بسته کاملاً مخفی می‌شود */
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), top 0.10s ease; /* ✅ top به انیمیشن اضافه شد */
    
    /* ✅ ۱. پس‌زمینه نیمه‌شفاف */
    background-color: rgba(113, 240, 132, 0.295);

    /* ✅ ۲. افکت مات‌کننده (بلور) */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(12px); /* برای پشتیبانی از سافاری */

    /* ✅ ۳. حاشیه شیشه‌ای ظریف */
    border-left: 1px solid rgba(113, 240, 133, 0.601);
    
    /* انیمیشن بهینه */
    transform: translateX(100%);
    
    visibility: hidden;
}

.sidebar-secondary.is-visible {
    transform: translateX(0);
    visibility: visible;
}

/* بقیه استایل‌های header و body بدون تغییر باقی می‌مانند */
.sidebar-secondary-header {
    padding: 1.25rem;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0; /* جلوگیری از کوچک شدن header */
}
.sidebar-secondary-body {
    padding: 1rem;
    overflow-y: auto;
    flex-grow: 1;
}
.sidebar-secondary-body ul {
    padding-right: 0; /* حذف تورفتگی پیش‌فرض لیست */
}
.sidebar-secondary-body ul a {
    background-color: rgba(250, 250, 250, 1);
    display: flex;
    align-items: center;
    gap: 10px; /* فاصله بین آیکون و متن */
    padding: 0.6rem 1rem;
    color: #005fbe;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.5s ease;
    border: 5px;
    border-color: #36495c;
}
.sidebar-secondary-body ul a:hover {
    background-color: #e9ecef;
}
.sidebar-secondary-body ul a.active {
    background-color: #0d6efd;
    color: #fff;
}
@font-face {
          font-family: '{{ preferred_font.name }}';
          src: url('{{ preferred_font.ttf_file.url }}') format('truetype'),
               url('{{ preferred_font.woff_file.url }}') format('woff'),
               url('{{ preferred_font.eot_file.url }}') format('eot'),
               url('{{ preferred_font.woff2_file.url }}') format('woff2');
      }
body, h1, h2, h3, h4, h5, h6, p, a, span, div, li, ul, ol, input, select, textarea, button {
font-family: '{{ preferred_font.name }}';
}