/* CSS Reset-like Basic Styles */
      
      body {
        background-color: #0dccff;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 800'%3E%3Cg %3E%3Cpath fill='%2336deff' d='M486 705.8c-109.3-21.8-223.4-32.2-335.3-19.4C99.5 692.1 49 703 0 719.8V800h843.8c-115.9-33.2-230.8-68.1-347.6-92.2C492.8 707.1 489.4 706.5 486 705.8z'/%3E%3Cpath fill='%2360edff' d='M1600 0H0v719.8c49-16.8 99.5-27.8 150.7-33.5c111.9-12.7 226-2.4 335.3 19.4c3.4 0.7 6.8 1.4 10.2 2c116.8 24 231.7 59 347.6 92.2H1600V0z'/%3E%3Cpath fill='%2389f7ff' d='M478.4 581c3.2 0.8 6.4 1.7 9.5 2.5c196.2 52.5 388.7 133.5 593.5 176.6c174.2 36.6 349.5 29.2 518.6-10.2V0H0v574.9c52.3-17.6 106.5-27.7 161.1-30.9C268.4 537.4 375.7 554.2 478.4 581z'/%3E%3Cpath fill='%23b3feff' d='M0 0v429.4c55.6-18.4 113.5-27.3 171.4-27.7c102.8-0.8 203.2 22.7 299.3 54.5c3 1 5.9 2 8.9 3c183.6 62 365.7 146.1 562.4 192.1c186.7 43.7 376.3 34.4 557.9-12.6V0H0z'/%3E%3Cpath fill='%23DCFFFE' d='M181.8 259.4c98.2 6 191.9 35.2 281.3 72.1c2.8 1.1 5.5 2.3 8.3 3.4c171 71.6 342.7 158.5 531.3 207.7c198.8 51.8 403.4 40.8 597.3-14.8V0H0v283.2C59 263.6 120.6 255.7 181.8 259.4z'/%3E%3Cpath fill='%23e3fffe' d='M1600 0H0v136.3c62.3-20.9 127.7-27.5 192.2-19.2c93.6 12.1 180.5 47.7 263.3 89.6c2.6 1.3 5.1 2.6 7.7 3.9c158.4 81.1 319.7 170.9 500.3 223.2c210.5 61 430.8 49 636.6-16.6V0z'/%3E%3Cpath fill='%23eafffe' d='M454.9 86.3C600.7 177 751.6 269.3 924.1 325c208.6 67.4 431.3 60.8 637.9-5.3c12.8-4.1 25.4-8.4 38.1-12.9V0H288.1c56 21.3 108.7 50.6 159.7 82C450.2 83.4 452.5 84.9 454.9 86.3z'/%3E%3Cpath fill='%23f1ffff' d='M1600 0H498c118.1 85.8 243.5 164.5 386.8 216.2c191.8 69.2 400 74.7 595 21.1c40.8-11.2 81.1-25.2 120.3-41.7V0z'/%3E%3Cpath fill='%23f8ffff' d='M1397.5 154.8c47.2-10.6 93.6-25.3 138.6-43.8c21.7-8.9 43-18.8 63.9-29.5V0H643.4c62.9 41.7 129.7 78.2 202.1 107.4C1020.4 178.1 1214.2 196.1 1397.5 154.8z'/%3E%3Cpath fill='%23FFFFFF' d='M1315.3 72.4c75.3-12.6 148.9-37.1 216.8-72.4h-723C966.8 71 1144.7 101 1315.3 72.4z'/%3E%3C/g%3E%3C/svg%3E");
        background-attachment: fixed;
        background-size: cover;
        display: flex;
        flex-direction: column;
        font-family: sans-serif;
      }
      
      /* Message counter styling */
      .message-counter {
        background: rgba(255,255,255,0.2);
        padding: 8px 5px;
        border-radius: 6px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      }
      
      .message-counter:hover {
        background: rgba(255,255,255,0.3);
        transform: translateY(-2px);
      }
      
      .message-counter span {
        font-weight: bold;
        font-size: 1.1em;
      }
      
      footer {
        background-color: #b4feff;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'  viewBox='0 0 1600 800'%3E%3Cg fill-opacity='0.15'%3E%3Cpath fill='%23bcffff' d='M486 705.8c-109.3-21.8-223.4-32.2-335.3-19.4C99.5 692.1 49 703 0 719.8V800h843.8c-115.9-33.2-230.8-68.1-347.6-92.2C492.8 707.1 489.4 706.5 486 705.8z'/%3E%3Cpath fill='%23c4ffff' d='M1600 0H0v719.8c49-16.8 99.5-27.8 150.7-33.5c111.9-12.7 226-2.4 335.3 19.4c3.4 0.7 6.8 1.4 10.2 2c116.8 24 231.7 59 347.6 92.2H1600V0z'/%3E%3Cpath fill='%23ccfffe' d='M478.4 581c3.2 0.8 6.4 1.7 9.5 2.5c196.2 52.5 388.7 133.5 593.5 176.6c174.2 36.6 349.5 29.2 518.6-10.2V0H0v574.9c52.3-17.6 106.5-27.7 161.1-30.9C268.4 537.4 375.7 554.2 478.4 581z'/%3E%3Cpath fill='%23d4fffe' d='M0 0v429.4c55.6-18.4 113.5-27.3 171.4-27.7c102.8-0.8 203.2 22.7 299.3 54.5c3 1 5.9 2 8.9 3c183.6 62 365.7 146.1 562.4 192.1c186.7 43.7 376.3 34.4 557.9-12.6V0H0z'/%3E%3Cpath fill='%23DCFFFE' d='M181.8 259.4c98.2 6 191.9 35.2 281.3 72.1c2.8 1.1 5.5 2.3 8.3 3.4c171 71.6 342.7 158.5 531.3 207.7c198.8 51.8 403.4 40.8 597.3-14.8V0H0v283.2C59 263.6 120.6 255.7 181.8 259.4z'/%3E%3Cpath fill='%23e3fffe' d='M1600 0H0v136.3c62.3-20.9 127.7-27.5 192.2-19.2c93.6 12.1 180.5 47.7 263.3 89.6c2.6 1.3 5.1 2.6 7.7 3.9c158.4 81.1 319.7 170.9 500.3 223.2c210.5 61 430.8 49 636.6-16.6V0z'/%3E%3Cpath fill='%23eafffe' d='M454.9 86.3C600.7 177 751.6 269.3 924.1 325c208.6 67.4 431.3 60.8 637.9-5.3c12.8-4.1 25.4-8.4 38.1-12.9V0H288.1c56 21.3 108.7 50.6 159.7 82C450.2 83.4 452.5 84.9 454.9 86.3z'/%3E%3Cpath fill='%23f1ffff' d='M1600 0H498c118.1 85.8 243.5 164.5 386.8 216.2c191.8 69.2 400 74.7 595 21.1c40.8-11.2 81.1-25.2 120.3-41.7V0z'/%3E%3Cpath fill='%23f8ffff' d='M1397.5 154.8c47.2-10.6 93.6-25.3 138.6-43.8c21.7-8.9 43-18.8 63.9-29.5V0H643.4c62.9 41.7 129.7 78.2 202.1 107.4C1020.4 178.1 1214.2 196.1 1397.5 154.8z'/%3E%3Cpath fill='%23FFFFFF' d='M1315.3 72.4c75.3-12.6 148.9-37.1 216.8-72.4h-723C966.8 71 1144.7 101 1315.3 72.4z'/%3E%3C/g%3E%3C/svg%3E");
        background-attachment: fixed;
        background-size: cover;
        padding: 2rem 0;
      }      /* --- Profile Picture Styling --- */
      .profile-pic {
        width: 100%; /* Take width of container */
        height: 100%; /* Take height of container */
        object-fit: cover; /* Covers the area while maintaining aspect ratio */
        border-radius: 50%; /* Creates a perfect circle */
        display: block;
        margin: 0 auto;
        border: 2px solid #0066cc; /* Add a nice border */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
        max-width: 100%; /* Ensure image doesn't overflow */
        max-height: 100%; /* Ensure image doesn't overflow */
      }
      
      /* Ensure the figure container constrains the image properly */
      figure.image.is-128x128 {
        width: 128px;
        height: 128px;
        margin: 0 auto;
        overflow: hidden; /* Hide any overflow */
      }
      
      /* Additional constraint for profile pictures in update form */
      .profile-preview {
        width: 128px;
        height: 128px;
        margin: 0 auto;
        position: relative;
        overflow: hidden; /* Important: Hide any overflow */
      }
      
      .profile-preview figure.image {
        position: relative;
        width: 100%;
        height: 100%;
        margin: 0 auto;
      }
      
      /* Ensure responsive behavior */
      @media screen and (max-width: 768px) {
        figure.image.is-128x128 {
          width: 100px;
          height: 100px;
        }
      }
      
      #services {
        min-height: 80vh;
        padding-top: 2rem;
        padding-bottom: 2rem;
      }
      .box,
      .table-container {
        font-size: 1rem; /* Default font size */
      }
      
      /* Adjust font size for smaller screens */
      @media screen and (max-width: 768px) {
        .box,
        .table-container {
          font-size: 0.85rem; /* Smaller font for tablets */
        }
      }
      
      @media screen and (max-width: 480px) {
        .box,
        .table-container {
          font-size: 0.7rem; /* Even smaller font for mobile phones */
        }
      }
      
body.slide-menu-open::before { /* Hide backdrop on desktop if it was ever applied */
    display: none;
}
.debit {
    color: red;
}
      .credit {
        color: green;
      }
      .share {
        color: blue;
      }
      
      /* --- Footer Logo --- */
      .logo {
        max-width: 300px; /* Limit logo width in the footer */
        min-height: 60px;
        height: auto; /* Maintain aspect ratio */
      }
      
      .loan-status-healthy {
        color: #28a745;
        font-weight: bold;
      }
      
      .loan-status-arrears {
        color: #dc3545;
        font-weight: bold;
      }
      
      .loan-status-other {
        color: #6c757d;
        font-weight: bold;
      }
      
      .loan-status-icon {
        margin-right: 5px;
      }
      .footer-nav {
        margin: auto;
        display: flex;
        justify-content: center; /* Center the content horizontally */
      }
      .footer-nav a {
        color: black;
      }
      .footer-nav a:not(:last-child)::after {
        content: '|';
        margin: 0 10px;
      }
      .footer-column-divider {
        border-right: 1px solid #ccc; /* light grey */
        padding-right: 10px; /* spacing from the line */
        padding-left: 10px;
      }
      
      .footer-button-transparent {
        background-color: transparent;
        border: 1px solid #28a745;
        color: #28a745;
        transition: background-color 0.3s, color 0.3s;
      }
      
      .footer-button-transparent:hover {
        background-color: #28a745; /* A light grey on hover */
        color: white;
        transition: background-color 0.3s, color 0.3s;
      }
      /* --- PASA Sacco Navy Blue/White Theme --- */
      :root {
        --pasa-navy: #003366;
        --pasa-blue: #0dccff;
        --pasa-white: #fff;
        --pasa-grey: #f5f7fa;
      }
      .navbar, .footer, .progress-bar-row {
        background-color: var(--pasa-white) !important;
        color: var(--pasa-white) !important;
      }
      .button.is-primary, .progress-bar-row .progress-step.is-active {
        background-color: var(--pasa-navy) !important;
        color: var(--pasa-white) !important;
        border: none;
      }
      .progress-bar-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
        margin-bottom: 1.5rem;
      }
      .progress-step {
        flex: 1;
        text-align: center;
        position: relative;
        color: var(--pasa-white);
        font-weight: 500;
        opacity: 0.7;
      }
      .progress-step.is-active {
        opacity: 1;
        font-weight: bold;
        border-bottom: 3px solid var(--pasa-blue);
      }
      .progress-step:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        width: 100%;
        height: 3px;
        background: linear-gradient(to right, var(--pasa-navy), var(--pasa-blue));
        z-index: 0;
        transform: translateY(-50%);
      }
      .progress-step .icon {
        margin-bottom: 0.25rem;
      }
      /* --- Bulma Notification Custom Colors --- */
      .notification.is-info, .notification.is-primary {
        background-color: var(--pasa-navy) !important;
        color: var(--pasa-white) !important;
      }
      .notification.is-warning {
        background-color: #ffe082 !important;
        color: #333 !important;
      }
      .notification.is-danger { 
        background-color: #ff5252 !important;
        color: var(--pasa-white) !important;
      }
      /* Collapsible messages section */
      .messages-section {
        background: var(--pasa-grey);
        border-radius: 0.5rem;
        margin-bottom: 1.5rem;
        padding: 1rem;
      }
      .messages-toggle {
        cursor: pointer;
        color: var(--pasa-navy);
        font-weight: bold;
      }
      .messages-thread {
        margin-top: 1rem;
      }





/* 
 * Loan Application Progress Bar Styles
 * Designed for the loan application flow to show stages with icons
 */

/* 
 * SACCO Button Styles - IMPORTANT DOCUMENTATION
 * 
 * Throughout the entire site, only two button styles should be used:
 * 
 * 1. Primary Button (.sacco-button-primary)
 *    - White text on navy background (#003366)
 *    - Use for primary actions and call-to-actions
 *    
 * 2. Secondary Button (.sacco-button-secondary)
 *    - Navy text (#003366) on white background with navy border
 *    - Use for secondary actions like "Cancel", "Back", etc.
 *
 * BOTH buttons can be used with or without Font Awesome icons.
 * Do NOT create custom button styles or use other color combinations.
 */

.sacco-button-primary {
  background-color: #003366 !important;
  color: white !important;
  border-color: #003366 !important;
}

.sacco-button-secondary {
  background-color: white !important;
  color: #003366 !important;
  border-color: #003366 !important;
}

.progress-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 2rem 0;
  position: relative;
  padding: 0 1rem;
}

/* Line connecting the steps */
.progress-bar-row:before {
  content: '';
  position: absolute;
  height: 3px;
  background-color: #e0e0e0;
  top: 25px;
  left: 50px;
  right: 50px;
  z-index: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
  flex: 1;
  max-width: 120px;
}

.progress-step .icon {
  background-color: #e0e0e0;
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
}

/* Active state */
.progress-step.is-active .icon {
  background-color: #3498db;
}

/* Completed state */
.progress-step:has(.is-success) .icon {
  background-color: #48c774;
}

/* Rejected state */
.progress-step:has(.is-danger) .icon {
  background-color: #f14668;
}

.progress-step div {
  font-size: 0.85rem;
  margin: 0.25rem 0;
  font-weight: 500;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
  .progress-bar-row {
    overflow-x: auto;
    padding-bottom: 1rem;
  }
  .progress-step {
    min-width: 100px;
  }
}

/* Fallback for browsers that don't support :has() selector */
.progress-step .icon.completed {
  background-color: #48c774;
}

.progress-step .icon.rejected {
  background-color: #f14668;
}
