/* ===== General ===== */
body {
  overflow-x: hidden;
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #D2C1B6; /* background behind all content/cards */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== Navbar ===== */
.navbar {

  background-color: #1B3C53;
  color: #F9F3EF;
  padding: 0.5rem 1rem;
  transition: box-shadow 0.3s ease;
  box-shadow: 5px 0 15px rgba(27, 60, 83, 0.5); /* LTR shadow (right side) */
}

/* Mirror shadow for RTL */
body[dir="rtl"] .navbar,
body.rtl .navbar {
  box-shadow: -5px 0 15px rgba(27, 60, 83, 0.5); /* RTL shadow (left side) */
}

.navbar a, .navbar button {
  color: #D2C1B6;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
}

.navbar a:hover, .navbar button:hover {
  color: #fff;
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background-color: #1B3C53;
  color: #F9F3EF;
  padding-top: 1rem;
  transition: all 0.3s ease;
  z-index: 1040;
  box-shadow: 5px 0 15px rgba(27, 60, 83, 0.5); /* LTR shadow */
  overflow: hidden; /* hide scroll outside the content container */
  z-index: 1000;
}

/* Mirror shadow + positioning for RTL */
body[dir="rtl"] .sidebar,
body.rtl .sidebar {
  left: auto;
  right: 0;
  box-shadow: -5px 0 15px rgba(27, 60, 83, 0.5); /* shadow flips to left */
}

.sidebar h4 {
  text-align: center;
  color: #fff;
  margin-bottom: 1.5rem;
}

.sidebar a {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: #D2C1B6;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.sidebar a:hover {
  background-color: #D2C1B6;
  color: #1B3C53;
}

.sidebar a i {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Swap icon margins for RTL */
body[dir="rtl"] .sidebar a i,
body.rtl .sidebar a i {
  margin-left: 10px;
  margin-right: 0;
}

/* ===== Sidebar toggle states ===== */
.sidebar.collapsed {
  left: -250px;
}
body[dir="rtl"] .sidebar.collapsed,
body.rtl .sidebar.collapsed {
  right: -250px;
  left: auto;
}

/* ===== Main content ===== */
.content {
  margin-left: 250px;
  padding: 20px;
  transition: all 0.3s ease;
}

.content.expanded {
  margin-left: 0;
}

/* Mirror content margin in RTL */
body[dir="rtl"] .content,
body.rtl .content {
  margin-left: 0;
  margin-right: 250px;
}

body[dir="rtl"] .content.expanded,
body.rtl .content.expanded {
  margin-right: 0;
}

/* ===== Toggle button ===== */
#toggleSidebar {
  position: relative;
  z-index: 1100;
}

/* ===== Direction support ===== */
body[dir="rtl"] {
  text-align: right;
  direction: rtl;
}

body[dir="ltr"] {
  text-align: left;
  direction: ltr;
}

@media (max-width: 768px) {

  .container {
        margin: 0 !important;
        padding: 0 10px !important; /* optional: small padding */
    }
  /* Hide sidebar initially */
  .sidebar {
    left: -250px;
    right: auto;

  }

  .sidebar.active {
    left: 0;
  }

  /* RTL version */
  body[dir="rtl"] .sidebar,
  body.rtl .sidebar {
    left: auto;
    right: -250px;
  }

  body[dir="rtl"] .sidebar.active,
  body.rtl .sidebar.active {
    right: 0;
  }

  /* Reset content margins for small screens */
  .content,
  body[dir="rtl"] .content {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* ===== Sidebar items (mobile) ===== */
  .sidebar a {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important; /* icon first */
    justify-content: flex-start !important; /* LTR default */
    text-align: left !important;
  }

  /* RTL layout fix — icon first, text after, aligned right */
  body[dir="rtl"] .sidebar a,
  body.rtl .sidebar a {
    flex-direction: row !important; /* icon first */
    justify-content: right !important; /* align to right */
    text-align: right !important;
  }

  /* ===== Icons ===== */
  .sidebar a i {
    font-size: 1.5rem;
  }

  /* LTR spacing */
  body[dir="ltr"] .sidebar a i {
    margin-right: 10px !important;
    margin-left: 0 !important;
  }

  /* RTL spacing — add same space between icon and text */
  body[dir="rtl"] .sidebar a i,
  body.rtl .sidebar a i {
    margin-left: 10px !important; /* space between icon and text */
    margin-right: 0 !important;
  }

  /* Keep icons + text visible */
  .sidebar.active a {
    display: flex !important;
  }
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1200;
  }

  .sidebar {
    top: 56px; /* height of navbar */
  }

  .sidebar-logo {
    margin-top: 20px;
  }

  .container.my-about-bg {
    margin-top: 75px !important; /* extra top space for navbar */
    min-height: auto; /* allow flexible height */
    
  }

  .site-footer {
    position: relative;
  }
}
/* ===== Language Dropdown Styling ===== */

/* Button base style */
#languageDropdown {
  background-color: #1B3C53 !important;
  color: #F9F3EF !important;
  border: 1px solid #F9F3EF !important;
  transition: all 0.3s ease;
}

/* ===== Language Dropdown Styling (Fixed Active State) ===== */

/* Button base style */
#languageDropdown {
  background-color: #1B3C53 !important;
  color: #D2C1B6 !important;
  border: 1px solid #D2C1B6 !important;
  transition: all 0.3s ease;
}

/* Button hover/focus/open state */
#languageDropdown:hover,
#languageDropdown:focus,
#languageDropdown.show {
  background-color: #D2C1B6 !important;
  color: #1B3C53 !important;
  border-color: #1B3C53 !important;
}

/* Reset color after closing dropdown */
#languageDropdown:not(.show) {
  background-color: #1B3C53 !important;
  color: #D2C1B6 !important;
  border-color: #D2C1B6 !important;
}

/* Dropdown menu */
#languageDropdownWrapper .dropdown-menu {
  background-color: #D2C1B6 !important;
  border: 1px solid #1B3C53 !important;
  border-radius: 6px;
  overflow: hidden;
}

/* Dropdown items */
#languageDropdownWrapper .dropdown-item {
  color: #1B3C53 !important;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Dropdown item hover */
#languageDropdownWrapper .dropdown-item:hover {
  background-color: #1B3C53 !important;
  color: #D2C1B6 !important;
}
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 1rem;
  background-color: #1B3C53;
  color: #D2C1B6;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  z-index: 1000;
}

/* ===== Sidebar Logo ===== */
.sidebar-logo {
  text-align: center;
  
  
}

.sidebar-logo img {
  width: 80%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.sidebar-logo img:hover {
  transform: scale(1.05);
}

/* Adjust for RTL alignment */
html[dir="rtl"] .sidebar-logo {
  text-align: center;
}

.sidebar-logo .logo-link {
  text-decoration: none;    /* no underline */
  color: inherit;           /* no color change */
  cursor: pointer;
  display: inline-block;
  background-color: transparent !important; /* ensure transparent background */
}

.sidebar-logo .logo-link:hover {
  background-color: transparent !important; /* no hover background */
}

.sidebar-logo img {
  width: 80%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.sidebar-logo img:hover {
  transform: scale(1.05); /* smooth zoom */
}

.card-3d {
  border: 1px solid #1B3C53;
  border-radius: 0px;
  background-color: #FBF5DE;
  color: #3D74B6;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.15),
    0 3px 6px rgba(61, 116, 182, 0.2);
  transform: perspective(800px) ;
  transition: all 0.3s ease;
}

.card-3d:hover {
  transform: perspective(800px) rotateX(0deg) rotateY(0deg) translateY(-5px);
  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.25),
    0 6px 10px rgba(61, 116, 182, 0.3);
}

.card-3d .card-header {
  border-radius: 0px;
  background-color: #1B3C53;
  color: #D2C1B6;
  font-weight: bold;
  border-bottom: none;
  text-align: center;
  letter-spacing: 0.5px;
}

.card-3d .card-body {
  background-color: #456882;
  color: #D2C1B6;
  text-align: justify;
  border-top: 1px solid rgba(61, 116, 182, 0.2);
}
.container.my-about-bg {
  flex: 1; /* pushes footer down */
  margin-top: 35px;
  min-height: 800px;
}


.separator {
  border-top: 2px solid #1B3C53;
  margin: 20px 0;
}


.nav-link.active {
  background-color: #456882 !important;
  color: #D2C1B6 !important;
  border-radius: 8px;
}

.custom-btn-3d {
  background-color: #1B3C53;       /* Base background */
  color: #D2C1B6;                  /* Text color */
  border: none;
  border-radius: 5px;
  padding: 10px 24px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 0 #102633, 0 6px 12px rgba(0, 0, 0, 0.3); /* 3D depth */
  transition: all 0.2s ease-in-out;
}

.custom-btn-3d:hover {
  background-color: #25485f;       /* Slightly lighter for hover */
  transform: translateY(-2px);     /* Lift up effect */
  box-shadow: 0 6px 0 #102633, 0 10px 16px rgba(0, 0, 0, 0.35);
  color: #E6D7CE;
}

.custom-btn-3d:active {
  transform: translateY(2px);      /* Press down effect */
  box-shadow: 0 2px 0 #0d1c27, 0 4px 8px rgba(0, 0, 0, 0.2);
}
table.dataTable {
  width: 100% !important;
}
.action-btn {
    width: 80px; /* same width */
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#requests-table tbody tr:nth-child(odd) {
    background-color: #1B3C53;
    color: white;
}

#requests-table tbody tr:nth-child(even) {
    background-color: #456882;
    color: white;
}
/* Modal content rounded corners */
.modal .modal-content {
    border-radius: 1rem;
    overflow: hidden; /* ensures rounded corners look clean */
}

/* Header styling */
.modal .modal-header {
    background-color: #1B3C53;
    color: #D2C1B6;
    border-bottom: none; /* remove default border */
}

/* Footer styling */
.modal .modal-footer {
    background-color: #1B3C53;
    color: #D2C1B6;
    border-top: none; /* remove default border */
}

/* Body styling */
.modal .modal-body {
    background-color: #456882;
    color: #D2C1B6;
}

/* Form controls inside modals */
.modal .form-control,
.modal .form-select {
    background-color: #5A7A8F; /* slightly lighter than body */
    color: #D2C1B6;
    border: 1px solid #D2C1B6;
}

.modal .form-control:focus,
.modal .form-select:focus {
    background-color: #5A7A8F;
    color: #D2C1B6;
    border-color: #D2C1B6;
    box-shadow: none;
}

/* Buttons inside modals */
.modal .btn-secondary {
    background-color: #888; /* or your preferred shade */
    color: #D2C1B6;
    border: none;
}

.modal .btn-primary {
    background-color: #1B3C53;
    color: #D2C1B6;
    border: none;
}
main {
    padding-bottom: 180px; /* roughly same height as footer */
}

.sidebar-content {
  height: 100%;
  overflow-y: auto; /* enables vertical scrolling */
  padding-bottom: 60px; /* space for footer if needed */
  scrollbar-width: none; /* hides scrollbar in Firefox */
  -ms-overflow-style: none; /* hides scrollbar in Internet Explorer / Edge */
}

/* Scrollbar styling (optional, modern browsers) */
.sidebar-content::-webkit-scrollbar {
  display: none;
}

.sidebar-content::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.sidebar-content:hover::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.5);
}

/* Adjust padding and font for nested collapse links */
.sidebar .collapse .nav-link {
  font-size: 0.9rem;
  padding-left: 25px;
}

/* If RTL languages */
[dir="rtl"] .sidebar .collapse .nav-link {
  padding-left: 0;
  padding-right: 25px;
}

.container {
  margin-left: 260px; /* same as sidebar width + small gap */
  padding: 20px;
}

[dir="rtl"] .container {
  margin-left: 0;
  margin-right: 260px;
}
/* General sidebar link color */
.sidebar .nav-link {
  color: #D2C1B6 !important; /* your preferred color */
  text-decoration: none;
}

/* Keep color the same when hovered or active */
.sidebar .nav-link:hover,
.sidebar .nav-link:focus,
.sidebar .nav-link.active {
  color: #D2C1B6 !important;
  background-color: rgba(255, 255, 255, 0.1); /* optional hover bg */
}

/* Ensure links inside collapse also keep the same color */
.sidebar .collapse .nav-link {
  color: #D2C1B6 !important;
}

/* Prevent Bootstrap collapse from overriding color on open */
.sidebar .collapse.show .nav-link {
  color: #D2C1B6 !important;
}

/* Optional: keep caret icons visible */
.sidebar .nav-link i {
  color: #D2C1B6 !important;
}

/* Default arrow (down) */
.sidebar .nav-link .bi-caret-down-fill {
  transition: transform 0.3s ease; /* smooth animation */

}

/* Rotate the arrow when collapse is open */
.sidebar .nav-link[aria-expanded="true"] .bi-caret-down-fill {
  transform: rotate(180deg); /* flips up */

}
.sidebar .nav-link .bi-caret-down-fill {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar .nav-link:hover {
   background-color: #D2C1B6 !important;
  color: #1B3C53 !important;
}

.sidebar .nav-link:hover i,
.sidebar .nav-link:hover .bi-caret-down-fill,
.sidebar .nav-link:hover .bi-caret-up-fill {
  color: #1B3C53 !important;
}

/* Reset background when collapse closes */
.sidebar .collapse .nav-link {
  background-color: #1B3C53 !important;
}
.nav-link {
  background-color: #1B3C53 !important;
  color: #D2C1B6 !important;
  transition: background 0.3s, color 0.3s;
}

.status-count {
    background-color: #456882;
    color: #D2C1B6;
    font-weight: bold;
    font-size: 2.5rem;
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    justify-content: center; /* horizontal centering */
    align-items: center;     /* vertical centering if needed */
}

