/* Custom Pages Styles */
@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);
}
.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 .container > .d-flex {
  height: 70px;
}

.dashboard-header .logo a {
  display: block;
  width: 187px; /* Figma width */
  height: 64px; /* Figma height */
}

.dashboard-header .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;
}

.dashboard-user-area {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* 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;
}

.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;
  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;
}

.status-review {
  background-color: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
}

.status-draft {
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.status-approved {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #d1fae5;
}

.status-rejected {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fee2e2;
}

.status-completed {
  background-color: #009689;
  color: #ffffff;
  border: 1px solid #009689;
  font-size: 16px;
  font-weight: 500;
  padding: 4px 12px;
}

.status-planned {
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.status-in-progress {
  background-color: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
}

/* 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;
}

.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;
}

.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: transparent;
  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;
}

/* 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;
  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;
  }
}
