@font-face {
    font-family: 'Vazir';
    src: url('../fonts/vazir/Vazir.woff2') format('woff2'),
         url('../fonts/vazir/Vazir.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

h1, h2, h3, h4, h5, h6, p, input, button {
    font-family: 'Vazir', Tahoma, sans-serif !important;
}


body, html {
    font-family: 'Vazir', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
}

.login-page {
    background-color: #f4f6f9;
}

.login-logo b {
    color: #007bff;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.alert {
    font-size: 14px;
}



      
      /* overlay لودینگ مثل قبل */
.overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* استایل SVG اسپینر */
.spinner-svg {
    animation: rotateSvg 2s linear infinite;
}

.spinner-path {
    stroke: #4facfe; /* رنگ اصلی */
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

/* چرخش کل SVG */
@keyframes rotateSvg {
    100% { transform: rotate(360deg); }
}

/* انیمیشن دَش دایره */
@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

 
/* جدول عملکرد سایت */
.table {
    border-radius: 12px;
    overflow: hidden;
}

.table th, .table td {
    vertical-align: middle !important;
}

.progress {
    background-color: #f1f1f1;
    border-radius: 20px;
}

.progress-bar {
    border-radius: 20px;
}



/* توضیحات جدول عملکرد */
.tooltip {
  font-family: 'Vazir', Tahoma, sans-serif !important;
  font-size: 14px;
}

.tooltip-inner {
  background-color: #3B82F6 !important; /* پس‌زمینه آبی خوش‌رنگ */
  color: #fff !important; /* رنگ متن سفید */
  padding: 10px 15px;
  border-radius: 10px;
  max-width: 250px;
  text-align: right;
  direction: rtl;
  font-size: 13px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tooltip.bs-tooltip-top .arrow::before {
  border-top-color: #3B82F6 !important;
}

.tooltip.bs-tooltip-bottom .arrow::before {
  border-bottom-color: #3B82F6 !important;
}

.tooltip.bs-tooltip-left .arrow::before {
  border-left-color: #3B82F6 !important;
}

.tooltip.bs-tooltip-right .arrow::before {
  border-right-color: #3B82F6 !important;
}


/* آیکن پرچم */
.custom-select-server {
    border: 2px solid #3B82F6;
    border-radius: 10px;
    padding: 10px;
    font-size: 16px;
}



/*منوی راستچین داشبورد*/
body.rtl .main-sidebar {
  right: 0;
  left: auto;
}

body.rtl .content-wrapper {
  margin-right: 250px;
  margin-left: 0;
}

body.rtl .main-header {
  margin-right: 250px;
  margin-left: 0;
}


/*منوی بالا صفحه نتیجه*/
.navbar-custom {
            background: linear-gradient(to right, #4e54c8, #8f94fb);
        }
        .navbar-custom .nav-link {
            color: white !important;
            margin-left: 15px;
            transition: 0.3s;
        }
        .navbar-custom .nav-link:hover {
            color: #ffd600 !important;
        }
        .btn-login, .btn-register {
            background-color: #ffffff;
            color: #4e54c8;
            border-radius: 20px;
            padding: 5px 15px;
            transition: 0.3s;
        }
        .btn-login:hover, .btn-register:hover {
            background-color: #f1f1f1;
            color: #333;
          
          
}
      
              
          /*filstrip*/
          
.filmstrip-container {
    overflow-x: auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.filmstrip-timeline {
    display: flex;
    flex-direction: row; /* ترتیب از چپ به راست */
    direction: ltr; /* اجبار به چپ به راست حتی توی RTL */
    gap: 20px;
    min-width: 600px;
    padding-bottom: 10px;
}


.filmstrip-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.filmstrip-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.filmstrip-frame img {
  
    width: 100%;
    height: auto;
    border-bottom: 1px solid #eee;
    border-radius: 8px 8px 0 0;
}

.time-label {
    position: relative;
    padding: 8px 10px;
    background-color: #007bff;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    width: 100%;
    text-align: center;
    border-radius: 0 0 8px 8px;
}

/* مارکرهای رویدادها */
.marker {
    position: absolute;
    top: -16px; /* جابجا کن برای بهتر دیده شدن */
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    color: #fff;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* رنگ‌بندی براساس نوع مارکر */
.marker.ttfb { background-color: #28a745; }           /* سبز */
.marker.fcp { background-color: #ffc107; }            /* زرد */
.marker.lcp { background-color: #17a2b8; }            /* آبی روشن */
.marker.tti { background-color: #6f42c1; }            /* بنفش */
.marker.fully-loaded { background-color: #dc3545; }   /* قرمز */