/* Reset / base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-logo);
  background-color: var(--color-bg);
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 0 1rem;
  background-color: var(--color-primary);
  height: 60px;
  position: relative;
  z-index: 10;
}

/* Buttons inside navbar */
.navbar .btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
}

/* Logo */

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background-color: transparent;
  transition: background 0.3s;
  text-decoration: none;
}

/* logo + text inline */
.side-logo-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-menu-trigger {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  border: 0.1rem solid var(--color-white);
  border-radius: 70%;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.user-menu-trigger:hover {
  background-color: var(--color-primary-light);
}


.side-logo img,
.logo img {
  height: 36px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo img {
  height: 48px;
}
.logo .btn.vertical-menu-trigger {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  margin: 2.0rem 0;
  border-radius: 4px;
  transition: background 0.3s;
}

.logo .btn.vertical-menu-trigger:hover {
  background-color: var(--color-primary-light);
}

.logo span {
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  white-space: nowrap;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
  white-space: nowrap;
  text-decoration: none;
}

.side-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.9rem;
  padding-bottom: 0.3rem;
  border-bottom: 0.2rem solid var(--color-accent);
}


/* Navigation links */
.nav-links {
  display: flex;
  gap: 0.75rem;
  margin: 0 1rem;
}

/* Sticky behavior */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1000;                /* above drawers/modals */
  backdrop-filter: saturate(120%) blur(2px);
}

/* Solid background so content doesn't ghost under it */
.sticky-nav .navbar {
  background: var(--color-primary, #008B9C);
  color: #fff;
}

/* Add a gentle shadow once you scroll a tad */
.sticky-nav.is-scrolled .navbar {
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

/* Optional: make sure nav items don’t stretch too tall */
.sticky-nav .navbar { min-height: 56px; }

/* If your nav had margin-top before, kill it */
.sticky-nav { margin-top: 0; }


.nav-links .nav-btn {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.0rem;
  font-weight: 450;
  cursor: pointer;
  padding: 0.5rem 0.55rem;
  border-radius: 4px;
  transition: background-color var(--transition-speed);
  text-decoration: none;
  font-family: var(--font-logo);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-links .nav-btn:hover {
  border: 0.1rem solid var(--color-white);
  border-radius: var(--radius-md);
}

/* Language chips */
.language-switcher {
  display: flex;
  border: 0.1rem solid var(--color-white);
  border-radius: var(--radius-md);
  padding: 0.3rem;
  align-items: center
}

.language-switcher.rtl {
  flex-direction: row-reverse
}

.lang-side {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-white);
  background: var(--color-bg);
  color: var(--color-primary);
  font-weight: 700;
  cursor: pointer;
  margin: 0.1rem;
}

.lang-card {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-white);
  background: transparent;
  color: var(--color-bg);
  font-weight: 700;
  cursor: pointer;
  margin: 0.1rem;
}

.lang-side.active,
.lang-side[aria-pressed="true"] {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-bg)
}

.lang-card.active,
.lang-card[aria-pressed="true"] {
  background: var(--color-bg);
  color: var(--color-primary-light);
  border-color: var(--color-bg)
}

/* Sidebar overlay (darken page when sidebar open) */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-speed);
  z-index: 5;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Sidebar common */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background-color: white;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform var(--transition-speed);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overflow-y: auto;      /* enables vertical scroll when needed */
  overflow-x: hidden;    /* prevents sideways scrollbars */
  scrollbar-width: thin; /* nice minimal scrollbar for Firefox */
}

.sidebar.sidebar-right {
  right: 0;
  left: auto;
  transform: translateX(-100%);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
  transform: translateX(0);
}

/* Sidebar header */
.sidebar-header {
  display: flex;
  
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  padding-bottom: 0.2rem;
  background-color: var(--color-white);
  color: white;
  border-bottom: 0.2rem solid var(--color-accent);
}

/* button default position: right */
.close-btn-right {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.2s ease;
  order: -1; 
  margin: 0.5rem;
  font-weight: 600;
}

.close-btn-left {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.2s ease;
  order: 2; 
  margin: 0.5rem;
  font-weight: 600;
}

.close-btn-right:hover, .close-btn-left:hover {
  color: var(--color-accent);
}

.sidebar-left[dir="rtl"] .side-logo {
  flex-direction: row; /* keep logo left, button right for RTL left sidebar */
}

.sidebar-right[dir="rtl"] .side-logo {
  flex-direction: row-reverse; /* flip only for right sidebar */
}


[dir="rtl"] .close-btn-left {
  order: 1;                     /* force it to appear leftmost */
}


.side {
  color: var(--color-primary);
}

/* Sidebar menu */
.sidebar-nav {
  list-style: none;
  padding: 0;
  
  flex-grow: 1;
  overflow-y: auto;
  background-color: var(--color-white);  
  margin-bottom: 0.3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* Vertical center */
  
}

/* Main service buttons */
.service-section {
  display: flex;
  flex-direction: column;
  
}

.sidebar-nav li {
  margin-bottom: 0.6rem; /* vertical spacing between buttons */
}

.side-btn {
  display: block;
  text-align: center;
  color: var(--color-primary);
  background-color: var(--color-white);
  border: 0.1rem solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.2s, color 0.2s;
  text-decoration: none;
}

.side-btn:hover {
  color: var(--color-white);
  margin-bottom: .4rem;
  background-color: var(--color-primary);
  transition: var(--transition-speed);  
}
.sidebar-title {
  padding-top: 0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  background-color: transparent
}

.sidebar-title h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-primary);
  font-weight: bold;
}
.ul li{
  margin-bottom: 0.2rem;
}
.sidebar-menu {
  display: flex;
  flex-direction: column;
  padding: 0;  
  padding-bottom: 0;
  width: 90%;
  margin: 0.5rem;
}
.create-project{
  display: block;
  padding: 0.75rem 1rem;
  background-color: var(--color-accent);
  color: var(--color-white);
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s;
  margin: 0.5rem;
}

.create-project:hover{
  background-color: var(--color-white);
  color: var(--color-accent);
  border: 0.2rem solid var(--color-accent);  
  transition: background-color 0.3s;
}


.sidebar-link {
  display: block;
  padding: 0.5rem 1rem;
  text-align: center;
  background-color: var(--color-bg);
  color: var(--color-primary);
  background-color: var(--color-white);
  border: 0.1rem solid var(--color-primary);
  border-radius: var(--radius-md);
  text-decoration: none;  
  
  transition: background-color 0.3s;
  width: 90%;
  margin: 0.5rem 1.0rem 0 0.5rem;
}
.sidebar-link:hover {
  color: var(--color-white);
  margin-bottom: .4rem;
  background-color: var(--color-primary);
  transition: var(--transition-speed);  
}
/* Profile icon link */
.profile-icon {
  color: var(--color-white);
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0.2rem 0.6rem;
  border-radius: 50%;
  transition: background 0.3s;
  background-color: var(--color-primary);
}

.profile-icon:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 0.2rem solid var(--color-primary);
}


.sidebar-menu li {
  border-bottom: 1px solid #eee;
}

.sidebar-menu li a,
.sidebar-menu li button .sidebar-menu li a,
.sidebar-menu li button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
}

.sidebar-menu li a:hover,
.sidebar-menu li button:hover {
  background-color: var(--color-bg);
}
.sidebar span{
  color: var(--color-primary);  
  margin: 0.3rem;
  margin-top: 0.2rem;
  font-size: 1.5rem;
}

/* Submenu (initially hidden) */
.sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed);
  
}

.sub-menu li a {
  padding-left: 2rem;
  font-size: 0.95rem;
  text-decoration: none;
}

.expand-btn.sidebar-link {
  text-align: left;
  font-weight: bold;
  font-size: 1rem;
  background-color: var(--color-bg);
  color: var(--color-primary);
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.expand-btn:hover {
  background-color: var(--color-primary-light);
  color: white;
}
/* Sub services (hidden by default) */
.sub-menu-buttons {
  display: none;
  flex-direction: column;
  padding-left: 1rem;
  margin: 0.5rem;
  
  gap: 0.3rem;
  
}

/* Visible when parent has 'expanded' */
.service-section.expanded .sub-menu-buttons {
  display: flex;
}

/* Sub-service links */
.sidebar-sub-link {
  text-decoration: none;
  color: var(--color-primary);
  font-size: 0.95rem;
  background-color: var(--color-bg);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background 0.2s;
  margin-bottom: 0.5rem;
}
.sidebar-sub-link:hover {
  background-color: var(--color-primary-light);
  color: var(--color-white);
}

/* === Force correct transform directions === */

/* LEFT Sidebar (always comes from the left edge) */
html[dir="ltr"] .sidebar.sidebar-left{
  left: 0;
  right: auto;
  transform: translateX(-100%);
}

html[dir="rtl"] .sidebar.sidebar-left {
  right: 0;
  left: auto;
  transform: translateX(100%);
}
html[dir="rtl"] .side-btn, html[dir="rtl"] .sidebar-link{
  text-align: right;  
}

html[dir="ltr"] .sidebar.sidebar-left.active,
html[dir="rtl"] .sidebar.sidebar-left.active {
  transform: translateX(0);
}

/* RIGHT Sidebar (always comes from the right edge) */
html[dir="ltr"] .sidebar.sidebar-right {
  right: 0;
  left: auto;
  transform: translateX(100%);
}

html[dir="rtl"] .sidebar.sidebar-right {
  left: 0;
  right: auto;
  transform: translateX(-100%);
}

html[dir="ltr"] .sidebar.sidebar-right.active,
html[dir="rtl"] .sidebar.sidebar-right.active {
  transform: translateX(0);
}

html[dir="rtl"] .navbar .logo img {
    transform: scaleX(-1);
    transform-origin: center;
    display: inline-block; /* ensures proper rendering */
}


@media (max-width: 1050px) {
    .nav-links {
        display: none;
    }
}



/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-primary-light);
  color: var(--color-bg);
  margin-top: 48px
}

.site-footer a {
  color: var(--color-bg);
  text-decoration: none;
  border-bottom: 1px solid transparent
}

.site-footer a:hover {
  border-color: var(--color-white-hover-border)
}

.footer-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px
}

@media (max-width:960px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:560px) {
  .footer-inner {
    grid-template-columns: 1fr
  }
}

.brand-name {
  font-weight: 800;
  margin: 0 0 6px;
  font-size: 18px
}

.brand-tag {
  opacity: .95;
  margin: 0 0 10px;
  max-width: 50ch
}

.brand-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  opacity: .95
}

.brand-meta {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  opacity: .9
}

.col-title {
  font-weight: 700;
  margin: 0 0 10px;
  color: lighten(var(--color-primary), 45%)
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px
}


/* === Center footer bottom (icons + copyright) ===================== */
.footer-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  /* center the whole block */
  gap: 14px !important;
  text-align: center !important;
}

/* keep icons tight as a unit */
.footer-social {
  margin: 0 !important;
  padding: 0 !important;
  justify-content: center !important;
}

/* optional: put text first, icons second (comment out if you like the reverse) */
.footer-bottom small {
  order: 1;
}

.footer-bottom .footer-social {
  order: 2;
}

/* tiny screens: stack neatly */
@media (max-width:560px) {
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* Footer refinements */
.footer-inner {
  line-height: 1.6;
}

.col-title {
  color: lighten(var(--color-primary), 45%);
  letter-spacing: .2px;
}

.footer-list a {
  opacity: .95;
}

.footer-list a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-cta {
  margin-top: 14px;
}

.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
}

.footer-social li {
  display: inline-flex;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
}

.footer-social a:hover {
  background: var(--color-bg);
  color: var(--color-primary-light);
  border-color: var(--color-bg);
}

/* Focus visibility on dark bg */
.site-footer a:focus {
  outline: 2px solid var(--color-bg);
  outline-offset: 2px;
  border-color: var(--color-bg);
}

/* RTL alignment for titles and lists */
html[dir="rtl"] .footer-inner {
  text-align: right;
}

html[dir="rtl"] .brand-contact {
  justify-content: flex-start;
}

/* Optional thin separators between columns on wide screens */
@media (min-width:1080px) {
  .footer-inner {
    column-gap: 32px;
  }

  .footer-col+.footer-col {
    position: relative;
  }

  .footer-col+.footer-col:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, .12);
    inset-inline-start: -16px;
  }
}

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card { background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px; padding: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card__title { font-weight: 600; margin-bottom: .5rem; }

.list { margin: 0; padding-left: 1.1rem; }
.list li { margin: .25rem 0; }
.list--checks li { list-style: none; position: relative; padding-left: 1.25rem; }
.list--checks li::before { content: "✓"; position: absolute; left: 0; }

.steps { counter-reset: step; margin: 0; padding: 0; }
.steps li { list-style: none; margin: .5rem 0; padding-left: 2rem; position: relative; }
.steps li::before { counter-increment: step; content: counter(step); 
  position: absolute; left: 0; width: 1.5rem; height: 1.5rem; 
  border: 1px solid var(--border,#e5e7eb); border-radius: 999px; text-align: center; line-height: 1.5rem; }
.separator { border: 0; border-top: 1px solid var(--border, #e5e7eb); margin: 0; }


.centered-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  background: var(--bg, #fff);
}

.status-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 3rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  max-width: 520px;
}

.status-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.status-card.success .icon { color: #16a34a; }
.status-card.cancel .icon { color: #f97316; }
.status-card.failed .icon { color: #dc2626; }
.status-card.pending .icon { color: #2563eb; }

.status-card h1 {
  margin-bottom: .5rem;
  font-weight: 700;
}

.status-card p {
  color: var(--color-muted, #6b7280);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
