/* Base Body Styling  */


body {
  background: linear-gradient(135deg, #e5eef0 0%, #d5e4e8 100%);
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #0F172A;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated Background Elements */
.bg-animations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.blob-1 {
  width: 350px;
  height: 350px;
  background-color: #85C0DD;
  top: -50px;
  left: -50px;
  animation: blobFloat 8s ease-in-out infinite alternate;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background-color: #4274D3;
  bottom: -100px;
  right: -100px;
  animation: blobFloat 10s ease-in-out infinite alternate-reverse;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, 40px) scale(1.1);
  }
}

.floating-icon {
  position: absolute;
  color: #293681;
  opacity: 0.06;
  animation: iconFloat 6s ease-in-out infinite alternate;
}

.icon-1 {
  top: 15%;
  left: 8%;
  font-size: 4.5rem;
  animation-duration: 7s;
}

.icon-2 {
  top: 60%;
  left: 5%;
  font-size: 3.5rem;
  animation-duration: 9s;
  animation-delay: 1s;
}

.icon-3 {
  top: 20%;
  right: 7%;
  font-size: 5rem;
  animation-duration: 8s;
  animation-delay: 0.5s;
}

.icon-4 {
  top: 70%;
  right: 10%;
  font-size: 4rem;
  animation-duration: 6.5s;
}

.icon-5 {
  bottom: 10%;
  left: 45%;
  font-size: 3.8rem;
  animation-duration: 7.5s;
  animation-delay: 2s;
}

@keyframes iconFloat {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  100% {
    transform: translateY(-25px) rotate(10deg);
  }
}

/*  Navbar */
.masrofy-nav {
  background-color: rgba(41, 54, 129, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  margin: 20px auto;
  padding: 0.5rem 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(41, 54, 129, 0.3);
  top: 15px;
  z-index: 1000;
}

.masrofy-nav .navbar-brand {
  color: #D0E7E6;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.masrofy-nav .nav-link {
  color: #D0E7E6;
  opacity: 0.85;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.masrofy-nav .nav-link:hover {
  background-color: rgba(208, 231, 230, 0.1);
  color: #FFFFFF;
  opacity: 1;
}

.masrofy-nav .nav-link.active {
  background-color: rgba(208, 231, 230, 0.2);
  color: #FFFFFF;
  opacity: 1;
}

.masrofy-nav .navbar-toggler {
  border-color: rgba(208, 231, 230, 0.2);
  padding: 0.4rem 0.6rem;
}

.masrofy-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23D0E7E6' stroke-width='2.25' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


/*Dashboard Elements */
.tracker-title {
  font-weight: 800;
  color: #001F3F;
  letter-spacing: -0.5px;
}

.currency-badge {
  font-size: 0.85rem;
  border: 1px solid #E2E8F0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
}

/* Cards */
.stat-card,
.update-salary-section {
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
}

.card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748B;
  letter-spacing: 0.5px;
}

.card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0F172A;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0F172A;
}

/* Icons */
.icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.icon-dark {
  background-color: #293681;
  color: #FFFFFF;
}

.icon-blue {
  background-color: #4F80E2;
  color: #FFFFFF;
}

.icon-light {
  background-color: #D0E7E6;
  color: #1E40AF;
}

/* Progress Bar */
.custom-progress {
  height: 6px;
  background-color: #E2E8F0;
  border-radius: 10px;
}

.custom-progress .progress-bar {
  background-color: #4F80E2;
  border-radius: 10px;
  transition: width 0.4s ease, background-color 0.4s ease;
}

/* Forms & Buttons */
.form-label {
  font-size: 0.8rem;
  color: #475569;
  margin-bottom: 0.25rem;
}

.custom-input,
.custom-select {
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.9);
}

.custom-input:focus,
.custom-select:focus {
  border-color: #293681;
  box-shadow: 0 0 0 0.2rem rgba(41, 54, 129, 0.15);
  outline: none;
}

.btn-save,
.btn-primary-custom {
  background-color: #293681;
  color: #FFFFFF;
  border-radius: 8px;
  font-weight: 500;
  border: none;
  transition: background-color 0.2s;
}

.btn-save:hover,
.btn-primary-custom:hover {
  background-color: #1e285d;
  color: #FFFFFF;
}

/* Expenses List & Scroll Area */
.expenses-scroll-area {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 8px;
}

.expenses-scroll-area::-webkit-scrollbar {
  width: 6px;
}

.expenses-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}

.expenses-scroll-area::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 10px;
}

.expenses-scroll-area::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8;
}

.expense-item {
  padding: 1rem 0;
  border-bottom: 1px solid #F1F5F9;
}

.expense-item:last-child {
  border-bottom: none;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}

.avatar-light {
  background-color: #93C5FD;
  color: #FFFFFF;
}

.avatar-dark {
  background-color: #293681;
  color: #FFFFFF;
}

.avatar-orange {
  background-color: #F59E0B;
  color: #FFFFFF;
}

.avatar-teal {
  background-color: #14B8A6;
  color: #FFFFFF;
}

.expense-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
  color: #0F172A;
}

.expense-subtitle {
  font-size: 0.75rem;
  color: #64748B;
  margin: 0;
}

.expense-amount {
  font-weight: 700;
  font-size: 0.95rem;
}

/* Edit & Delete Buttons */
.delete-btn,
.edit-btn {
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
  font-size: 1rem;
}

.delete-btn {
  color: #94A3B8;
}

.delete-btn:hover {
  color: #EF4444;
}

.edit-btn {
  color: #94A3B8;
  margin-right: 12px;
}

.edit-btn:hover {
  color: #4F80E2;
}

/* Mobile */
@media (max-width: 767.98px) {

  .stat-card,
  .update-salary-section {
    padding: 1rem 0.8rem !important;
  }

  .card-label {
    font-size: 0.65rem;
  }

  .card-value {
    font-size: 1.1rem;
  }

  .chart-wrapper {
    height: 220px !important;
  }
}

@media (max-width: 767.98px) {
  .masrofy-nav {
    width: 92%;
    padding: 0.5rem 1rem;
  }
}

/* *********************************************************** */

/* the start of the news section */
.news-card {
  padding: 0 !important;
  /* Overriding stat-card padding for full-width image */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-img-wrapper {
  height: 200px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.news-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-img-wrapper img {
  transform: scale(1.08);
  /* Zoom effect on hover */
}

.news-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  background-color: #D0E7E6;
  color: #1E40AF;
  display: inline-block;
  margin-bottom: 1rem;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 0.85rem;
  color: #64748B;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #94A3B8;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding-top: 1rem;
}

.read-more-btn {
  color: #4F80E2;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.read-more-btn:hover {
  color: #293681;
}

/* the end of the news section */
/* *********************************************************** */

/* the start of the money converter section */
.converter-card {
  --card-bg: rgba(255, 255, 255, 0.95);
  --text-primary: #333333;
  --text-secondary: #64748b;
  --border-color: rgba(226, 232, 240, 0.8);
  --header-bg: #293681;
  --header-text: #ffffff;
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --result-box-bg: #f8fafc;
  --table-header-bg: #f1f5f9;
  --table-hover: #f8fafc;
  --accent-blue: #293681;

  max-width: 1000px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  overflow: hidden;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Theme Variables (Scoped to the card) */
.converter-card.dark-mode {
  --card-bg: rgba(30, 41, 59, 0.95);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-color: #334155;
  --header-bg: #0f172a;
  --header-text: #38bdf8;
  --input-bg: #0f172a;
  --input-border: #475569;
  --result-box-bg: #0f172a;
  --table-header-bg: #334155;
  --table-hover: #334155;
  --accent-blue: #38bdf8;
}

.converter-card .card-header {
  background-color: var(--header-bg);
  color: var(--header-text);
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.converter-card .card-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.converter-card .last-updated {
  font-size: 0.85rem;
  opacity: 0.85;
}

.converter-card .theme-toggle-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.2rem;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.converter-card .theme-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.converter-card .card-body {
  padding: 30px;
}

.converter-card .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.converter-card .section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 15px;
}

.converter-card .reset-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.converter-card .reset-btn:hover {
  color: var(--accent-blue);
}

.converter-card .converter-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 15px;
  align-items: center;
  margin-bottom: 25px;
}

.converter-card .input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.converter-card .input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.converter-card .custom-select,
.converter-card .amount-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  background-color: var(--input-bg);
  color: var(--text-primary);
}

.converter-card .result-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.converter-card .copy-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
}

.converter-card .equals-sign {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 20px;
}

.converter-card .result-input {
  background-color: var(--result-box-bg);
  font-weight: bold;
  color: var(--accent-blue);
  padding-right: 40px;
}

.converter-card .swap-btn {
  background-color: var(--result-box-bg);
  border: 1px solid var(--input-border);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: 22px;
  font-size: 1.2rem;
  color: var(--accent-blue);
  transition: transform 0.3s ease, background-color 0.2s ease;
}

.converter-card .swap-btn:hover {
  background-color: var(--accent-blue);
  color: #fff;
  transform: rotate(180deg);
}

.converter-card .result-box {
  background-color: var(--result-box-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}

.converter-card .rate-info {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.converter-card .converted-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.converter-card .table-container {
  overflow-x: auto;
  margin-bottom: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.converter-card .exchange-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.converter-card .exchange-table th {
  background-color: var(--table-header-bg);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 12px 16px;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--border-color);
}

.converter-card .exchange-table td {
  padding: 14px 16px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-color);
}

.converter-card .exchange-table tr:hover {
  background-color: var(--table-hover);
}

.converter-card .currency-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.converter-card .buy-rate {
  font-weight: 600;
  color: #16a34a;
}

.converter-card .sell-rate {
  font-weight: 600;
  color: #dc2626;
}

.converter-card .history-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-color);
}

.converter-card .history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.converter-card .clear-history-btn {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
}

.converter-card .history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.converter-card .history-item {
  background: var(--result-box-bg);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.converter-card .empty-history {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

.pulse-effect {
  animation: pulse 0.3s ease-in-out;
}

@media (max-width: 600px) {
  .converter-card .converter-grid {
    grid-template-columns: 1fr;
  }

  .converter-card .swap-btn {
    margin: 0 auto;
    transform: rotate(90deg);
  }

  .converter-card .swap-btn:hover {
    transform: rotate(270deg);
  }

  .converter-card .result-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* the end of the money converter section */
/* *********************************************************** */

/* the start of the savings section */
:root {
  --sg-navy-blue: #293681;
  --sg-royal-blue: #4F80E2;
  --sg-sky-blue: #a2c7e5;
  --sg-card-bg: rgba(255, 255, 255, 0.92);
  --sg-border: rgba(226, 232, 240, 0.8);
}

.sg-section {

  position: relative;

  width: 100%;

  min-height: 100vh;

  padding:
    80px 24px;

  background:
    linear-gradient(135deg,
      #e4ecf2 0%,
      #d2e0eb 100%);

  overflow: hidden;

}


/* =========================================
   CENTERED CONTENT
========================================= */

.sg-content-wrapper {

  position: relative;

  z-index: 2;

  width: 100%;

  max-width: 1150px;

  margin: 0 auto;

}


/* =========================================
   HEADER
========================================= */

.sg-header {

  width: 100%;

}


.sg-title {

  color: var(--sg-navy-blue);

  font-size: 2rem;

  font-weight: 700;

  letter-spacing: -0.5px;

}


.sg-subtitle {

  color: #6c757d;

  font-size: 0.85rem;

}


/* =========================================
   BACKGROUND BLOBS
========================================= */

.sg-bg-blob {

  position: absolute;

  border-radius: 50%;

  filter: blur(90px);

  z-index: 1;

  pointer-events: none;

  opacity: 0.5;

}


.sg-blob-1 {

  width: 400px;

  height: 400px;

  background-color:
    var(--sg-sky-blue);

  top: -100px;

  left: -100px;

  animation:
    sgBlobFloat 8s ease-in-out infinite alternate;

}


.sg-blob-2 {

  width: 450px;

  height: 450px;

  background-color:
    var(--sg-royal-blue);

  bottom: -120px;

  right: -120px;

  animation:
    sgBlobFloat 10s ease-in-out infinite alternate-reverse;

}


@keyframes sgBlobFloat {

  0% {

    transform:
      translate(0, 0) scale(1);

  }

  100% {

    transform:
      translate(30px, 40px) scale(1.08);

  }

}


/* =========================================
   FLOATING ICONS
========================================= */

.sg-floating-icon {

  position: absolute;

  color:
    var(--sg-navy-blue);

  opacity: 0.08;

  z-index: 1;

  pointer-events: none;

}


.sg-icon-1 {

  top: 15%;

  left: 5%;

  font-size: 5rem;

}


.sg-icon-2 {

  bottom: 20%;

  left: 8%;

  font-size: 4rem;

}


.sg-icon-3 {

  top: 25%;

  right: 6%;

  font-size: 5.5rem;

}


.sg-icon-4 {

  bottom: 10%;

  right: 12%;

  font-size: 4.5rem;

}


.sg-icon-5 {

  top: 55%;

  left: 3%;

  font-size: 3.5rem;

}


/* =========================================
   SUMMARY CARDS
========================================= */

.sg-summary-card {

  height: 100%;

  background:
    rgba(255, 255, 255, 0.92);

  border-radius: 16px;

  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.04);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;

}


.sg-summary-card:hover {

  transform:
    translateY(-4px);

  box-shadow:
    0 10px 25px rgba(43, 59, 129, 0.08);

}


.sg-history-card {

  cursor: pointer;

}


/* =========================================
   GOAL CARDS
========================================= */

.sg-card {

  background:
    var(--sg-card-bg);

  backdrop-filter:
    blur(10px);

  -webkit-backdrop-filter:
    blur(10px);

  border:
    1px solid var(--sg-border);

  border-radius: 18px;

  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.04);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;

}


.sg-card:hover {

  transform:
    translateY(-5px);

  box-shadow:
    0 12px 30px rgba(43, 59, 129, 0.1);

}


.sg-card-title {

  color:
    var(--sg-navy-blue);

  font-size:
    1.1rem;

}


/* =========================================
   PRIMARY BUTTON
========================================= */

.sg-primary-btn {

  background:
    var(--sg-navy-blue);

  color:
    #ffffff;

  border:
    none;

  border-radius:
    10px;

  font-weight:
    600;

  transition:
    all 0.25s ease;

}


.sg-primary-btn:hover {

  background:
    var(--sg-royal-blue);

  color:
    #ffffff;

  transform:
    translateY(-2px);

  box-shadow:
    0 6px 15px rgba(43, 59, 129, 0.2);

}


/* =========================================
   EDIT BUTTON
========================================= */

.sg-edit-btn {

  background:
    #eef3fb;

  color:
    var(--sg-navy-blue);

  border:
    none;

  font-weight:
    600;

  border-radius:
    8px;

  transition:
    all 0.2s ease;

}


.sg-edit-btn:hover {

  background:
    var(--sg-navy-blue);

  color:
    #ffffff;

}


/* =========================================
   DELETE BUTTON
========================================= */

.sg-delete-btn {

  background:
    transparent;

  color:
    #dc3545;

  border:
    1px solid #dc3545;

  font-weight:
    600;

  border-radius:
    8px;

  transition:
    all 0.2s ease;

}


.sg-delete-btn:hover {

  background:
    #dc3545;

  color:
    #ffffff;

}


/* =========================================
   PROGRESS BAR
========================================= */

.sg-progress-bg {

  width: 100%;

  height: 8px;

  background:
    #e9ecef;

  border-radius:
    20px;

  overflow: hidden;

}


.sg-progress-fill {

  height: 100%;

  background:
    var(--sg-royal-blue);

  border-radius:
    20px;

  transition:
    width 0.4s ease;

}


/* =========================================
   MODALS
========================================= */

.modal-content {

  background:
    rgba(255, 255, 255, 0.98);

}


.form-control {

  border:
    1px solid #dee2e6;

  border-radius:
    10px;

}


.form-control:focus {

  border-color:
    var(--sg-royal-blue);

  box-shadow:
    0 0 0 0.2rem rgba(58, 98, 182, 0.12);

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

  .sg-section {

    padding:
      50px 16px;

  }


  .sg-content-wrapper {

    max-width:
      100%;

  }


  .sg-header {

    flex-direction:
      column;

    align-items:
      flex-start !important;

    gap:
      20px;

  }


  .sg-header .sg-primary-btn {

    width:
      100%;

    justify-content:
      center;

  }


  .sg-title {

    font-size:
      1.6rem;

  }


  .sg-subtitle {

    font-size:
      0.8rem;

  }


  .sg-blob-1 {

    width:
      250px;

    height:
      250px;

  }


  .sg-blob-2 {

    width:
      300px;

    height:
      300px;

  }


  .sg-floating-icon {

    opacity:
      0.05;

  }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

  .sg-section {

    padding:
      35px 12px;

  }


  .sg-title {

    font-size:
      1.45rem;

  }


  .sg-summary-card {

    padding:
      18px !important;

  }

}

/* the end of the savings section */
/* *********************************************************** */

/* the start of the to buy section */
.to-buy-to-pay {
  --primary-color: #293681;
  --secondary-color: #eef2ff;
  --success-color: #10b981;
  --danger-color: #ef4444;
}

.to-buy-to-pay .dash-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.to-buy-to-pay .dash-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(41, 54, 129, 0.08);
}

.to-buy-to-pay .icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.to-buy-to-pay .bg-primary-light {
  background-color: #e0e7ff;
  color: #293681 !important;
}

.to-buy-to-pay .bg-success-light {
  background-color: #d1fae5;
}

.to-buy-to-pay .bg-danger-light {
  background-color: #fee2e2;
}

.to-buy-to-pay .custom-input {
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  background-color: #f8fafc;
  transition: all 0.3s;
}

.to-buy-to-pay .custom-input:focus {
  background-color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(41, 54, 129, 0.1);
}

.to-buy-to-pay .history-container {
  max-height: 400px;
  overflow-y: auto;
}

.to-buy-to-pay .history-container::-webkit-scrollbar {
  width: 6px;
}

.to-buy-to-pay .history-container::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.to-buy-to-pay .history-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.to-buy-to-pay .history-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.to-buy-to-pay .list-group-item {
  border: none;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  margin-bottom: 0.5rem;
  border-radius: 0.75rem !important;
  background: transparent;
  transition: background-color 0.2s;
}

.to-buy-to-pay .list-group-item:hover {
  background-color: rgba(248, 250, 252, 0.7);
}

.to-buy-to-pay .form-check-input {
  cursor: pointer;
}

.to-buy-to-pay .form-check-input:checked {
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.to-buy-to-pay .btn-delete-item {
  color: #94a3b8;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  transition: color 0.2s, transform 0.2s;
  cursor: pointer;
}

.to-buy-to-pay .btn-delete-item:hover {
  color: var(--danger-color);
  transform: scale(1.1);
}

.to-buy-to-pay .price-badge {
  font-weight: 700;
  color: #475569;
  background-color: #f1f5f9;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.to-buy-to-pay .is-done-text {
  text-decoration: line-through;
  color: #94a3b8 !important;
}

.to-buy-to-pay .is-done-badge {
  background-color: #d1fae5;
  color: var(--success-color);
}

/* the end of the to buy section */
/* إعداد الصفحة للظهور بالتدريج */
body {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}


/* ///////////////////////////// */

/* كلاس بيتم إضافته بالـ JS قبل الانتقال للصفحة الجديدة */
body.fade-out {
  opacity: 0;
}

html {
  /* بيخلي التمرير سلس جداً لما تضغط على أي رابط داخل الصفحة */
  scroll-behavior: smooth;
}

/* أنيميشن ظهور الصفحة ببطء وسلاسة */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
    /* تحريك خفيف لأعلى يدي إحساس ناعم جداً */
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* تطبيق تأثير الظهور الافتراضي على body أي صفحة تفتح */
body {
  animation: fadeIn 0.4s ease-out forwards;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* كلاس الاختفاء النعم الذي نضيفه بالـ JS قبل التنقل */
body.page-transitioning {
  opacity: 0;
  transform: translateY(-6px);
}


/* /////////////////////////////// *
/
/* 1. إزالة خلفية الـ body وجعلها شفافة تماماً */
body {
  background-color: transparent !important;
}

/* 2. جعل حاوي الأشكال والأيقونات يتمدد على كامل الشاشة وبدون معاوقة */
.bg-animations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* يضمن بقاء الأيقونات خلف كل العناصر */
  pointer-events: none; /* عشان تضغط على أزرارك براحتك من غير ما تضايقك الأيقونات */
  overflow: hidden;
}

/* 3. لو الـ Main Container واخد خلفية بيضاء شفافه */
.sg-section, 
.sg-content-wrapper {
  background: transparent !important;
}