/* force direction text*/
/* فقط متن‌های پاراگرافی و طولانی */
body.fa p,
body.fa .error-text,
body.fa .card p {
    direction: rtl !important;
}

body.en p,
body.en .error-text,
body.en .card p,
body.tr p,
body.tr .error-text,
body.tr .card p {
    direction: ltr !important;
}

.row{
  display: flex;
  flex-direction: row;
  align-items: center;
}




@font-face {
  font-family: 'Pinar';
  src: url('../fonts/Pinar-Regular.woff2') format('woff2'),
       url('../fonts/Pinar-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* ensures text is shown while font loads */
}

@font-face {
  font-family: 'Vazir';
  src: url('../fonts/Vazir.woff2') format('woff2'),
       url('../fonts/Vazir.woff') format('woff'),
       url('../fonts/Vazir.ttf') format('truetype'),
       url('../fonts/Vazir.eot') format('eot');

  font-weight: normal;
  font-style: normal;
  font-display: swap; /* ensures text is shown while font loads */
}

@font-face {
  font-family: 'Vazir';
  src: url('../fonts/Vazir-Bold.woff2') format('woff2'),
       url('../fonts/Vazir-Bold.woff') format('woff'),
       url('../fonts/Vazir-Bold.ttf') format('truetype'),
       url('../fonts/Vazir-Bold.eot') format('eot');

  font-weight: bold;
  font-style: normal;
  font-display: swap; /* ensures text is shown while font loads */
}

@font-face {
  font-family: 'Vazir';
  src: url('../fonts/Vazir-Light.woff2') format('woff2'),
       url('../fonts/Vazir-Light.woff') format('woff'),
       url('../fonts/Vazir-Light.ttf') format('truetype'),
       url('../fonts/Vazir-Light.eot') format('eot');

  font-weight:lighter;
  font-style: normal;
  font-display: swap; /* ensures text is shown while font loads */
}

@font-face {
  font-family: 'Vazir';
  src: url('../fonts/Vazir-Thin.woff2') format('woff2'),
       url('../fonts/Vazir-Thin.woff') format('woff'),
       url('../fonts/Vazir-Thin.ttf') format('truetype'),
       url('../fonts/Vazir-Thin.eot') format('eot');

  font-weight:100;
  font-style: normal;
  font-display: swap; /* ensures text is shown while font loads */
}




/* Generic resets */
* {
  box-sizing: border-box;
}

html {
  height: 100%;
  margin: 0;
}

* {
    font-family: Vazir, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh; 
  height: 100%;
  background: url("../images/img1.png") no-repeat center center fixed;
  background-size: cover;
  color: var(--text-light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0.9);
  backdrop-filter: brightness(1.4);  /* no blur */
  -webkit-backdrop-filter: brightness(1.4);
  z-index: -1;
}

/*body::before {*/
/*  content: "";*/
/*  position: fixed;*/
/*  top: 0;*/
/*  left: 0;*/
/*  width: 100%;*/
/*  height: 100%;*/
/*  !* black overlay at 60% opacity *!*/
/*  background-color: rgba(0, 0, 0, 0.6);*/
/*  z-index: -1; !* keep it under content *!*/
/*}*/

.main-container {
  width: 100%;
  height: calc(100vh - var(--header-height-size));
  margin-top: var(--header-height-size);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}



/* Container used on most pages to centre content */
.container {
  width: 90%;
  margin: 2rem auto;
}

html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

.card-wrapper {
  margin: auto;         
  display: flex;        
  justify-content: center; 
  align-items: center;     
  flex-direction: column;
  flex-grow: 1;
  margin: 0px;
}

.card {
  background: rgba(255, 255, 255, 0.005);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);

  /* Make height fit content */
  min-height: auto;       /* remove fixed min-height */
  max-width: 600px;       
  width: 100%;
  margin: 2rem auto; 
  text-align: center;     
}

/* Optional: center content vertically if you want it in the middle of the viewport */
body[data-page="home"] .container,
body[data-page="register"] .container {
  display: flex;
  justify-content: center;   
  align-items: center;       
  min-height: 100vh;         
  padding: 1rem;             
  flex-direction: column;
}

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--primary-color);
  font-weight: bold;
  text-align: center;
}

h1 { font-size: var(--h1-size-md); }
h2 { font-size: var(--h2-size-md); }
h3 { font-size: var(--h3-size-md); }
h4 { font-size: var(--h4-size-md); }

/* for bigger than 768px */
@media (min-width: 768px) { 
  h1 { font-size: var(--h1-size); }
  h2 { font-size: var(--h2-size); }
  h3 { font-size: var(--h3-size); }
  h4 { font-size: var(--h4-size); }
}


.text-danger {
  color: (--danger-color);
}


/* Inputs */
input[type="text"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="email"] 
 {
  width: 100%;
  outline: none;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text-light-color);
  text-align: right;
}

/* Buttons */
button,
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background-color: var(--primary-color);
  color: var(--text-dark-color);
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
  text-decoration: none;
  
}


.btn:hover {
  background-color: #e0b022;
}


.btn-icon {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: 0.3s;
    color: #fff;
    display: flex;
}
.btn-icon.btn-icon-danger:hover{
  background: #7f1d1d ;
}

.btn-icon:hover {
    background: #374151;
}

.btn-danger {
    /* background: linear-gradient(135deg, var(--danger-color), #dc2626); */
    background-color: transparent;
    border: 2px solid #dc2626;
    color: #dc2626;

}

.btn-danger:hover {
    background-color: #dc2626;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239,68,68,0.35)
}

.btn-danger img {
    filter: brightness(0) invert(1);
    width: 18px;
    height: 18px;
}



button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Links */
a.link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

a.link:hover {
  text-decoration: underline;
}



.remaining-count {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.85rem;
  color: #b3c5e3;
}

/* Slots list */
.slot-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.slot-item {
  background: rgba(31, 63, 112, 0.4);
  color: var(--text-light-color);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slot-item:hover {
  background: rgba(14, 42, 85, 0.4);
}

/* Confirmation */
.confirmation {
  text-align: center;
}

.confirmation .details {
  margin: 1rem 0;
  font-size: 1.1rem;
  color: #b3c5e3;
}
input::placeholder {
  color: #b3c5e3;   
  opacity: 1;       
}

/* === Background slideshow container and slides === */
.bg-slideshow {
  position: fixed;          
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;              
  overflow: hidden;
}

/* each slide is a full-screen background image */
.bg-slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* individual slide images */
.bg-slideshow .slide1 { background-image: url("../images/img1.png"); }
.bg-slideshow .slide2 { background-image: url("../images/img2.png"); }
.bg-slideshow .slide3 { background-image: url("../images/img3.png"); }
.bg-slideshow .slide.active { opacity: 1; }

/* === Dark overlay stays on top of slideshow but under content === */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;   /* above slideshow (-1) but below .container (1) */
}



/* Logo at top-right corner */
/*.logo {*/
/*  position: fixed;      !* stay in place even when scrolling *!*/
/*  top: 1rem;            !* distance from top *!*/
/*  right: 1rem;          !* distance from right *!*/
/*  width: 80px;          !* adjust as needed *!*/
/*  height: auto;         !* maintain aspect ratio *!*/
/*  z-index: 10;          !* above everything else *!*/
/*}*/

.footer {
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5); /* dark glass background */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1rem;
  z-index: 5;
  display: flex;
  justify-content: center;   
  align-items: center;
  flex-wrap: wrap;
  color: var(--text-light-color);
  font-size: 0.9rem;

}

.footer-content {
  display: flex;
  justify-content: center;   
  align-items: center;
  /* text-align: center;         */
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.footer-content p {
  margin: 0; /* remove default p margin */
  font-size: 0.7rem;
}


.toolbar-btn-top .flag {
  width: 24px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.toolbar-btn-top .flag:hover {
  transform: scale(1.1);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height-size);
  display: flex;
  align-items: center;      /* vertical center */
  justify-content: center;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  

}


.header-content {
  display: flex;
  align-items: center;  
  justify-content: space-between;
  width: 90%;
}

/* keep your original logo size */
.header .logo {
  height: 60px;    /* bigger logo */
  width: auto;
  display: block;
  object-fit: contain;
}

/* keep your original flag size but align vertically */
.toolbar-btn-top {
  display: flex;
  align-items: center; /* vertical align of flags themselves */
  gap: 15px;
}

.toolbar-btn-top .flag {
  width: 24px;   /* small flags */
  height: auto;
  cursor: pointer;
}

.site-title {
  font-size: 1.9rem;
  color: #fff;
  margin: 0;
}

.card .btn {
  display: block;          
  width: fit-content;      
  margin: 1rem auto 0;     
  text-align: center;      
}

html.ltr, body.ltr {
  direction: ltr !important;
  text-align: left !important;
}

html.rtl, body.rtl {
  direction: rtl !important;
  text-align: right !important;
}


html[dir="ltr"] .header-logout-btn{
  margin-right: 0px;
}

html[dir="rtl"] .header-logout-btn{
  margin-left: 0px;
}






/* tables */
.table-action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

