:root {
  --color-bg-main: #0f123b;
  --color-bg-sidebar: #0a267d;
  --color-bg-content: #ffffff;
  --color-bg-form: #fafafa;
  --color-bg-active: #000469;
  --color-bg-avatar: #c4c4c4;
  --color-bg-icon-active: #ffd600;
  --primary-green: #3ec100;
  --text-gray-dark: #6D6D6D;
  --primary-blue: #0075ff;
  --color-border-form: rgba(0, 0, 0, 0.1);
  --color-border-input: rgba(38, 50, 56, 0.6);
  --color-divider: #ffffff;
  --color-divider-form: rgba(0, 0, 0, 0.1);
  --color-text-main: #ffffff;
  --color-text-dark: #263238;
  --color-text-muted: #a0aec0;
  --color-text-accent: #ffd600;
  --color-text-label: #263238;
  --color-shadow: 0px 3.5px 5.5px rgba(0, 0, 0, 0.02);
  --input-bg: linear-gradient(124deg, rgba(255, 255, 255, 0.00) -22.38%, rgba(255, 255, 255, 0.04) 70.38%);
  --card-bg: rgba(0, 74, 249, 0.35);

  --radius-sidebar: 20px;
  --radius-form: 10px;
  --radius-icon: 12px;
  --radius-avatar: 50%;
  --radius-divider: 20px;

  --font-main: 'Montserrat', sans-serif;
  --font-size-main: 14px;
  --font-size-title: 16px;
  --font-size-form-title: 18px;
  --font-size-label: 14px;
  --font-size-small: 14px;

  --sidebar-width: 20%;
  --logo-width: 200px;
  --icon-size: 30px;
  --icon-img-size: 15px;
  --avatar-size: 40px;
  --form-padding: 20px 30px;
  --content-padding: 30px 60px;
  --gap-main: 24px;
  --gap-form: 20px;
  --gap-header: 42px;
  --gap-user-profile: 10px;
  --gap-breadcrumb: 6px;
  --gap-sidebar-nav: 8px;
  --gap-sidebar-nav-details: 13px;
  --gap-form-group: 10px;
}

/* Now use variables throughout the CSS */
body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
}

body,
button,
input,
select,
textarea {
  font-family: 'Montserrat', sans-serif !important;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.dashboard-layout {
  display: flex;
  min-height: 100vh;
  max-width: 1920px;
  margin: 0 auto;
  padding: 14px 16px;
  gap: var(--gap-main);
  position: relative;
  overflow: hidden;
}

.dashboard-layout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/wp9649930-1.png');
  background-size: cover;
  filter: blur(272px);
  z-index: -1;
  opacity: 0.5;
}

.sidebar {
  flex: 0 0 var(--sidebar-width);
  background-color: var(--color-bg-sidebar);
  border-radius: var(--radius-sidebar);
  padding: 10px;
  display: flex;
  flex-direction: column;
  /* height: calc(100vh - 28px); */
  overflow-y: auto;
}

.sidebar-header {
  padding: 15.5px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: var(--logo-width);
  height: auto;
}

/* Hide close-sidebar button by default (desktop) */
.close-sidebar {
  display: none;
}

/* Show and style close-sidebar button only on mobile */
@media (max-width: 768px) {
  .input-wrapper {
    width: 300px !important;
  }

  .report-form {
    flex-direction: column !important;
  }

  .close-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    padding: 0;
    color: #fff;
  }

  .close-sidebar .fa-times {
    font-size: 20px;
    color: #fff;
  }

  .add-new-controls {
    flex-direction: column;
  }
}

.close-sidebar {
  display: none;
}

.close-sidebar img {
  width: 24px;
  height: 24px;
}

.sidebar-divider {
  border: none;
  height: 1px;
  background-color: var(--color-divider);
  opacity: 0.1;
  margin: 10px 0;
}

.sidebar-nav {
  font-size: var(--font-size-main);
  font-weight: 500;
  line-height: var(--font-size-main);
}

.sidebar-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sidebar-nav);
}

.sidebar-nav a,
.sidebar-nav summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 5px;
  border-radius: var(--radius-icon);
  transition: background-color 0.2s;
}

.sidebar-nav summary {
  width: 100%;
}

.sidebar-nav li.active>a,
.sidebar-nav li.active>details>summary {
  background-color: var(--color-bg-active);
  box-shadow: var(--color-shadow);
}

.sidebar-nav a:hover,
.sidebar-nav summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.icon-wrapper {
  width: var(--icon-size);
  height: var(--icon-size);
  background-color: var(--color-bg-content);
  border-radius: var(--radius-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--color-shadow);
  flex-shrink: 0;
}

.icon-wrapper.active-icon {
  background-color: var(--color-bg-icon-active);
}

.icon-wrapper img {
  width: var(--icon-img-size);
  height: var(--icon-img-size);
}

.sidebar-nav details ul {
  padding-left: 25px;
  margin-top: 8px;
}

.sidebar-nav details ul a {
  gap: var(--gap-sidebar-nav-details);
  padding: 8px;
}

.icon-wrapper-sub {
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-wrapper-sub img {
  width: 100%;
  height: 100%;
}

.arrow-down {
  margin-left: auto;
  transition: transform 0.2s;
}

details[open]>summary .arrow-down {
  transform: rotate(180deg);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.main-header {
  background-color: var(--color-bg-sidebar);
  border-radius: var(--radius-sidebar);
  padding: 17px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--gap-header);
}

.breadcrumbs {
  display: flex;
  flex-direction: column;
  gap: var(--gap-breadcrumb);
}

.breadcrumb-text {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
}

.breadcrumb-path {
  color: var(--color-text-muted);
  font-weight: 400;
}

.page-title {
  margin: 0;
  font-size: var(--font-size-main);
  font-weight: 500;
  line-height: 1.4;
}

.header-right {
  display: flex;
  align-items: center;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: var(--gap-user-profile);
}

.avatar-container {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: var(--radius-avatar);
  overflow: hidden;
  background-color: var(--color-bg-avatar);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.user-name {
  color: var(--color-text-accent);
  font-weight: 700;
  font-size: var(--font-size-main);
}

.user-role {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 10px;
}

.profile-arrow {
  margin-left: 18px;
}

.content-area {
  background-color: var(--color-bg-content);
  border-radius: var(--radius-sidebar);
  padding: var(--content-padding);
  color: var(--color-text-dark);
}

.form-wrapper {
  display: flex;
  flex-direction: column;
}

.form-main-title {
  font-size: var(--font-size-title);
  font-weight: 600;
  color: var(--color-text-label);
  opacity: 0.8;
  margin: 0 0 20px 0;
  text-align: center;
}

.form-card {
  background-color: var(--color-bg-form);
  border: 1px solid var(--color-border-form);
  border-radius: var(--radius-form);
  padding: var(--form-padding);
}

.form-title {
  font-size: var(--font-size-form-title);
  font-weight: 600;
  margin: 0;
}

.form-divider {
  border: none;
  height: 1px;
  background-color: var(--color-divider-form);
  margin: 15px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap-form);
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--gap-form-group);
}

.form-group label {
  color: #263238 !important;
  font-size: var(--font-size-label);
  font-weight: 500;
  opacity: 0.8;
}

.form-group small {
  font-size: var(--font-size-small);
  font-weight: 400;
  opacity: 0.6;
}

.select-custom,
input[type="text"],
textarea,
select {
  background-color: var(--color-bg-content);
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-form);
  padding: 15px 20px;
  font-size: var(--font-size-label);
  font-family: var(--font-main);
  color: var(--color-text-label);
  opacity: 0.6;
}



input::placeholder,
textarea::placeholder {
  color: var(--color-text-label);
  opacity: 0.6;
}

.upload-btn {
  background-color: var(--color-bg-content);
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-form);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
}

.upload-btn span {
  font-size: var(--font-size-label);
  font-weight: 500;
  color: var(--color-text-label);
  opacity: 0.8;
}

textarea {
  /* min-height: 150px; */
  /* resize: vertical; */
}

@media (max-width: 768px) {
  .dashboard-layout {
    flex-direction: column;
    padding: 0px;
  }

  .sidebar {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  .sidebar-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .sidebar-nav details ul {
    position: absolute;
    background: var(--color-bg-active);
    padding: 10px;
    border-radius: 8px;
    margin-top: 5px;
    z-index: 10;
  }

  .main-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-left {
    gap: 9px;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-main: 11px;
    --gap-breadcrumb: 2px;
    --avatar-size: 30px;
    --radius-sidebar: 8px;
  }

  .main-header {
    background-color: var(--color-bg-sidebar);
    border-radius: var(--radius-sidebar);
    padding: 15px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    gap: 6px;
  }

  .breadcrumb-text {
    margin: 0;
    font-size: 9px;
    font-weight: 500;
  }

  .user-role {
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 10px;
  }

  .profile-arrow {
    margin-left: 10px;
  }

  .sidebar {
    display: none;
    /* Or toggle with JS */
  }

  .header-left {
    width: 100%;
  }

  .header-right {
    width: 100%;
    justify-content: flex-end;
  }

  .content-area {
    padding: 15px;
  }

  .form-card {
    padding: 15px;
  }
}

.sidebar.collapsed {
  width: 60px;
  min-width: 60px;
  flex: 0 0 60px;
  transition: width 0.3s;
}

.sidebar.collapsed .sidebar-header,
.sidebar.collapsed .sidebar-divider,
.sidebar.collapsed .sidebar-nav span:not(.icon-wrapper),
.sidebar.collapsed .sidebar-nav details>summary>span:not(.icon-wrapper),
.sidebar.collapsed .sidebar-nav details ul,
.sidebar.collapsed .sidebar-nav li>a>span:not(.icon-wrapper),
.sidebar.collapsed .sidebar-nav li.active>a>span:not(.icon-wrapper) {
  display: none;
}

.sidebar.collapsed .icon-wrapper,
.sidebar.collapsed .icon-wrapper-sub {
  margin: 0 auto;
}

.sidebar.collapsed {
  overflow: hidden !important;
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-bg-sidebar);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px 10px;
    transition: transform 0.3s;
  }

  .sidebar.mobile-open {
    display: block;
  }

  .sidebar-close {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 10px;
  }

  .close-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    padding: 0;
    color: #fff;
  }

  .close-sidebar .fa-times {
    font-size: 20px;
    color: #fff;
  }
}

.publish-btn {
  background-color: #0075FF;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  /* semi bold */
  cursor: pointer;
  transition: background 0.2s;
  width: 33.33%;
  margin-top: 20px;
  font-family: 'Montserrat', sans-serif;
  display: block;
}

@media (max-width: 768px) {
  .publish-btn {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

.dashboard-body {
  display: flex;
  gap: 30px;
}

.dashboard-card {
  flex: 1;
  background-color: var(--color-bg-sidebar);
  border-radius: 20px;
  padding: 30px;
  min-width: 0;
  min-width: 40%;
}

.dashboard-card-1 {
  flex: 1;
  background-color: var(--color-bg-sidebar);
  border-radius: 20px;
  padding: 30px;
  min-width: 57%;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
}

.card-subtitle {
  font-size: 14px;
  font-weight: 400;
  margin-top: 6px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.stats-grid-1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.stat-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-bg-main);
  border-radius: 20px;
  padding: 18px;
  backdrop-filter: blur(5px);
}

.stat-text p {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.stat-text h3 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 5px;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: var(--color-bg-sidebar);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon img {
  width: 24px;
  height: 24px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .dashboard-body {
    flex-direction: column;
  }

  .report-form .form-row {
    flex-direction: column;
  }

  .btn-download {
    align-self: stretch;
  }
}

@media (max-width: 992px) {
  .dashboard-container {
    flex-direction: column;
  }

  .sidebar {
    position: static;
    width: 100%;
    min-height: auto;
    flex-shrink: 1;
    /* Initially hidden on mobile */
  }

  .main-content {
    padding: 15px;
  }

  .menu-toggle-btn {
    display: block;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid-1 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .main-header {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .header-left {
    width: 100%;
  }

  .header-right {
    width: 100%;
    justify-content: flex-end;
  }

  .user-profile {
    gap: 10px;
  }

  .dashboard-body {
    margin-top: 20px;
  }

  .dashboard-card {
    padding: 20px;
    min-width: 0;
  }

  .dashboard-card-1 {
    padding: 20px;
    min-width: 0;
  }
}

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

.section-actions {
  display: flex;
  gap: 15px;
}

.section-divider {
  border: none;
  height: 1px;
  background-color: var(--color-border-form);
  margin: 15px 0;
}

.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.doc-card {
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.doc-info {
  display: flex;
  background-color: var(--color-bg-content);
  align-items: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid #f6f6f6;
  border-radius: 10px;
}

.doc-info img {
  width: 36px;
  height: 36px;
}

.doc-name {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 2px 0;
  color: #0b0b0b;
}

.doc-size {
  font-size: 12px;
  margin: 0;
  color: var(--primary-blue);
}

.doc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border-radius: 10px;
  border: 1px solid rgba(38, 50, 56, 0.60);
  background: #FFF;
}

.doc-actions span {
  font-size: 14px;
  color: #000;
}

.action-icons {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.action-icons img {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.content-area {
  padding: 20px 20px;
  flex-grow: 1;
}

.content-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-dark);
  opacity: 0.8;
  margin: 0 0 10px 0;
}

.content-card {
  background-color: var(--color-bg-content);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-section {
  background-color: var(--color-bg-form);
  border: 1px solid var(--color-border-form);
  border-radius: 10px;
  padding: 20px 20px;
}

@media (max-width: 1200px) {

  .form-grid-4,
  .form-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .report-form {
    padding: 20px;
  }

  .form-grid-4,
  .form-grid-3,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .content-card {
    background-color: var(--color-bg-content);
    border-radius: 20px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .form-section {
    background-color: var(--color-bg-form);
    border: 1px solid var(--color-border-form);
    border-radius: 10px;
    padding: 20px 10px;
  }
}

.btn {
  border-radius: 60px;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-add-new {
  background-color: var(--color-bg-content);
  border: 1px solid var(--color-border-input);
  border-radius: 10px;
  padding: 10px 20px;
  display: flex;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-dark);
  opacity: 0.8;
  max-width: 160px;
  margin-bottom: 15px;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-evenly;
}

.btn-green {
  background-color: var(--primary-green);
  color: var(--color-bg-content);
}

.btn-blue {
  background-color: var(--primary-blue);
  color: var(--color-bg-content);
}

.btn-yellow {
  background-color: var(--color-text-accent);
  color: #000;
  max-width: 217px;
}

.active-sub-menu {
  color: var(--color-bg-icon-active)
}

.offers-banner {
  background-color: var(--color-bg-sidebar);
  border-radius: 20px;
  padding: 33px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offers-banner h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  max-width: 372px;
}

@media (max-width: 768px) {
  .offers-banner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

.btn-primary {
  background-color: var(--color-bg-icon-active);
  color: black;
  font-size: 18px;
  padding: 13px 100px;
  border-radius: 10px;
}

.search-bar {
  position: relative;
  flex-grow: 1;
  max-width: 636px;
}

.search-bar input {
  width: 100%;
  background-color: var(--color-bg-content);
  border: none;
  border-radius: 500px;
  padding: 13px 60px 13px 20px;
  font-size: 14px;
  color: var(--text-gray-dark);
  opacity: 1;
  height: 50px;
}

.search-btn {
  position: absolute;
  right: 2px;
  top: 2px;
  bottom: 2px;
  width: 45px;
  background-color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  opacity: 0.9;
}

.filter-dropdowns .dropdown {
  background: #fff;
  color: #222;
  border: 1px solid #0075ff;
  border-radius: 8px;
  padding: 10px 36px 10px 12px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.10);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 120px;
  transition: box-shadow 0.2s;
}

/* Dropdown arrow stays white and filled */
.filter-dropdowns .dropdown,
select.dropdown {
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7l4 4 4-4' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}

/* Make dropdown options readable */
select.dropdown option {
  background: #fff !important;
  color: #222 !important;
  font-size: 1rem !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 500 !important;
  padding: 10px !important;
}

/* On focus, highlight border */
.filter-dropdowns .dropdown:focus,
select.dropdown:focus {
  outline: none;
  border: 2px solid #0075ff;
  box-shadow: 0 0 0 2px #0075ff33;
}

/* Make select dropdown arrow white and filled, force with !important */
.filter-dropdowns .dropdown,
select.dropdown {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' fill='white'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 20px center !important;
  background-size: 16px 16px !important;
  border: 1px solid #0075ff !important;
  color: #222 !important;
  background-color: #fff !important;
  border-radius: 8px !important;
  padding: 10px 36px 10px 12px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  min-width: 120px !important;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.10) !important;
}

/* Make dropdown options readable */
select option {
  background: #fff !important;
  color: #222 !important;
  font-size: 1rem !important;
  font-family: 'Montserrat', sans-serif !important;
}

/* On focus, highlight border */
select:focus {
  outline: none;
  border: 2px solid #0077ff;
}

.filter-dropdowns {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.dropdown {
  border: 1px solid #ffffff;
  border-radius: 10px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.dropdown img {
  transform: rotate(180deg);
}

.filters-bar {
  display: flex;
  align-items: center;
  gap: 20px;
}

.records-section {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.records-header {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.records-header h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.table-container {
  background-color: var(--color-bg-sidebar);
  border-radius: 20px;
  padding: 30px 15px 17px 21px;
  overflow-x: auto;
  box-sizing: border-box;
  display: block;
  transition: width 0.3s;
  scrollbar-width: thin;
  scrollbar-color: #FFD600 #23272E;
  /* thumb color, track color */
}

/* Table fits content, not container */
.table-container table {
  width: auto;
  border-collapse: collapse;
  min-width: 600px;
  table-layout: auto;
  max-width: none;
}

/* Prevent table from stretching on desktop */
@media (min-width: 769px) {
  .table-container table {
    width: max-content;
    max-width: 100%;
  }
}

/* Responsive for small screens */
@media (max-width: 768px) {
  .table-container {
    padding: 10px 2px;
    border-radius: 12px;
    max-width: 100vw;
  }

  .btn-primary {
    background-color: var(--color-bg-icon-active);
    color: black;
    font-size: 16px;
    padding: 13px 50px;
    border-radius: 10px;
  }

  .table-container table {
    font-size: 12px;
    min-width: 350px;
    width: max-content;
  }
}

th,
td {
  text-align: left;
  padding: 12px 10px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

thead tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

th {
  color: var(--text-gray-light);
}

tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

tbody tr:last-child {
  border-bottom: none;
}

td {
  color: var(--text-white);
}

/* Center align all table headers and cells */
.user-table th,
.user-table td {
  text-align: center;
  vertical-align: middle;
}

.user-table {
  font-size: 10px;
  font-family: 'Montserrat', sans-serif;
  border-collapse: separate;
  border-spacing: 0 6px;
  /* Adds a little gap between rows */
}

th,
td {
  font-size: 11px;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

.user-table th,
.user-table td {
  text-align: center;
  vertical-align: middle;
  padding: 8px 15px;
  /* Adds a little gap between cells

.status-not-eligible {
  color: #FF6B6B;
  /* Example color for 'Not Eligible' */
}

td:last-child {
  display: flex;
  gap: 10px;
}

.btn-action {
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 500;
  border-radius: 5px;
}

.btn-link {
  background-color: var(--primary-blue);
  color: var(--text-white);
  padding: 6px 20px;
}

.btn-update {
  background-color: var(--primary-yellow);
  color: var(--text-dark-blue);
  padding: 6px 20px;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 50px;
  padding: 5px 15px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  background-color: rgba(0, 117, 255, 0.15);
  color: var(--primary-blue);
}

.page-link.prev,
.page-link.next {
  background-color: #eedff3;
  font-weight: 600;
}

.page-link.active {
  background-color: var(--primary-blue);
  color: var(--text-white);
}

@media (max-width: 1200px) {
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-dropdowns {
    justify-content: space-between;
    width: 100%;
  }
}

.btn-secondary {
  background-color: var(--primary-green);
  color: var(--color-text-main);
  border-radius: 60px;
}

.btn-secondary:hover {
  opacity: 0.9;
}

.btn-update {
  background-color: var(--color-bg-icon-active);
  color: var(--color-bg-active);
}

.table-container {
  /* ...existing code... */
  scrollbar-width: thin;
  scrollbar-color: #FFD600 #23272E;
  /* thumb color, track color */
}

/* For Webkit browsers */
.table-container::-webkit-scrollbar {
  height: 8px;
  background: #23272E;
  /* track color */
  border-radius: 8px;
}

.table-container::-webkit-scrollbar-thumb {
  background: #FFD600;
  /* thumb color */
  border-radius: 8px;
  border: 2px solid #23272E;
}

.table-container::-webkit-scrollbar-track {
  background: #23272E;
  /* track color */
  border-radius: 8px;
}

.user-profile {
  position: relative;
  cursor: pointer;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* dropdown base */
.dropdown-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: #fff;
  border-radius: 8px;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  min-width: 180px;
  display: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 1000;
}

/* items */
.dropdown-menu li {
  padding: 0;
}

.dropdown-menu li a {
  text-decoration: none;
  color: #333;
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

/* hover effects */
.dropdown-menu li:hover a {
  background: #f0f4ff;
  color: #2a5dff;
}

/* show dropdown on hover with animation */
.user-profile:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Style the native select box */
.filter-dropdowns select.dropdown {
  background-color: #fff;
  /* White background */
  color: #000;
  /* Dark text color */
  border: 1px solid #ccc;
  /* Subtle border */
  border-radius: 4px;
  padding: 10px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  width: auto;
  min-width: 120px;
}

/* Style the options (limited support in some browsers) */
.filter-dropdowns select.dropdown option {
  background-color: #fff;
  color: #000;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  padding: 10px;
}

/* Make select box background white and adjust option styling */
.custom-container .select2-selection {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 40px;
  padding: 6px 12px;
}

.custom-container .select2-selection__rendered {
  color: #000;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  width: 130px;
}

.select2-dropdown.custom-dropdown {
  background-color: transparent !important;
  /* white background for dropdown options */
  border: 1px solid #ccc;
  border-radius: 4px;
}

.select2-results__option {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #000;
  padding: 8px 12px;
}

.select2-results__option--highlighted {
  background-color: #444;
  color: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 50px !important;
  position: absolute;
  top: 1px;
  right: 1px;
  width: 50px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 10px;
  width: 130px;
}

.select2-container .select2-selection--single {
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  height: 40px !important;
  user-select: none;
  -webkit-user-select: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: white !important;
  line-height: 28px;
}

.select2-container--default .select2-selection--single {
  background-color: transparent !important;
  border: 0px solid #aaa;
  border-radius: 4px;
  padding: 7px 16px;
  height: 52px !important;
  border-radius: 15px;
  border: 0px;
}

.action-cell {
  display: flex;
  gap: 10px;
}

.action-btn {
  width: 30px;
  height: 23px;
  background-color: var(--color-bg-content);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-display {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border-input);
  border-radius: 10px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.input-display.placeholder span {
  opacity: 0.6;
}

.input-display img {
  opacity: 0.3;
}

.tabs-container {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tab-btn {
  padding: 8px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--primary-blue);
  background-color: var(--color-bg-content);
  color: var(--primary-blue);
}

.tab-btn.active {
  background-color: var(--primary-blue);
  color: var(--color-text-main);
}

.required-doc-item {
  display: flex;
  gap: 15px;
  flex-direction: column;
}

.add-new-controls {
  display: flex;
  gap: 20px;
  padding-top: 15px;
}

.reports-wrapper {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.report-section {
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.report-form {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border-radius: 30px;
  padding: 40px 25px;
  display: flex;
  flex-direction: row;
  gap: 30px;
  justify-content: space-between;
}

.report-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.input-wrapper {
  background: var(--input-bg);
  border-radius: 20px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
  font-weight: 500;
  min-height: 50px;
  border: 2px solid transparent;
  border-image-slice: 1;
  backdrop-filter: blur(21px);
  width: 250px;
}

.btn-download {
  background-color: var(--primary-green);
  color: var(--color-text-main);
  font-weight: 600;
  font-size: 16px;
  border-radius: 60px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: flex-end;
  min-width: 274px;
}

#full-status-report .report-form {
  align-items: center;
}

#full-status-report .btn-download {
  align-self: center;
}

.background-blur {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/wp9649930 1.png');
  background-size: cover;
  filter: blur(272px);
  z-index: -1;
  opacity: 0.5;
}

/* Make date input calendar icon white */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(2);
  /* This makes the icon white on most backgrounds */
}

/* For Firefox */
input[type="date"]::-moz-calendar-picker-indicator {
  filter: invert(1) brightness(2);
}

/* For Edge/Chromium */
input[type="date"]::-ms-input-placeholder {
  color: #fff;
}

/* Make select dropdown arrow white and filled */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' fill='white'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !Important;
  background-position: right 20px center !important;
  background-size: 16px 16px !important;
}

select:focus-visible {
  border: 2px solid #0077ff !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  color: white !important;
}

.select2-dropdown.select2-dropdown-custom {
  background: #fff !important;
  color: #222 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1rem !important;
}

.select2-results__option {
  padding: 10px 16px !important;
  color: #222 !important;
}

.select2-results__option--highlighted {
  background: #0075ff !important;
  color: #fff !important;
}

/* Place in <style> tag in login.html, replacing or updating the existing styles */

/* CSS for section section:login */
.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  max-width: 1920px;
  width: 100%;
  padding: 0 157px;
}

.info-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  max-width: 819px;
}

.info-text {
  font-weight: 400;
  font-size: 24px;
  line-height: 1.22;
  text-align: center;
  margin: 0;
}

.graphic-container {
  position: relative;
  width: 400px;
  height: 400px;
}

.graphic-element {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.graphic-blur {
  width: 100%;
  height: 100%;
  backdrop-filter: blur(7px);
}

.graphic-border {
  width: 75%;
  height: 75%;
}

.graphic-symbol {
  width: 56%;
  height: 56%;
}

.form-column {
  flex-shrink: 0;
  width: 453px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.form-title {
  font-weight: 700;
  font-size: 30px;
  line-height: 1.3;
  text-align: center;
  margin: 0;
}

.form-wrapper {
  width: 100%;
  background-color: #0A267D;
  /* or any color that is not white */
  border: 2px solid transparent;
  border-radius: 30px;
  padding: 35px 40px;
  border-image: radial-gradient(circle, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%) 1;
}

.form-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 41px;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.input-group label {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  padding-left: 4.5px;
}

.input-field-form::placeholder {
  color: #a0aec0;
  opacity: 1;
}

.input-field-form {
  background: linear-gradient(93deg, rgba(255, 255, 255, 0) 0.01%, rgba(255, 255, 255, 0.04) 149.84%) !important;
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 20px !important;
  padding: 15px 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #ffffff !important;
  width: 100%;
  opacity: 1 !important;
}

.submit-button {
  background-color: #ffc700;
  border-radius: 12px;
  padding: 10.5px 20px;
  border: none;
  cursor: pointer;
  color: #000469;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  width: 100%;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: #e6b300;
}

.terms-text {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.71;
  text-align: center;
  max-width: 333px;
  margin: 0;
}

.terms-text a {
  color: #0075ff;
  font-weight: 600;
  text-decoration: none;
}

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

@media (max-width: 1440px) {
  .login-container {
    padding: 0 80px;
    gap: 60px;
  }
}

@media (max-width: 1200px) {
  .login-container {
    flex-direction: column;
    padding: 0 40px;
    gap: 80px;
  }

  .info-column {
    max-width: 600px;
  }

  .form-column {
    width: 100%;
    max-width: 453px;
  }
}

@media (max-width: 768px) {
  .login-section {
    padding: 40px 20px;
  }

  .login-container {
    padding: 0;
    gap: 60px;
  }

  .info-text {
    font-size: 20px;
  }

  .graphic-container {
    width: 320px;
    height: 320px;
  }

  .form-title {
    font-size: 26px;
  }

  .form-wrapper {
    padding: 30px;
  }
}
