/* Custom Pages Styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Poppins:wght@400;500&display=swap');

@font-face {
  font-family: "Inter";
  src:
    url("../fonts/Inter/Inter Web/Inter-Regular.woff2") format("woff2"),
    url("../fonts/Inter/Inter Web/Inter-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src:
    url("../fonts/Inter/Inter Web/Inter-SemiBold.woff2") format("woff2"),
    url("../fonts/Inter/Inter Web/Inter-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src:
    url("../fonts/Inter/Inter Web/Inter-Bold.woff2") format("woff2"),
    url("../fonts/Inter/Inter Web/Inter-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cp-deep-ocean: #00041c;
  --cp-coral-sunset: #fc9c63;
  --cp-app-blue: #0020f6;
  --cp-aqua-marine: #3bc4bd;
  --cp-white: #ffffff;
  --cp-cream-light: #f7fafb;
}

/* Helpers */
.text-cp-deep-ocean {
  color: var(--cp-deep-ocean);
  font-family: "Graphik Arabic", sans-serif;
}

.text-cp-coral-sunset {
  color: var(--cp-coral-sunset);
}

.text-cp-app-blue {
  color: var(--cp-app-blue);
}

.bg-cp-cream-light {
  background-color: var(--cp-cream-light);
}

.font-mackay {
  font-family: "Mackay", serif;
}

.font-graphik {
  font-family: "Graphik Arabic", sans-serif;
}

/* Dashboard Header */
.dashboard-header {
  background-color: var(--cp-white);
  border-bottom: 1px solid #e5e7eb;
  /* Padding top 16px, horizontal 32px (handled by container usually, but ensuring spacing) */
  padding: 16px 0;
}

.dashboard-header-row {
  gap: 16px;
}

.dashboard-nav-wrap {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.dashboard-right {
  margin-left: auto;
}

.ar .dashboard-header-row,
[dir="rtl"] .dashboard-header-row {
  justify-content: space-between;
}

.ar .dashboard-right,
[dir="rtl"] .dashboard-right {
  margin-left: 0;
  margin-right: auto;
}

.dashboard-lang-toggle {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
}

.ar .dashboard-lang-toggle,
[dir="rtl"] .dashboard-lang-toggle {
  margin-right: 0;
  margin-left: 8px;
}

.dashboard-header .container>.d-flex {
  height: 70px;
}

.dashboard-header .sic-logo a {
  display: block;
  width: 187px;
  /* Figma width */
  height: 64px;
  /* Figma height */
}

.dashboard-header .sic-logo img {
  width: auto;
  height: 75px;
  object-fit: contain;
  object-position: left center;
}

.dashboard-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.dashboard-nav .nav-link {
  font-family: "Graphik Arabic", sans-serif;
  /* Figma specifies SemiBold. Mapping to 600 weight. 
     Using "Graphik Arabic Bold" family to clear faux-bold issues if necessary, 
     but standard "Graphik Arabic" with weight 600 is preferred if font files allow. 
     Reverting to standard family + weight based on common practices, unless files dictate otherwise. */
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.3125px;
  /* From Figma */
  color: var(--cp-deep-ocean);
  text-decoration: none;
  position: relative;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 4px;
}

.dashboard-nav .nav-link.active {
  border-bottom: 2px solid var(--cp-deep-ocean);
  font-weight: 600;
}

/* Voting/Submission shared layout */
.voting-overview-container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 32px;
  padding-right: 32px;
}

@media (max-width: 768px) {
  .voting-overview-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.dp-tab-group {
  background: #eee;
  padding: 4px;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  width: fit-content;
  margin-bottom: 24px;
}

.dp-tab-item {
  height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #757575;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-decoration: none;
}

.dp-tab-item.active {
  background: #fafafa;
  color: #212121;
  font-weight: 500;
}

.dp-content-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  margin-bottom: 50px;
}

.dp-box-header {
  padding: 16px 16px 8px;
}

.dp-actions {
  margin-left: auto;
}

.ar .dp-actions,
[dir="rtl"] .dp-actions {
  margin-left: 0;
  margin-right: auto;
}

.dp-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dp-table-wrap {
  padding-top: 12px;
}

.admin-funnel-card {
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.conversion-analysis-table .insight-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.conversion-analysis-table .insight-critical {
  background: #fee4e2;
  color: #b42318;
}

.conversion-analysis-table .insight-moderate {
  background: #fef0c7;
  color: #b54708;
}

.conversion-analysis-table .insight-acceptable {
  background: #dcfce7;
  color: #166534;
}

.conversion-analysis-table .conversion-action-link {
  color: #3bc4bd;
  font-weight: 600;
  text-decoration: none;
}

.conversion-analysis-table th {
  font-size: 16px;
}

.conversion-analysis-table td {
  font-size: 16px;
}

.ar .conversion-analysis-table td,
[dir="rtl"] .conversion-analysis-table td {
  font-size: 16px;
}

.conversion-analysis-table .conversion-stage-link {
  color: #101828;
  font-weight: 600;
  text-decoration: none;
}

.conversion-analysis-table .conversion-stage-link:hover {
  color: #3bc4bd;
  text-decoration: underline;
}

.conversion-analysis-table .conversion-action-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.conversion-analysis-table .conversion-action-link:hover {
  color: #2aa79f;
  text-decoration: underline;
}

.conversion-analysis-table .conversion-action-alert {
  color: #dc2626;
  font-size: 14px;
  margin-left: 6px;
  vertical-align: middle;
}

.ar .conversion-analysis-table .conversion-action-alert,
[dir="rtl"] .conversion-analysis-table .conversion-action-alert {
  margin-left: 0;
  margin-right: 6px;
}

.admin-funnel-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #101828;
  margin: 0 0 12px;
}

.admin-funnel-svg {
  width: 100%;
  height: auto;
  display: block;
}

.admin-funnel-svg .funnel-seg {
  stroke: #ffffff;
  stroke-width: 2;
}

.admin-funnel-svg .funnel-applicants {
  fill: #3bc4bd;
}

.admin-funnel-svg .funnel-organizations {
  fill: #fc9c63;
}

.admin-funnel-svg .funnel-projects {
  fill: #0020f6;
}

.admin-funnel-svg text {
  font-family: 'DM Sans', sans-serif;
  fill: #ffffff;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background-color: #fcfcfd;
}

.table-hover tbody tr.clickable-row:hover>* {
  background-color: #fcfcfd !important;
}

.sic-organizations-page .clickable-row:hover {
  background-color: transparent !important;
}

.sic-organizations-page .table-hover tbody tr.clickable-row:hover>* {
  background-color: transparent !important;
}

.row-view-icon {
  color: #3bc4bd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-size: 18px;
}

.row-view-icon:hover {
  background-color: rgba(59, 196, 189, 0.15);
  color: #009689;
}

.row-action-icons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.row-edit-icon {
  color: #3bc4bd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-size: 18px;
}

.row-edit-icon:hover {
  background-color: rgba(59, 196, 189, 0.15);
  color: #009689;
}

.sic-organizations-page .row-action-icons .row-view-icon,
.sic-organizations-page .row-action-icons .row-edit-icon {
  background-color: rgba(59, 196, 189, 0.12);
  color: #009689;
  border: 1px solid rgba(59, 196, 189, 0.35);
}

.sic-organizations-page .row-action-icons .row-view-icon:hover,
.sic-organizations-page .row-action-icons .row-edit-icon:hover {
  background-color: rgba(59, 196, 189, 0.2);
}

.row-edit-icon.disabled {
  color: #cbd5e1;
  background-color: transparent;
  cursor: not-allowed;
}

.row-edit-icon.disabled i,
.row-edit-icon.disabled .bi::before {
  color: #cbd5e1 !important;
}

.org-link {
  color: #212121;
  font-weight: 600;
  text-decoration: none;
}

.org-link:hover {
  color: #3bc4bd;
  text-decoration: underline;
}

.org-link.org-link-muted {
  color: #212121;
  font-weight: 500;
}

.org-link.org-link-muted:hover {
  color: #3bc4bd;
  text-decoration: underline;
}

.org-link-truncate {
  display: inline-block;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.project-link {
  color: #212121;
  font-weight: 600;
  text-decoration: none;
}

.project-link:hover {
  color: #3bc4bd !important;
  text-decoration: underline;
}

.project-link-truncate {
  display: inline-block;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.home-projects-table {
  table-layout: fixed;
  width: 100%;
}

.pending-submission-title {
  color: #fc9c63;
}

.section-title-sm {
  font-size: 18px;
  font-weight: 500;
}

.continue-application-link {
  color: #3bc4bd;
  font-weight: 600;
  text-decoration: none;
}

.continue-application-link:hover {
  color: #009689;
  text-decoration: underline;
}

.tooltip-right {
  position: relative;
}

.tooltip-right::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  right: 0;
  transform: translate(-8px, -8px);
  background: #111827;
  color: #fff;
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.tooltip-right::before {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 12px;
  transform: translateY(-2px);
  border-width: 6px;
  border-style: solid;
  border-color: #111827 transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.tooltip-right:hover::after,
.tooltip-right:hover::before {
  opacity: 1;
}

.admin-funnel-svg .funnel-label-text {
  font-size: 11px;
  font-weight: 500;
}

.admin-funnel-svg .funnel-count-text {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.admin-funnel-svg .funnel-sub-text {
  font-size: 8px;
  font-weight: 400;
  opacity: 0.9;
  line-height: 1.1;
}

.ar .admin-funnel-svg text,
[dir="rtl"] .admin-funnel-svg text {
  direction: rtl;
  unicode-bidi: plaintext;
}

.dp-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #212121;
  margin: 0;
}

.dp-table-wrap {
  padding: 0 16px 16px;
}

.dp-table {
  width: 100%;
}

.dp-table-applicants {
  table-layout: fixed;
  min-width: 1300px;
}

.dp-table-applicants th,
.dp-table-applicants td {
  white-space: nowrap;
}

.dp-table-applicants th:nth-child(1),
.dp-table-applicants td:nth-child(1) {
  width: 140px;
}

.dp-table-applicants th:nth-child(2),
.dp-table-applicants td:nth-child(2) {
  width: 140px;
}

.dp-table-applicants th:nth-child(6),
.dp-table-applicants td:nth-child(6) {
  width: 130px;
}

.dp-table-applicants th.org-col,
.dp-table-applicants td.org-col {
  width: 320px;
}

.dp-table-applicants td.org-col {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-table-applicants th.email-col,
.dp-table-applicants td.email-col {
  width: 320px;
}

.dp-table-applicants th.phone-col,
.dp-table-applicants td.phone-col {
  width: 160px;
}

.dp-table-applicants td.email-col,
.dp-table-applicants td.phone-col {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-table-applicants td.email-col,
.dp-table-applicants th.email-col {
  white-space: normal;
  word-break: break-all;
  overflow: visible;
  text-overflow: clip;
}

.dp-table-applicants th.designation-col,
.dp-table-applicants td.designation-col {
  width: 200px;
}

.dp-table-applicants td.designation-col {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-table thead tr th {
  background: #fafafa;
  height: 40px;
  padding: 0 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #575757;
  border-top: 1px solid #f5f5f5 !important;
  border-bottom: 1px solid #f5f5f5 !important;
  border-left: none !important;
  border-right: none !important;
  vertical-align: middle;
}

.dp-table thead tr th:first-child {
  border-left: 1px solid #f5f5f5 !important;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.dp-table thead tr th:last-child {
  border-right: 1px solid #f5f5f5 !important;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.dp-table thead th.sortable {
  cursor: pointer;
  user-select: none;
}

.dp-table thead th.sortable a {
  color: inherit;
  text-decoration: none;
}

.dp-table thead th.sortable a:hover {
  text-decoration: underline;
}

.dp-table thead th.sortable::after {
  content: "↕";
  font-size: 12px;
  color: #b0b0b0;
  margin-left: 6px;
}

[dir="rtl"] .dp-table thead th.sortable::after {
  margin-left: 0;
  margin-right: 6px;
}

.dp-table thead th.sortable.sort-asc::after {
  content: "↑";
  color: #6b7280;
}

.dp-table thead th.sortable.sort-desc::after {
  content: "↓";
  color: #6b7280;
}

.dp-table tbody td {
  padding: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #212121;
  vertical-align: top;
  border-bottom: 1px solid #f5f5f5 !important;
  border-top: none !important;
}

.applicants-status-select {
  height: 40px;
  border-radius: 64px !important;
  border: 1px solid #e5e7eb !important;
  padding: 0 16px;
  font-size: 14px;
  font-family: 'Graphik Arabic', sans-serif;
  box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1) !important;
  background-color: #fff !important;
}

.applicants-status-select:focus {
  border-color: #e5e7eb !important;
  box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(0, 32, 246, 0.05) !important;
}

/* Full-width dashboard pages (submission/voting/scoring/config/home) */
.dashboard-fullwidth .container {
  max-width: 100% !important;
  padding-left: 32px;
  padding-right: 32px;
}

@media (max-width: 768px) {
  .dashboard-fullwidth .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.btn-submission-guide {
  background-color: #3bc4bd;
  width: 158px;
  height: 31px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600 !important;
  line-height: 24px;
  text-align: center;
  color: white !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  border: none;
  transition: background-color 0.2s;
  padding: 0;
  border-bottom: none !important;
}

.btn-submission-guide:hover {
  background-color: #2daaa4;
  color: white !important;
}

.dashboard-user-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Inter Font Definition */

.dashboard-user-area .user-name {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--cp-deep-ocean);
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  /* Adjust if needed based on Figma */
  align-items: center;
  margin-left: 12px;
}

[dir="rtl"] .dashboard-actions {
  margin-left: 0;
  margin-right: 12px;
}

.dashboard-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e5e7eb;
  /* Default Gray for Notification */
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.dashboard-action-btn.btn-profile {
  background-color: #e5e7eb;
  /* Orange for Profile */
}

.dashboard-action-btn.btn-notification {
  background-color: var(--cp-coral-sunset);
  /* Orange for Profile */
}

.dashboard-action-btn:hover {
  opacity: 0.9;
}

.dashboard-action-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/* Welcome Banner */
/* Welcome Banner */
.welcome-banner {
  background-color: var(--cp-white);
  background-image: url("../../uploads/2026/01/dashboard-welcome-bg.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 0;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
  border-radius: 16px !important;
  background: var(--L1,
      linear-gradient(180deg, #f0f9f8 0%, #fff 100%)) !important;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px -1px rgba(0, 0, 0, 0.1) !important;
  /* margin-top: 69px !important; */
  margin-left: 32px;
  margin-right: 32px;
}

.welcome-banner h1 {
  font-family: "Mackay", "Mackay DEMO", serif;
  font-weight: 700;
  font-size: 26px;
  /* "Welcome to the" */
  line-height: 41px;
  letter-spacing: -0.44px;
  /* tracking-[-0.4395px] */
  color: var(--cp-deep-ocean);
  margin-bottom: 0;
}

.welcome-banner h1 .highlight {
  display: block;
  font-size: 45px;
  /* "Sustainability Impact Challenge" */
  color: var(--cp-aqua-marine);
  margin-top: 0;
  line-height: 1.1;
}

.welcome-banner p {
  font-family: "Graphik Arabic", sans-serif;
  color: var(--cp-deep-ocean);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
}

/* Steps Section */
.steps-section {
  padding: 80px 0;
  text-align: center;
}

.steps-section h2 {
  font-family: "Mackay", serif;
  font-size: 3rem;
  color: var(--cp-deep-ocean);
  margin-bottom: 3rem;
}

.steps-section h2 .highlight {
  color: var(--cp-aqua-marine);
}

.step-card {
  background: var(--cp-white);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: left;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
}

.step-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg,
      rgba(252, 156, 99, 0.1) 0%,
      rgba(252, 156, 99, 0.2) 100%);
  border-radius: 16px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--cp-coral-sunset);
  font-size: 24px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
}

.step-card h3 {
  font-family: "Mackay", serif;
  font-size: 1.5rem;
  color: var(--cp-deep-ocean);
  margin-bottom: 16px;
}

.step-card p {
  font-family: "Graphik Arabic", sans-serif;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.5;
}

/* No Organization State */
.no-org-state {
  padding: 60px 0 100px;
  text-align: center;
}

.no-org-content {
  background: var(--cp-white);
  border-radius: 40px;
  padding: 80px 40px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  max-width: 800px;
  margin: 0 auto;
}

.no-org-icon {
  width: 130px;
  height: 130px;
  background: linear-gradient(135deg,
      rgba(59, 196, 189, 0.05) 0%,
      rgba(252, 156, 99, 0.05) 100%);
  border: 1px solid rgba(59, 196, 189, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
}

.no-org-content h3 {
  font-family: "Mackay", serif;
  font-size: 2.5rem;
  color: var(--cp-deep-ocean);
  margin-bottom: 16px;
}

.no-org-content p {
  font-family: "Graphik Arabic", sans-serif;
  color: #4b5563;
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn-custom-primary {
  background-color: var(--cp-coral-sunset);
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  font-family: "Graphik Arabic", sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: none;
  font-size: 1.1rem;
}

.btn-custom-primary:hover {
  background-color: #e88b52;
  color: white;
}

/* Dashboard Table Styles */
.custom-dashboard-table thead th {
  background-color: transparent;
  border-bottom: 2px solid #f3f4f6;
  color: #6b7280;
  font-family: "Graphik Arabic", sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 16px 20px;
  white-space: nowrap;
}

.custom-dashboard-table tbody td {
  padding: 20px 18px;
  border-bottom: 1px solid #f3f4f6;
  font-family: "Graphik Arabic", sans-serif;
  font-size: 15px;
}

.custom-dashboard-table tbody tr:hover {
  background-color: #f9fafb;
}

.custom-dashboard-table tbody tr:last-child td {
  border-bottom: none;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  font-family: "Graphik Arabic", sans-serif;
  white-space: nowrap;
}

.status-rect {
  height: 24px;
  padding: 0 8px;
  border-radius: 4px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  width: auto !important;
}

.status-review {
  color: #00041c;
}

.status-draft {
  color: #fc9c63;
}

.status-approved {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #d1fae5;
}

.status-rejected {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fee2e2;
}

.status-completed {
  color: #009689;
  border-radius: 16777200px;
  border: 1px solid #3bc4bd;
  background: #cbfbf1;
  width: 130px;
}

.status-planned {
  color: #9810fa;
  border-radius: 16777200px;
  border: 1px solid #9810fa;
  background: rgba(152, 16, 250, 0.11);
  width: 130px;
}

.status-in-progress {
  color: #0020f6;
  border-radius: 16777200px;
  border: 1px solid #0020f6;
  background: #daeaff;
  width: 130px;
}

/* Pagination Custom */
.page-link {
  color: var(--cp-deep-ocean);
}

.page-link:hover {
  color: var(--cp-coral-sunset);
  background-color: #fdf2e9;
}

.page-item.active .page-link {
  background-color: var(--cp-coral-sunset);
  border-color: var(--cp-coral-sunset);
}

/* Create Organization Page Styles */
.border-dashed {
  border-style: dashed !important;
  border-width: 2px !important;
  border-color: #e5e7eb !important;
  transition: all 0.3s ease;
}

.custom-upload-zone:hover {
  background-color: #fff7ed !important;
  /* light coral tint */
  border-color: var(--cp-coral-sunset) !important;
}

.cursor-pointer {
  cursor: pointer;
}

/* Form Styles Override */
.form-control,
.form-select {
  padding: 0.6rem 1rem;
  font-family: "Graphik Arabic", sans-serif;
  color: var(--cp-deep-ocean);
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background-color: #ffffff;
  font-size: 15px;
}

.form-control:focus,
.form-select:focus {
  background-color: #fff;
  border-color: var(--cp-coral-sunset);
  box-shadow: 0 0 0 4px rgba(252, 156, 99, 0.1);
  color: var(--cp-deep-ocean);
}

/* Hide default file input text and button */
input[type="file"].form-control {
  color: transparent;
  min-height: 45px;
  /* Fix for Safari collapsing height */
}

input[type="file"].form-control::-webkit-file-upload-button {
  display: none;
  visibility: hidden;
}

input[type="file"].form-control::file-selector-button {
  display: none;
  visibility: hidden;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545 !important;
}

/* Remove default validation icon for file inputs to avoid overlap */
input[type="file"].form-control.is-invalid {
  background-image: none !important;
}

.form-label {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

/* Icon Circle */
.icon-circle {
  transition: transform 0.3s ease;
}

.custom-upload-zone:hover .icon-circle {
  transform: translateY(-5px);
}

.btn-custom-aqua {
  background-color: var(--cp-aqua-marine);
  color: white;
  border: none;
  transition: background-color 0.3s ease;
  font-family: "Graphik Arabic", sans-serif;
}

.btn-custom-aqua:hover {
  background-color: #2daaa4;
  color: white;
}

/* Guidance Panel Styles */
.bg-cp-sandstone {
  background-color: #faebda;
}

.border-cp-coral-sunset {
  border-color: var(--cp-coral-sunset) !important;
}

.guidance-icon-container {
  width: 35px;
  height: 35px;
  top: 20px;
  left: -17.5px;
  /* Half of width to overlap border */
  z-index: 2;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.guidance-panel {
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px -1px rgba(0, 0, 0, 0.1);
  margin-left: 20px;
  /* Space for the overlapping icon */
}

/* Eligibility Banner */
.eligibility-banner {
  background: linear-gradient(180deg, #f0f9f8 0%, #ffffff 100%);
  border: 1px solid var(--cp-coral-sunset);
  border-radius: 14px;
}

.btn-add-org-custom {
  padding-top: 9px;
}

.btn-add-org-custom:hover {
  background-color: #f0fdfa !important;
  color: #3bc4bd !important;
}

.thankyou-close-btn:hover {
  background-color: #f0fdfa !important;
  color: #3bc4bd !important;
}

/* Organization View - Details Page */
.details-section-card {
  background-color: var(--cp-white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.details-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background-color: #fcfcfd;
}

.details-header h2 {
  font-family: "Mackay", serif;
  font-size: 1.25rem;
  color: var(--cp-deep-ocean);
  margin-bottom: 0;
  font-weight: 700;
}

.details-row {
  display: flex;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
  align-items: center;
}

.details-row:last-child {
  border-bottom: none;
}

.details-label {
  width: 30%;
  font-family: "Graphik Arabic", sans-serif;
  font-size: 0.95rem;
  color: #6b7280;
  font-weight: 500;
}

.details-value {
  width: 70%;
  font-family: "Graphik Arabic", sans-serif;
  font-size: 0.95rem;
  color: var(--cp-deep-ocean);
  font-weight: 400;
}

.file-download-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  word-break: break-all;
}

.file-icon-wrapper {
  width: 40px;
  height: 40px;
  background-color: #eff6ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  font-size: 1.2rem;
  margin-right: 16px;
}

.file-info h4 {
  font-family: "Graphik Arabic", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--cp-deep-ocean);
}

.file-meta {
  font-family: "Graphik Arabic", sans-serif;
  font-size: 0.8rem;
  color: #9ca3af;
}

.btn-download-outline {
  border: 1px solid #e5e7eb;
  color: #374151;
  background-color: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-download-outline:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.info-alert-custom {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 12px;
  color: #1e40af;
  font-family: "Graphik Arabic", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
}

.info-alert-custom i {
  font-size: 1.2rem;
}

.csr-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.csr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.csr-dot.yes {
  background-color: #10b981;
}

.csr-dot.no {
  background-color: #ef4444;
}

/* Project View */
.project-hero-image {
  width: 100%;
  height: 320px;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 24px;
}

/* Badges */
.badge-custom {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  margin-right: 8px;
  margin-bottom: 8px;
  font-family: "Graphik Arabic", sans-serif;
}

.badge-impact {
  background-color: #e6f8f7;
  /* light aqua */
  color: #0d9488;
  /* teal */
  border: 1px solid #ccfbf1;
}

.badge-beneficiary {
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

/* SDG Cards */
.sdg-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.sdg-icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: #f3f4f6;
  /* Default fallback */
  font-weight: bold;
  color: white;
}

/* SDG Colors - Add specific classes if needed or inline styles for dynamic colors */
.sdg-text {
  font-family: "Graphik Arabic", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--cp-deep-ocean);
  line-height: 1.3;
}

/* Demographic Stats */
.stat-box {
  margin-bottom: 24px;
}

.stat-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
  display: block;
  font-family: "Graphik Arabic", sans-serif;
}

.stat-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--cp-deep-ocean);
  font-family: "Inter", sans-serif;
}

.card-link {
  color: #3bc4bd;
  font-family: "Graphik Arabic", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 19px;
  /* 135.714% */
  letter-spacing: -0.15px;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

.input-group input.form-control {
  border: 1px solid #d0d5dd !important;
  border-right: 0 !important;
  border-top-left-radius: 50px !important;
  border-bottom-left-radius: 50px !important;
  width: 250px;
}

.input-group .input-group-text {
  border: 1px solid #d0d5dd !important;
  border-left: 0 !important;
  border-top-right-radius: 50px !important;
  border-bottom-right-radius: 50px !important;
  background: #fff;
  padding: 10px 16px;
  white-space: nowrap;
}

.input-group .form-control:focus {
  border: 1px solid #d0d5dd !important;
  border-right: none !important;
}

/* Step 4: Project Location */
.location-search-wrapper {
  background-color: var(--cp-white);
  border: 1px solid #d1d5dc;
  border-radius: 14px;
  /* Figma: 14px */
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0;
  height: 50px;
  /* Figma: 50px */
  position: relative;
}

.location-search-wrapper .input-group-text {
  background-color: transparent !important;
  border: none !important;
  position: absolute;
  left: 16px;
  top: 15px;
  padding: 0;
  z-index: 2;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-search-wrapper .input-group-text img {
  width: 100%;
  height: 100%;
}

.location-search-input {
  border: none !important;
  box-shadow: none !important;
  height: 100% !important;
  font-family: "Graphik Arabic", sans-serif;
  font-size: 16px !important;
  font-weight: 400;
  padding-left: 47px !important;
  /* Figma: Left 47px */
  padding-right: 140px !important;
  /* Space for button + margin */
  color: var(--cp-deep-ocean);
  letter-spacing: -0.3125px;
}

.location-search-input::placeholder {
  color: rgba(153, 161, 175, 0.5);
  /* Figma text color */
}

/* Updated Button Style per Figma Node 6780:10991 */
.location-search-btn {
  background-color: #e2e2e2;
  /* Figma: #E2E2E2 */
  border: none;
  color: white;
  /* Figma: white (low contrast check? implementing 'as is') */
  width: 120px;
  /* Figma: 120px */
  height: 40px;
  border-radius: 13px;
  /* Figma: 13px */
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.2s;
  position: absolute;
  right: 5px;
  top: 5px;
  /* Center in 50px height */
  display: flex;
  align-items: center;
  font-family: "Graphik Arabic", sans-serif;
  justify-content: center;
}

.location-search-btn:hover {
  background-color: #d1d5db;
}

.project-map-container {
  width: 100%;
  height: 390px;
  /* Figma: 390px */
  background-color: #f3f4f6;
  border-radius: 16px !important;
  /* Figma: 16px */
  overflow: hidden;
  position: relative;
  box-shadow:
    0px 1px 3px 0px rgba(0, 0, 0, 0.1),
    0px 1px 2px -1px rgba(0, 0, 0, 0.1);
  margin-top: 47px;
  /* Figma spacing/layout */
}

.project-step-card {
  background-color: var(--cp-white);
  border-radius: 16px;
  box-shadow:
    0px 1px 3px 0px rgba(0, 0, 0, 0.1),
    0px 1px 2px -1px rgba(0, 0, 0, 0.1);
  padding: 24px;
  height: 100%;
  /* Match design height if fixed, or auto */
  min-height: 662px;
  /* From Figma */
}

.guidance-sidebar {
  background-color: #f7fafb;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 100%;
}

@media (max-width: 768px) {
  .organization-submit {
    display: table !important;
    /* table or fit-content works better for centering 'block' elements that should shrink */
    margin: 0 auto !important;
  }

  .dashboard-header .sic-logo img {
    height: 55px !important;
    width: 150px !important;
  }

  .dashboard-header .sic-logo a {
    width: 160px !important;
  }

  .sic-logo {
    width: 170px;
  }
}

.navbar-nav {
  align-items: start !important;
  margin-left: 30px !important;
  margin-right: 30px !important;
}

.mb-4 .font-graphik {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.sic-logo {
  width: 200px !important
}

.details-row .details-value {
  margin-left: 10rem !important;
}

/* Mobile Responsive Fix */
@media (max-width: 768px) {

  .d-flex.justify-content-between.align-items-center.mt-4.pt-4.border-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px;
  }

  .pagination {
    width: 100%;
    justify-content: center !important;
    flex-wrap: wrap;
  }

  .pagination .page-item {
    margin-bottom: 5px;
  }
}

/* Configuration Dashboard Specific Styles */
.config-dashboard-bg {
  background-color: #f7fafb;
}

.config-guidance-panel {
  position: relative;
  width: 100%;
  height: 238px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  background: linear-gradient(180deg, #F0F9F8 0%, #FFFFFF 100%);
}

.panel-background-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.6;
}

.panel-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.welcome-text .small-text {
  font-family: "Mackay", "Mackay DEMO", serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 41px;
  color: #00041c;
  letter-spacing: -0.4395px;
  margin-bottom: 0px;
}

.welcome-text .large-text {
  font-family: "Mackay", "Mackay DEMO", serif;
  font-weight: 700;
  font-size: 45px;
  line-height: 41px;
  color: #3bc4bd;
  letter-spacing: -0.4395px;
  margin-bottom: 0px;
}

.active-info {
  margin-top: 30px;
  font-family: "Graphik Arabic", sans-serif;
  font-size: 20px;
  color: #364153;
  letter-spacing: -0.1504px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.active-info p {
  margin-bottom: 0;
}

.active-info strong {
  font-weight: 600;
  color: #0a0a0a;
}

.config-section-card {
  background: #ffffff;
  border: 0.667px solid #d1d5dc;
  border-radius: 10px;
  padding: 16.67px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.config-section-title {
  font-family: "Graphik Arabic", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 27px;
  color: #0a0a0a;
  margin-bottom: 12px;
}

.config-row {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  width: 100%;
}

.config-label-text {
  font-family: "Graphik Arabic", sans-serif;
  font-weight: 400 !important;
  font-size: 14px;
  line-height: 20px;
  color: #0a0a0a;
  flex-shrink: 0;
  width: 300px;
  margin-bottom: 0 !important;
  letter-spacing: -0.1504px;
}

.config-input-field {
  background: #ffffff;
  border: 0.667px solid #d1d5dc;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: "Graphik Arabic", sans-serif;
  font-size: 16px;
  color: #0a0a0a;
  height: 37.33px;
  transition: all 0.2s;
  width: 100%;
}

.config-input-field:focus {
  border-color: #3bc4bd;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 196, 189, 0.1);
}

.config-value-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  font-family: "Graphik Arabic", sans-serif;
  font-size: 16px;
  color: #0a0a0a;
  font-weight: 600;
}

.config-input-readonly {
  background: #fbfbfb;
  border-bottom: 1px solid #f3f4f6 !important;
  color: #101828;
  font-weight: 600;
  font-size: 14px;
  height: 41px;
}

.config-btn-aqua-action {
  background-color: #3bc4bd;
  color: #ffffff;
  border-radius: 8px;
  padding: 0 24px;
  font-family: "Graphik Arabic", sans-serif;
  font-size: 14px;
  height: 41.33px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.config-btn-aqua-action:hover {
  opacity: 0.95;
  color: #ffffff;
}

.config-btn-outline-action {
  background: #ffffff;
  border: 0.667px solid #d1d5dc;
  border-radius: 8px;
  padding: 0 10px;
  font-family: "Graphik Arabic", sans-serif;
  font-size: 14px;
  color: #0a0a0a;
  height: 33.33px;
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
}
.config-btn-assign {
  background: #3bc4bd;
  border-color: #3bc4bd;
  color: #ffffff;
  height: 41.33px;
  padding: 0 24px;
  min-width: 180px;
}
.config-btn-assign:hover {
  opacity: 0.95;
  color: #ffffff;
}
.config-btn-assign:disabled {
  background: rgba(33, 33, 33, 0.08) !important;
  color: rgba(33, 33, 33, 0.38) !important;
  border: 1px solid rgba(33, 33, 33, 0.08) !important;
  opacity: 1 !important;
  cursor: not-allowed;
}
.config-btn-clear {
  height: 41.33px;
  padding: 0 18px;
  min-width: 200px;
}
.config-btn-clear:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.asr-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.asr-search-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  padding: 12px 8px;
  box-shadow: 0px 4px 16px 0px rgba(0, 1, 57, 0.04);
  height: 48px;
  min-width: 320px;
  width: fit-content;
  transition: all 0.2s ease;
}

.asr-search-group:focus-within {
  border-color: #3bc4bd;
  box-shadow: 0 0 0 2px rgba(59, 196, 189, 0.1);
}

.asr-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.asr-search-icon svg {
  width: 100%;
  height: 100%;
}

.asr-search-input {
  height: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #212121;
  outline: none;
}

.asr-search-input::placeholder {
  color: #757575;
}

.asr-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.asr-actions-right {
  flex-wrap: nowrap;
}

[dir="rtl"] .asr-actions-row {
  flex-direction: row-reverse;
}
[dir="rtl"] .asr-search-group {
  flex-direction: row-reverse;
}

.sic-confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.sic-confirm-modal.open {
  display: flex;
}
.sic-confirm-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px 32px 32px;
  width: min(534px, calc(100% - 32px));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sic-confirm-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: transparent;
  border: none;
  color: #757575;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.sic-confirm-close:hover {
  color: #101828;
}
.sic-confirm-title {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #101828;
  margin-top: 12px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.sic-confirm-text {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  color: #757575;
  margin-bottom: 48px;
  line-height: 1.5;
}
.sic-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  width: 100%;
}
.sic-confirm-cancel,
.sic-confirm-proceed {
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.sic-confirm-cancel {
  background: #ffffff;
  border: 1px solid #3bc4bd;
  color: #3bc4bd;
}
.sic-confirm-cancel:hover {
  background: rgba(59, 196, 189, 0.05);
}
.sic-confirm-proceed {
  background: #3bc4bd;
  border: 1px solid #3bc4bd;
  color: #ffffff;
}
.sic-confirm-proceed:hover {
  background: #2aa8a2;
  border-color: #2aa8a2;
}
[dir="rtl"] .sic-confirm-close {
  right: auto;
  left: 32px;
}
[dir="rtl"] .sic-confirm-actions {
  flex-direction: row-reverse;
}


.config-email-textarea:disabled {
  background: #f5f6f7;
  cursor: not-allowed;
  opacity: 0.9;
}

.date-input-wrapper {
  display: flex !important;
  align-items: center;
  border: 0.667px solid #d1d5dc;
  border-radius: 8px;
  background: #fff;
  width: 150px;
  height: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}

.date-input-wrapper:focus-within {
  border-color: #3bc4bd;
  box-shadow: 0 0 0 2px rgba(59, 196, 189, 0.1);
}

.date-input-wrapper input[type="date"] {
  border: none !important;
  font-family: "Graphik Arabic", sans-serif;
  font-size: 16px;
  color: #0a0a0a;
  width: 100%;
  padding: 0 35px 0 10px !important;
  background: transparent !important;
  z-index: 2;
  height: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* Balanced padding for centered date inputs (like Winners Announcement) */
.date-input-wrapper input[type="date"].text-center {
  padding: 0 35px 0 35px !important;
}

/* Hide native calendar icon in all browsers */
.date-input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.date-icon-svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-icon-svg svg {
  width: 100%;
  height: 100%;
}

.config-phase-grid {
  display: grid;
  grid-template-columns: 1fr 150px 150px;
  gap: 30px;
  align-items: center;
  margin-bottom: 21px;
}

.config-phase-header {
  display: grid;
  grid-template-columns: 1fr 150px 150px;
  gap: 30px;
  margin-bottom: 24px;
}

.config-phase-header .text-center {
  font-family: "Graphik Arabic", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #0a0a0a;
}

.config-criteria-item {
  background: #fbfbfb;
  border-radius: 10px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  min-height: 55px;
  height: auto;
  border: none;
  width: 100%;
  gap: 20px;
}

.criterion-question-wrapper {
  flex: 1;
  min-width: 0;
}

.criterion-textarea {
  font-family: "Graphik Arabic", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #0a0a0a;
  outline: none;
  resize: none;
  overflow: hidden;
  height: auto;
  min-height: 20px;
  display: block;
  width: 100%;
  padding: 0;
  unicode-bidi: plaintext;
}

.criterion-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.weight-input-wrapper {
  width: 80px;
  height: 33px;
  border: 0.667px solid #d1d5dc !important;
  overflow: hidden;
}

.weight-input-wrapper input {
  font-family: "Graphik Arabic", sans-serif;
  font-size: 14px;
  color: #0a0a0a;
  outline: none;
}

.remove-criterion-btn-new {
  background: #ffffff;
  border: 0.667px solid #d1d5dc;
  border-radius: 8px;
  width: 80px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.remove-criterion-btn-new:hover {
  border-color: #f44336;
  background: #fff5f5;
}

.remove-criterion-btn-new:hover svg path {
  stroke: #f44336;
}

.remove-criterion-btn-new:focus {
  outline: none;
  border-color: #3bc4bd;
  box-shadow: 0 0 0 2px rgba(59, 196, 189, 0.1);
}

.config-total-label {
  font-family: "Graphik Arabic", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #4a5565;
}

.config-page-footer {
  display: flex;
  gap: 8px;
  margin-top: 40px;
  padding-bottom: 80px;
}

.config-btn-save {
  background: #3bc4bd;
  border-radius: 8px;
  height: 41.33px;
  padding: 0 40px;
  color: #fff;
  font-family: "Graphik Arabic", sans-serif;
  font-size: 14px;
  font-weight: 400;
  border: none;
  transition: all 0.2s;
  cursor: pointer;
}

.config-btn-cancel {
  background: #ffffff;
  border: 0.667px solid #d1d5dc;
  border-radius: 8px;
  height: 41.33px;
  padding: 0 40px;
  color: #0a0a0a;
  font-family: "Graphik Arabic", sans-serif;
  font-size: 14px;
  font-weight: 400;
  border: none;
  transition: all 0.2s;
  cursor: pointer;
}

.winners-input-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.winners-input-field-wrapper {
  width: 330px;
}

.config-input-readonly-container {
  border-bottom: 1px solid #f3f4f6;
  width: 100%;
  padding-bottom: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.config-input-readonly-container .label {
  font-family: "Graphik Arabic", sans-serif;
  color: #364153;
  font-size: 14px;
  letter-spacing: -0.1504px;
}

.config-input-readonly-container .value {
  font-family: "Graphik Arabic", sans-serif;
  color: #101828;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.0703px;
}

/* Separator lines */
.config-separator {
  height: 2px;
  background-color: #f3f3f5;
  border: none;
  margin: 40px -17px;
  width: calc(100% + 34px);
  display: block;
}

/* Responsiveness */
@media (max-width: 1440px) {
  .dashboard-nav {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .dashboard-nav .nav-link {
    font-size: 16px;
  }

  .dashboard-header .sic-logo img {
    height: 65px;
  }

  .dashboard-user-area {
    gap: 15px;
  }

  .btn-submission-guide {
    width: 135px;
    font-size: 13px;
  }

  /* Reduce user area text size */
  .dashboard-user-area .user-name {
    font-size: 14px;
  }
}

@media (max-width: 1200px) {

  /* Allow the header container to be more fluid to prevent overlap */
  .dashboard-header .container {
    max-width: 100% !important;
    padding-left: 25px;
    padding-right: 25px;
  }

  .dashboard-header .container>.d-flex {
    height: auto;
    min-height: 70px;
    padding: 10px 0;
    flex-wrap: wrap;
  }

  .dashboard-nav {
    gap: 18px;
  }

  .dashboard-nav .nav-link {
    font-size: 13px;
    padding-bottom: 2px;
  }

  .dashboard-header .sic-logo img {
    height: 55px;
  }

  .btn-submission-guide {
    width: 120px;
    font-size: 12px;
    height: 28px;
  }

  .dashboard-user-area {
    gap: 10px;
  }

  .dashboard-user-area .user-name {
    font-size: 13px;
  }

  /* Adjust language toggle link size if it has inline or other styles */
  .dashboard-header .text-secondary.fw-bold.font-graphik {
    font-size: 13px !important;
  }
}

@media (max-width: 991px) {
  .config-guidance-panel {
    height: auto;
    min-height: 238px;
  }
}

@media (max-width: 768px) {
  .panel-content {
    padding: 30px 20px;
  }

  .welcome-text .small-text {
    font-size: 20px;
    line-height: 1.2;
  }

  .welcome-text .large-text {
    font-size: 32px;
    line-height: 1.2;
  }

  .active-info {
    font-size: 16px;
    margin-top: 20px;
  }

  .config-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .config-label-text {
    width: 100%;
  }

  .config-input-field,
  .config-input-field[style] {
    width: 100% !important;
  }

  .config-phase-grid,
  .config-phase-header {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .config-phase-header {
    display: none;
  }

  .config-phase-grid::before {
    content: attr(data-label);
    font-weight: 600;
    margin-bottom: 5px;
  }

  .winners-input-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .winners-input-field-wrapper {
    width: 100%;
  }

  .config-criteria-header {
    display: none;
  }

  .config-criteria-item {
    flex-direction: column;
    height: auto;
    padding: 20px 15px;
    gap: 15px;
    align-items: stretch;
  }

  .criterion-actions {
    justify-content: space-between;
    width: 100%;
  }

  .config-criteria-item .d-flex {
    justify-content: space-between;
  }

  .config-page-footer {
    flex-direction: column;
    padding-bottom: 40px;
  }

  .config-btn-save,
  .config-btn-cancel {
    width: 100% !important;
  }

  .config-separator {
    margin: 30px -15px;
    width: calc(100% + 30px);
  }

  .config-btn-outline-action {
    width: 100% !important;
  }
}

/* RTL Specific Adjustments for Configuration */
[dir="rtl"] .date-icon-svg {
  right: auto;
  left: 12px;
}

[dir="rtl"] .date-input-wrapper input[type="date"] {
  padding: 0 10px 0 35px !important;
}

[dir="rtl"] .date-input-wrapper input[type="date"].text-center {
  padding: 0 35px 0 35px !important;
}

[dir="rtl"] .config-page-footer {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

[dir="rtl"] .config-btn-save {
  margin-left: 0;
}

[dir="rtl"] .config-btn-cancel {
  margin-right: 0;
}

/* Ensure consistent font weight for Arabic */
[dir="rtl"] .config-label-text {
  font-weight: 500 !important;
}

[dir="rtl"] .config-section-title {
  font-weight: 700 !important;
}

[dir="rtl"] .criterion-textarea {
  text-align: right !important;
}

.vp-meta-item svg {
  width: 12px;
  height: 14px;
}

/* RTL Pagination Arrows (Flip) */
.ar .pagination .bi-chevron-left,
[dir="rtl"] .pagination .bi-chevron-left,
.ar .pagination .bi-chevron-right,
[dir="rtl"] .pagination .bi-chevron-right {
  display: inline-block;
  transform: scaleX(-1);
}
