/*
Theme Name: landshare
Theme URI: http://example.com
Author: pouyan fazlali serkani
Author URI: http://developers.com
Description: calculate landshare and budjet for land | apartemans
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: landshare
*/


@font-face {
  font-family: 'Vazir';
  src: url('fonts/Vazir.woff2') format('woff2');
  font-weight: 400; /* وزن معمولی */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazir';
  src: url('fonts/Vazir-Medium.woff2') format('woff2');
  font-weight: 500; /* وزن متوسط */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazir';
  src: url('fonts/Vazir-Bold.woff2') format('woff2');
  font-weight: 700; /* وزن بولد */
  font-style: normal;
  font-display: swap;
}

:root {
    --bg: #f9fafb;
    --text: #111827;
    --box: #fff;
    --primary: #0ea5e9;
    --shadow: #cbd5e1;
    --primary-light: #d9f0ff; 
    --responsive :#b3dbff;

  }

  .dark-mode {
    --bg: #1e293b;
    --text: #f8fafc;
    --box: #334155;
    --primary: #38bdf8;
    --shadow: #475569;
    --primary-light: #264d73; /* نسخه ملایم‌تر برای حالت تاریک */
    --responsive :#3b6a99;
	
  }
  * {
  margin: 0 ;
  padding: 0;
  box-sizing: border-box;
  
}

 body {
    font-family: 'Vazir', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    box-sizing: border-box;
    top:0;

  }
#sabt {
    background-color: #001f4d !important;   /* رنگ تیره‌تر و جذاب‌تر */
    color: #ffffff !important;              /* متن سفید */
    width: 50% !important;                  /* کمی کوچکتر از قبل */
    display: block !important;
    font-size: 18px;
    font-weight: 600;
    margin: 15px auto;                      /* وسط چین با فاصله بالا و پایین */
    padding: 12px 0;                        /* ارتفاع بیشتر برای کلیک راحت‌تر */
    border: 2px solid #00ffff;              /* aqua روشن */
    border-radius: 30px;                     /* گوشه گرد بزرگ‌تر */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;             /* برای افکت hover */
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

#sabt:hover {
    background-color: #003366;             /* تغییر رنگ پس‌زمینه هنگام هاور */
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

    

  h1, h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: 'Vazir', sans-serif;
  }

  .container {
    max-width: 90%;
    margin: auto;
    background: var(--box);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 0 10px var(--shadow);
    font-family: 'Vazir', sans-serif;
    border-bottom: 2px solid var(--primary-light);
    

    
  }
  .p-text{
  
    text-decoration: underline;
    font-weight: bold;
    font-size: 15px;
    background: linear-gradient(90deg, #9945FF, #0ea5e9, #14f195);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: animateGradient 3s ease infinite;
    text-align: center;
    font-family: 'Vazir', sans-serif;
    margin-bottom : 5px;
     display : block;
     padding : 2rem 2rem ;
     margin-right : 0;
    text-align: right;
  }

  .form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    font-family: 'Vazir', sans-serif;
  }

  label {
    min-width: 160px;
    font-weight: 700;
    font-family: 'Vazir', sans-serif;
  }

  input[type="number"],
  input[type="text"] {
    flex: 1;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--shadow);
    font-size: 1rem;
    font-family: 'Vazir', sans-serif;
    
  }

  button {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    margin: 0.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-family: vazirmatn;
    font-family: 'Vazir', sans-serif;
	
  }
 
  button:hover {
      opacity: 0.85;
      color: var(--primary);
      background-color: var(--box);
      border: 2px solid var(--primary);
      font-family: 'Vazir', sans-serif;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    direction: rtl;
    font-family: 'Vazir', sans-serif;
  }

  th, td {
    padding: 0.75rem;
    border: 1px solid var(--shadow);
    text-align: center;
    font-family: 'Vazir', sans-serif;
  }

  th {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-family: 'Vazir', sans-serif;
  }

.actions {
  display: flex;
  flex-direction: row; /* حالت پیش‌فرض دسکتاپ: افقی */
  flex-wrap: nowrap;    /* اگر فضای کم شد، میره خط بعد */
  gap: clamp(12px, 2vw, 20px); /* فاصله بین دکمه‌ها */
  justify-content: center;
  width: clamp(90%, 80%, 1200px);
  margin: 1rem auto;
  padding: clamp(0.8rem, 1.5vw, 2rem);
  border-radius: clamp(12px, 2vw, 20px);
  transition: all 0.3s ease;
}

.actions button {
  flex: 1 1 clamp(150px, 20%, 250px); /* اندازه دکمه واکنش‌گرا */
  padding: clamp(0.5rem, 1vw, 0.85rem) clamp(0.8rem, 2vw, 1.2rem);
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  font-weight: 700;
  border-radius: clamp(8px, 1vw, 12px);
  border: none;
  cursor: pointer;
  text-align: center;
  background: linear-gradient(135deg, #0ea5e9, #9945FF, #14f195);
  background-size: 300% 300%;
  color: #fff;
  transition: all 0.3s ease, transform 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: gradientMove 4s ease infinite;
}

.actions button:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.actions button:active {
  transform: scale(0.98);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.note-hyper {
  position: relative;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 2.5rem 3.5rem;
  max-width: 90vw;
  margin: 2rem auto;
  color: #fff;
  font-family: 'Vazir', sans-serif;
  font-size: clamp(14px,2.5vw,19px);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  overflow: hidden;
  border: 1px solid rgba(255,0,0,1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.note-hyper:hover {
  transform: translateY(-12px) scale(1.06) rotateZ(1deg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.65);
}

.note-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
  background: linear-gradient(120deg,#14f195,#0ea5e9,#9945FF,#ff3c7f,#ffb800);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: textGradient 5s linear infinite;
}

.icon-badge {
  font-size: 2rem;
  animation: iconGlow 2s ease-in-out infinite alternate;
}

.note-text {
  font-weight: 400;
  color: var(--text);
  z-index: 2;
  position: relative;
}

.note-glow {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: radial-gradient(circle at 25% 25%, rgba(20,241,149,0.4), rgba(0,123,255,0.25), transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
  animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { filter: blur(70px); opacity: 0.8; }
  50% { filter: blur(100px); opacity: 1; }
  100% { filter: blur(70px); opacity: 0.8; }
}

.note-particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 50px 50px, 100px 100px, 150px 150px;
  animation: particlesMove 20s linear infinite;
}

@keyframes particlesMove {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 100px 50px, 200px 100px, 300px 150px; }
}

@keyframes iconGlow {
  0% { text-shadow: 0 0 5px #14f195,0 0 10px #0ea5e9,0 0 20px #ff3c7f; }
  50% { text-shadow: 0 0 25px #14f195,0 0 50px #0ea5e9,0 0 75px #ff3c7f,0 0 100px #ffb800; }
  100% { text-shadow: 0 0 5px #14f195,0 0 10px #0ea5e9,0 0 20px #ff3c7f; }
}

@keyframes textGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}



  .dark-toggle,
  .toggle-btn {
    position: fixed;
    top: 1rem;
    z-index: 999;
    border: 1px solid #cccfff;
    background: rgba(222,222,222,0.2);
    color: white;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Vazir', sans-serif;
  }

  .dark-toggle { left: 1rem; }
  .toggle-btn { right: 1rem; }


  .toggle-btn .responsive-label {
   display: none;
   
  }
  .p-print{
      display: none;
  }




  .p-title {
    text-decoration: underline;
    font-weight: bold;
    font-size: 28px;
    background: linear-gradient(90deg, #9945FF, #0ea5e9, #14f195);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: animateGradient 3s ease infinite;
    text-align: center;
    font-family: 'Vazir', sans-serif;
    margin-bottom : 5px;
  }

  @keyframes animateGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  .responsive-table {
    
    font-family: 'Vazir', sans-serif;
  }

  .sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: rgba(111,111,111,0.11);
    backdrop-filter: blur(10px);
    box-shadow: -3px 0 10px rgba(0,0,0,0.3);
    transition: right 0.3s ease-in-out;
    z-index: 1001;
    padding: 5px;
    overflow-y: auto;
    font-family: 'Vazir', sans-serif;
  }

  .sidebar.active {
    right: 0;
  }

  .sidebar-header {
    margin-bottom: 20px;
    font-family: 'Vazir', sans-serif;
  }

  .sidebar-header input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--shadow);
    border-radius: 6px;
    font-family: 'Vazir', sans-serif;
  }

  .clear-btn {
    background: #38bdf8;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Vazir', sans-serif;
  }

  .history-list {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
  }

  .history-item {
    background: rgba(222,222,255,0.2);;
    border: 1px solid var(--shadow);
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 10px 8px;
    position: relative;
    font-family: 'Vazir', sans-serif;
  }

      .delete-entry {
        position: absolute;
        font-family: 'Vazir', sans-serif;
        left: 8px;
        color:var(--primary);
        background-color: var(--box)
        ;
        font-size: 1rem;
        cursor: pointer;
        border: 1px solid var(--primary);
       
        
      }
      .edited-label {
      font-size: 0.3em;
      color: var(--primary);
      padding: 2px 4px;
      background: none;
      font-style: italic;
      display: inline;
      vertical-align: middle;
      font-family: 'Vazir', sans-serif;
    }
    .close-sidebar-btn {
      position: absolute;
      top: 0;
      left: -15px;
      background: transparent !important;
      font-size: 14px;
      color: navy !important; /* رنگ دکمه آبی */
      cursor: pointer;
      z-index: 1001;
      transition: color 0.2s, border-color 0.2s; /* اضافه کردن انیمیشن برای مرز */
      font-family: 'Vazir', sans-serif;
    }
    
    .close-sidebar-btn:hover {
      color: #2980b9 !important; /* رنگ آبی تیره هنگام هاور */
      border:none; /* 
      تغییر رنگ مرز به آبی تیره در هاور */
      
    }
    



  .top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(111,111,111,0.11);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--box);
    direction: rtl;
    opacity: 0.99;
    flex-wrap: nowrap; /* مهم: همیشه افقی */
    overflow-x: auto;  /* اگر عرض کم شد اسکرول افقی */
    font-family: 'Vazir', sans-serif;
    z-index : 1000;
    position: sticky; /* مهم */
    top: 0 !important; 
    left : 0;
    right : 0;
    width : 100%;/* بالای صفحه */


  }

  /* عنوان سایت */


.site-title {
  margin: 10px;
  font-size: 20px;
  font-weight: bold;
  background: linear-gradient(90deg, #9945FF, #0ea5e9, #14f195);
  background-size: 300% 300%; /* بعد از background */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: animateGradient 3s ease infinite;
  text-align: center;
  font-family: 'Vazir', sans-serif;
  white-space: nowrap;
}



  /* دکمه‌های چپ و راست */
  .nav-left,
  .nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    font-family: 'Vazir', sans-serif;
  }

  /* دکمه‌ها */
  .nav-left button,
  .nav-right button {
    color: var(--text);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease-out;
    white-space: nowrap;
    font-family: 'Vazir', sans-serif;

    
  }

  /* لینک‌های منو */
.nav-links {
    list-style: none !important;
    display: flex;
    justify-content: center; /* وسط چین کردن آیتم‌ها */
    align-items: center; /* تراز عمودی */
    gap:6rem; /* فاصله بین آیتم‌ها */
    padding: 0.5rem 0.5rem; /* فاصله بالا و پایین */
    margin: 0;
    flex-wrap: wrap; /* اجازه می‌ده تو موبایل به خط بعد بره */
    font-family: 'Vazir', sans-serif;
    height: auto;
    background: rgba(111,111,111,0.11); /* کمی شفافیت */
    backdrop-filter: blur(10px); /* افکت glassmorphic */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.nav-links li a {
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  position: relative;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center; /* متن وسط */
  width: 100%; /* برای grid/Responsive */

  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.25s ease,
    color 0.25s ease;
}

/* ستاره خاموش پیش‌فرض */
.nav-links li a::after {
  content: "✦";
  position: absolute;
  top: 4px;       
  right: 8px;     
  font-size: 0.8rem;
  color: rgba(255, 185, 0, 1);
  opacity: 0;     
  pointer-events: none;
}

/* چشمک ستاره فقط روی hover */
.nav-links li a:hover::after {
  opacity: 1;
  animation: sparkle 1.1s ease-in-out infinite;
}

@keyframes sparkle {
  0%   { transform: scale(0.6); opacity: 0.3; }
  50%  { transform: scale(1.35); opacity: 1; }
  100% { transform: scale(0.6); opacity: 0.3; }
}

/* خط زیر متن */
.nav-links li a::before {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.35s ease;
}

/* خط زیر هنگام hover */
.nav-links li a:hover::before {
  width: 90%;
}

/* ظاهر hover لینک */
@keyframes gradientHoverLight {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.nav-links li a:hover {
  transform: scale(1.04);
  background: linear-gradient(90deg, #9945FF, #0ea5e9, #14f195);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientHoverLight 3s ease infinite;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}






  .nav-center {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logo {
    height: 90px; /* یا 32px اگر کوچکتر می‌خوای */
    vertical-align: middle;
    width: auto;
    background-color:transparent;
    
  }
 .site-footer {
  background: var(--box); /* مشکی شیک */
  color: var(--text);
  max-width: 90%;
  margin: auto;
  padding: 1.5rem;
  border: 1px solid var(--box);
  border-radius: 12px;
  box-shadow: 0 0 10px var(--primary-light);
  font-family: 'Vazir', sans-serif;
  margin-top : 10rem;
  }

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  font-family: 'Vazir', sans-serif;


  }

.footer-column {
  flex: 1 1 250px;
  min-width: 220px;
  font-family: 'Vazir', sans-serif;


 
  }

.footer-column h3 {
  color: var(--primary);
  font-size: 18px;
  margin-bottom: 15px;
  text-decoration: underline;
  font-family: 'Vazir', sans-serif;
  font-size: larger;
  }

.footer-column p,
.footer-column ul {
  font-size: 16px;
  line-height: 1.8;
  }

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  }

.footer-column ul li {
  margin-bottom: 8px;
  font-family: 'Vazir', sans-serif;
  }

.footer-column ul li a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
  font-family: 'Vazir', sans-serif;
  }

.footer-column ul li a:hover {
  color: var(--text);
  transition: color 0.5s;
  font-size: large;
  border : none ; 
  border-bottom: 2px solid var(--primary);


  }

.social-icons {
  margin-top: 20px;
  }

.social-icons a {
  display: inline-block;
  margin-right: 12px;
  font-size: 30px;
  color:var(--shadow);
  transition: color 0.3s;
  }

.social-icons a:hover {
  color: var(--primary);
  }

.footer-bottom {
  border-top: 1px solid var(--primary);
  margin-top: 30px;
  padding: 15px 10px;
  text-align: center;
  font-size: 13px;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap :wrap;
  gap : 10px;


}
.footer-column-contact{
  color: var(--primary);
  font-size: 18px;
  margin-bottom: 15px;
  text-decoration: none;
  font-family: 'Vazir', sans-serif;
  margin-top : 15px;
}


.responsive-table {
  width: 100%;
  font-family: 'Vazir', sans-serif;
 
}
.responsive-table table{
  width: 100%;
  border-collapse: collapse;
  font-family: 'Vazir', sans-serif;
 
    
}

.responsive-table th,
.responsive-table td {
  border: 1px solid var(--shadow);
  padding: 8px;
  text-align: center;
  word-break: break-word; /* جلوگیری از بیرون‌زدن متن */
}

.responsive-table input {
  width: 100%;
  box-sizing: border-box;
  background-color: #F0FBFF;


}


.custom-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: 0.75rem; /* مثل Tailwind rounded-lg */
  font-weight: bold;
  font-family: 'Vazir', sans-serif;
  text-decoration: none;
  color:--var();
  background-color: var(--bg);
  background: linear-gradient(270deg, #ff4b2b, #ff416c, #0ea5e9, #9945FF, #ff4b2b);
  background-size: 200% 200%;
  animation: gradientMove 5s ease infinite;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* LED چشمک‌زن */
.custom-btn .led {
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--bg);
  border-radius: 50%;
  animation: pulse 1s infinite;
}

/* انیمیشن گرادیانت */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* چشمک زدن LED */
@keyframes pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/*====================MANDETORY ==============================*/

/* انیمیشن چشمک زدن */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* اعمال روی ستاره */
label span {
  color: red;           /* رنگ ستاره */
  font-weight: bold;
  animation: blink 1s infinite;  /* انیمیشن 1 ثانیه‌ای تکرار شونده */
  margin-left: 5px;
  font-size : 20px;
}

.glass-message {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: rgba(110, 231, 150, 0.2); /* Tailwind: bg-blue-200/30 */
  color: var(--text); /* Tailwind: text-blue-900 */
  border: 1px solid rgba(0, 102, 34, 1); /* Tailwind: border-blue-500/50 */
  border-radius: 12px; /* rounded-lg */
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  margin-bottom: 0.75rem;
}

.glass-message:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 255, 255, 0.1);
}

.glass-message .icon-badge {
  font-size: 1.1rem;
}





/*====================responsive======================*/

@media screen and (max-width: 768px) {
  .top-navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px; /* فاصله کم */
    padding: 0.5rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    width: 100%;
    height: auto;
    /*position: fixed;*/
    top: 0;
    left: 0;
    z-index: 999;
    transition: all 0.3s ease;
  }
  
  .note-hyper { padding: 2rem 2.5rem; font-size: clamp(13px,4vw,17px); }
  .icon-badge { font-size: 1.8rem; }

  .container {
      width  : 90%;
  }
  .actions {
    flex-direction: row; /* افقی */

  }
  .actions button {
    font-size: clamp(10px, 2vw, 14px);
    padding: 0.5rem 0.7rem;
  }



  .site-title, .logo {
    display: none; /* مخفی کردن لوگو و عنوان */
  }

  /* لینک‌ها به صورت grid */
 .nav-links{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    padding: 0.5rem 0.5rem;
    border-radius: 16px;
    justify-content : center;
    text-align : center;
    align-items : center;
  }

  .nav-links li{
    width: 100%;
    max-width : 100%;
    justify-content : center;
    text-align : center;
    align-items : center;
    
  }

  .nav-links li a{
  display: flex;                 /* کلیدی */
  align-items: center;           /* وسط‌چین عمودی */
  justify-content: center;       /* وسط‌چین افقی */
  width: 100%;
  height: 44px;                  /* ارتفاع استاندارد */
  text-align: center;
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;           /* جلوگیری از شکستن متن */
  transition: all 0.25s ease;
  
  }

  .nav-links li a:hover{
    transform: scale(1.03);
  }

  /* دکمه‌ها */
  .nav-left, .nav-right {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
  }

  .nav-left button, .nav-right button {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 8px;
    background-color: inherit;
    color: var(--primary);
    border: 1px solid rgba(14,165,233,0.3);
    transition: all 0.3s ease;
  }

  .nav-left button:hover, .nav-right button:hover {
    transform: translateY(-1px) scale(1.03);
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.2);*/
    background-color: inherit;
  }

  /* nav-center اگر لازم شد */
  .nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .nav-center .logo {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
  }
  .nav-center .logo:hover {
    transform: scale(1.08);
  }

  .nav-center .site-title {
    font-size: 26px;
    text-align: center;
    background: linear-gradient(90deg, #9945FF, #0ea5e9, #14f195);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animateGradient 4s ease infinite;
  }

  .nav-left, .nav-right {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
  }

  .nav-left button, .nav-right button {
    width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border-radius: 10px;
    background-color: inherit;
    color: var(--primary);
    transition: all 0.3s ease;
  }
  .nav-left button:hover, .nav-right button:hover {
    transform: translateY(-2px) scale(1.05);
    background-color: inherit;
  }


   .custom-btn {
    width: auto
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    justify-content: center;
    white-space: nowrap; 
    margin-top : 0;/* جلوگیری از رفتن متن به خط بعد */
  }



@keyframes gradientSpin {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.toggle-btn .responsive-label {
  display: inline-block; /* فقط اندازه متن */
  font-size: 30px;
  cursor: pointer;
  user-select: none;

  background: linear-gradient(90deg, #9945FF, #0ea5e9, #14f195);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: gradientSpin 8s ease-in infinite; /* مدت زمان بیشتر و easing نرم‌تر */
  
  padding: 0;
  margin: 0;
  width: auto; /* مهم */

  
}
.site-footer{
        
    text-align : center;
    justify-content:center;
    align-items : center;
}



.full-label {
  display: none;
}





  .nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 1;  /* اول بیاد */
    margin-bottom: 10px;
  }

  .nav-center .logo {
    order: 1; /* لوگو اول */
    height: 80px;
    width: auto;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
  }

  .nav-center .logo:hover {
    transform: scale(1.05);
  }

  .nav-center .site-title {
    order: 2; /* عنوان بعد از لوگو */
    font-size: 28px;
    font-weight: 500;
    text-align: center;
    margin: 0;
    color :var(--primary);
  }

  /* دکمه‌های چپ و راست زیر عنوان */
  .nav-left, .nav-right {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 12px;
  }

  /* دکمه‌ها هم اندازه */
  .nav-left button,
  .nav-right button {
    padding:0;
    font-size: 1rem;
    border-radius: 10px;
    color:var(--primary);
    background-color: inherit;
    border :none;

  }
  
  /* حالت رسپانسیو کارت مانند جدول */
    .responsive-table thead {
    display: none; /* هدر مخفی */
  }
  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }

  .responsive-table tr {
    border: 2px solid var(--primary-light);
    margin-bottom: 10px;
    padding: 8px;
    display: block;
    border-radius : 10px;

  }

  .responsive-table td {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 6px 0;
    word-break: break-word; /* متن نشکنه بیرون */
  }


  .responsive-table td::before {
    content: attr(data-label);
    font-weight: bold;
    flex: 1 1 20%;
    text-align: right; /* سمت شروع RTL */
    direction : rtl;
    color: var(--primary);
  }

  .responsive-table td:last-child {
    border-bottom: none;
  }
  .responsive-table tbody tr:nth-child(even) {
    background-color: var(--primary-light); /* یا هر رنگی که خواستی */
}
  .responsive-table tbody tr:nth-child(odd) {
    background-color: var(--responsive); /* یا هر رنگی که خواستی */
}


  .responsive-table input {
     flex: 1 1 55%; /* ورودی عرض مجاز داشته باشه */
    min-width: 100px;
    max-width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
  .footer-bottom > * {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
  }



  #summary thead {
    display: none;
  }

  #summary,
  #summary tbody,
  #summary tr,
  #summary td {
    display: block;
    width: 100%;
  }

  #summary tr {
    border: 1px solid var(--primary-light);
    padding: 8px;
    background-color:var(--box);
    
  }

  #summary td {
    
    justify-content: right;
    align-items: center;
    border: none;
    padding: 6px 0;
    word-break: break-word;
  }
    #summary td::before {
    content: attr(data-label);
    font-weight: bold;
    flex: 1 1 40%;
    text-align: right;
    color: var(--primary);
    direction: rtl;
  }


  #summary td:first-child {
    background-color : var(--primary);
  }
  #summary td:last-child {
    background-color: var(--primary-light); /* رنگ پس‌زمینه ستون دوم */
}
  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr); gap :0; 
    width: 99vw;
    padding: 1rem 0.5rem;
    justify-items: center; /* وسط چین کردن هر لینک داخل Grid */
    background: rgba(111,111,111,0.12);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(11,10,11,0.08);
    /*margin :1rem;*/
  }

  .nav-links li a {
    display: block;
    width: 95%;
    text-align: center;
    justify-content : center;
    align-items : center;
    border-radius: 10px;
    font-size: 0.75rem;
    color: var(--text);
    font-weight: 600;
    transition: all 0.3s ease;
    border : 1px solid rgba(118, 119, 79, 0.31);
    margin-top  : 2rem ;
    margin-bottom : 2rem ;
    position : relative;
    overflow : hidden;
  }

/* Keyframes سبک برای hover */
@keyframes gradientHoverLight {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.nav-links li a:hover {
  transform: scale(1.04);
  background: linear-gradient(90deg, #9945FF, #0ea5e9, #14f195);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientHoverLight 3s ease infinite;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

    html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw;
    overflow-x: hidden;
  }

  .container,
  .site-footer,
  .footer-container,
  .footer-bottom,
  .results,
  .box,
  .content,
  main,
  section,
  .wrapper {
    width: 100vw !important;
    max-width: 96% !important;
    margin:3px 3px  !important;
    padding: 6px 6px !important;
    border-radius: 5px !important;
    box-shadow:0 !important;
  }
    body {
    padding: 5px !important;
  }
  h1{
      font-size : 2rem;
  }
  #sabt {
    width: 100% !important;   /* دکمه عرض کامل بگیره */
    font-size: 18px;          /* اندازه متن مناسب */
    padding: 0.75rem 0;       /* فاصله داخلی بیشتر */
    margin: 10px 0;           /* فاصله بالا و پایین */
    display: block !important;
    text-align: center;       /* متن وسط چین */
    border-radius: 10px;      /* گوشه‌های گرد */
  }




/* ======== حالت تا 480 پیکسل ======== */
@media (max-width: 480px) {
  .footer-bottom {
    flex-direction: column;
    gap: 15px;

  }
  .nav-links {
    gap: 6px;
    padding: 0.45rem 0.4rem;
  }

  .nav-links li a {
    height: 34px;
    font-size: 0.65rem;
    border-radius: 8px;
  }
  .footer-bottom ul.nav-links {
    flex-direction: column;
    gap: 10px;
    text-align : center;
    font-size: 0.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-bottom .social-icons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-bottom p {
    font-size: 13px;
    padding: 0 10px;
  }
    .container {
      width  : 90%;
  }
  .actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between; /* فاصله مساوی بین دکمه‌ها */
    width: 100%;
    gap: 10px; /* فاصله بین دکمه‌ها */
    padding: 5px 0;
  }

  .actions button {
    flex: 1 1 0;           /* دکمه‌ها هم اندازه و کوچک‌تر */
    min-width: 0;          /* جلوگیری از بیرون زدن دکمه */
    height: auto;          /* ارتفاع خودش رو بر اساس محتوا بگیره */
    font-size: 0.85rem;    /* متن کوچکتر */
    padding: 0.5rem 0.3rem;
    text-align: center;
    white-space: normal;   /* متن روی چند خط بشه */
    line-height: 1.2em;    /* فاصله خطوط مناسب */
    border-radius: 6px;    /* گردی گوشه‌ها */
  }
  #cal button {
    font-size: 1.2rem;
    padding: 1rem 2rem;
  }

  /* دکمه‌های PDF / Excel / پاک کردن */
  .actions:not(#cal) button {
    flex: 1 1 30%; /* هر دکمه حدود 30% عرض بگیره */
    font-size: 0.9rem; /* کمی کوچکتر برای موبایل */
    padding: 0.8rem 0.5rem;
  }
  
}

  /* حالت چاپ */
  @media print {
    .actions,
    .dark-toggle,
    .toggle-btn,
    .p-title {
      display: none !important;
    }

    .p-print {
      display: block;
      font-weight: bold;
      color: #414141;
      text-align: center;
    }
      table {
        border: 1px solid #000;
  }
     th, td {
     border: 1px solid #000;
     color: #000;
  }
  
    
}      
