/* ======================= Google Fonts & Global Variables ======================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #004080; /* Professional Blue */
    --secondary-color: #1a5d1a; /* Our Original Green for accents */
    --dark-text: #333333;
    --light-text: #666;
    --background-color: #ffffff;
    --light-grey-bg: #f8f9fa;
    --container-width: 1140px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* ======================= Basic Reset & Body Styles ======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* This is the NEW code */
body {
    font-family: 'Times New Roman', Times, serif; /* Changed font family */
    font-size: 14px; /* Added base font size */
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--dark-text);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

/* ======================= Top Bar ======================= */
.top-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .contact-info span {
    margin-right: 20px;
}

.top-bar .social-media a {
    color: #fff;
    margin-left: 15px;
    text-decoration: none;
}

.top-bar i {
    margin-right: 5px;
}

/* ======================= Header & Navigation ======================= */
.header {
    background: #fff;
    box-shadow: var(--box-shadow);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu ul {
    list-style: none;
    display: flex;
}

.nav-menu ul li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

/* ======================= Buttons ======================= */
.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-login:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #144814;
    transform: translateY(-2px);
}

/* ======================= Hero Section ======================= */
.hero {
    background: linear-gradient(rgba(0, 64, 128, 0.85), rgba(0, 64, 128, 0.85)), url('../images/hero-background.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 120px 0;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ======================= General Section Styling ======================= */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Two-column grid helper */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* ======================= About Us Section ======================= */
.about-us .section-title {
    text-align: left;
}

.about-us p {
    margin-bottom: 1rem;
    color: var(--light-text);
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}


/* ======================= Core Services Section ======================= */
.core-services {
    background-color: var(--light-grey-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.service-card p {
    color: var(--light-text);
}


/* ======================= Footer ======================= */
.footer {
    background-color: var(--primary-color);
    color: #e0e0e0;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: #e0e0e0;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-col i {
    margin-right: 8px;
}

.footer-bottom {
    border-top: 1px solid #1e5a9b;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}
.hero-carousel {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  color: #fff;
}

.carousel-container {
  position: relative;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  display: flex;
  animation: fade 1s ease-in-out;
}

@keyframes fade {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

.carousel-content {
  background: rgba(0, 0, 0, 0.55);
  padding: 30px;
  border-radius: 15px;
  max-width: 700px;
}

.carousel-content h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.carousel-content p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.btn-primary {
  background-color: #006b3c;
  color: #fff;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background-color: #00994d;
}

/* Controls */
.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
}

.carousel-controls span {
  cursor: pointer;
  font-size: 30px;
  color: #fff;
  transition: color 0.3s ease;
}

.carousel-controls span:hover {
  color: #00cc66;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-content h1 {
    font-size: 1.6rem;
  }
  .carousel-content p {
    font-size: 1rem;
  }
}
/* ======================= Animation Styles (Simplified for Visibility) ======================= */
/* This makes the cards visible by default, without animation */
.animate-on-scroll {
    opacity: 1;
    transform: none; /* Resets any transform properties */
}
/* ======================= Mission Vision Objective Section ======================= */
.mission-vision {
    padding: 60px 0; /* A little less padding */
    background-color: #f8f9fa; /* A very light grey background for the whole section */
}

.mvo-grid {
    display: grid; /* THIS IS THE KEY: Creates the side-by-side layout */
    grid-template-columns: repeat(3, 1fr); /* Creates 3 equal columns */
    gap: 30px; /* Space between the cards */
    align-items: stretch; 
}

.mvo-card {
    color: #fff; /* Makes the text white */
    padding: 40px 30px; /* Adds space inside the cards */
    border-radius: 25px; /* Creates the rounded corners */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content horizontally */
    text-align: center; /* Centers the text */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.mvo-card .mvo-icon {
    font-size: 2.5rem; /* Icon size */
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.2); /* Transparent white circle behind icon */
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mvo-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.mvo-card p {
    font-size: 1rem; /* Adjust font size if needed */
    line-height: 1.6;
}
/* =================================================================== */
/* ======================= Services Page Styles ======================= */
/* =================================================================== */

.page-header {
    background: linear-gradient(rgba(0, 64, 128, 0.9), rgba(0, 64, 128, 0.9)), url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

.services-page-content {
    padding: 80px 0;
    background-color: var(--light-grey-bg);
}

.services-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-plan-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* For the hover effect */
}

.service-plan-card:hover {
    transform: translateY(-10px); /* This makes the card "lift" on hover */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.service-plan-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-plan-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-plan-card p {
    color: var(--light-text);
    margin-bottom: 20px;
    flex-grow: 1; /* Ensures cards are same height even with different text length */
}

.features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.features-list li {
    margin-bottom: 10px;
    color: var(--dark-text);
}

.features-list li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* ======================= How to Join Section ======================= */
.how-to-join {
    padding: 80px 0;
}

.how-to-join .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    margin-top: 50px;
}

.how-to-join .step .step-number {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px auto;
}
/* =================================================================== */
/* ======================= Policy Page Styles ======================== */
/* =================================================================== */

.policy-content {
    padding: 80px 0;
    background-color: #fff;
}

.policy-section {
    margin-bottom: 60px; /* Space between Privacy Policy and Terms sections */
}

.policy-section h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-grey-bg);
}

.policy-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-top: 30px;
    margin-bottom: 15px;
}

.policy-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--light-text);
}

.policy-section ul {
    list-style: none; /* Remove default bullets */
    padding-left: 20px;
    margin-bottom: 15px;
}

.policy-section ul li {
    position: relative;
    padding-left: 25px; /* Space for the custom icon */
    margin-bottom: 10px;
    line-height: 1.8;
    color: var(--light-text);
}

/* Custom bullet points for a professional look */
.policy-section ul li::before {
    content: '\f058'; /* Font Awesome check-circle icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--secondary-color);
}
/* =================================================================== */
/* ======================= Contact Page Styles ======================= */
/* =================================================================== */

.contact-page-content {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Left column slightly smaller */
    gap: 50px;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.contact-details h3, .contact-form-container h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.info-item strong {
    display: block;
    color: var(--dark-text);
    margin-bottom: 3px;
}

.info-item p {
    color: var(--light-text);
}

/* WhatsApp Button Style */
.btn-whatsapp {
    display: inline-block;
    background-color: #25D366; /* Official WhatsApp Green */
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128C7E; /* Darker WhatsApp Green */
    transform: translateY(-3px);
}

.btn-whatsapp i {
    margin-right: 10px;
    font-size: 1.5rem;
    vertical-align: middle;
}

/* Contact Form Styles */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

.google-map {
    padding: 0;
}
/* =================================================================== */
/* ======================== Login Page Styles ======================== */
/* =================================================================== */

.login-body {
    background-color: var(--light-grey-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-box {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.login-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

.login-box h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.login-box p {
    color: var(--light-text);
    margin-bottom: 30px;
}

.login-form .form-group {
    text-align: left;
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.login-form label i {
    margin-right: 8px;
    color: var(--light-text);
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.login-form .form-options {
    text-align: right;
    margin-bottom: 20px;
}

.login-form .form-options a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.login-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

.back-to-site {
    margin-top: 30px;
}

.back-to-site a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-to-site a i {
    margin-right: 5px;
}
/* =================================================================== */
/* ===================== Registration Page Styles ==================== */
/* =================================================================== */

.register-container {
    max-width: 550px; /* Wider container for the registration form */
}

.login-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit; /* Use the same font as other inputs */
    font-size: 1rem;
    resize: vertical; /* Allow vertical resizing */
}

/* Style for the dividers in the form */
.form-divider {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
    line-height: 0.1em;
    margin: 30px 0;
}

.form-divider span {
    background: #fff;
    padding: 0 10px;
    color: var(--light-text);
    font-weight: 500;
}

.signup-link {
    margin-top: 20px;
    font-size: 0.95rem;
}

.signup-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}
/* =================================================================== */
/* =================== Enhanced Registration Styles ================== */
/* =================================================================== */

.register-container-large {
    max-width: 800px; /* Wider container for the new form */
}

/* Two-column layout for the form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 20px;
}

.login-form input[type="file"] {
    padding: 8px; /* Adjust padding for file input */
}

.login-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #fff;
}

.terms-group {
    display: flex;
    align-items: center;
    text-align: left;
}

.terms-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.terms-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
}

.terms-group a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
/* =================================================================== */
/* ======================= Dashboard Styles ========================== */
/* =================================================================== */

.dashboard-body {
    background-color: var(--light-grey-bg);
}

.dashboard-container {
    display: flex;
}

/* --- Sidebar --- */
.sidebar {
    width: 260px;
    background-color: var(--primary-color);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
    position: fixed;
    left: 0;
    top: 0;
}

.sidebar-logo a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: block;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    list-style: none;
    margin-top: 30px;
}

.sidebar-menu .menu-item a {
    display: flex;
    align-items: center;
    color: #e0e0e0;
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.sidebar-menu .menu-item a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-menu .menu-item.active a {
    background-color: var(--secondary-color);
    color: #fff;
    font-weight: 600;
}

.sidebar-menu .menu-item a i {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
    margin-right: 15px;
}

.sidebar-menu .logout {
    position: absolute;
    bottom: 20px;
    width: calc(100% - 40px); /* Adjusts for padding */
}

/* --- Main Content --- */
.main-content {
    margin-left: 260px; /* Same as sidebar width */
    width: calc(100% - 260px);
    padding: 30px;
}

/* --- Dashboard Header --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.header-title h1 { color: var(--primary-color); font-size: 2rem; }
.header-title p { color: var(--light-text); }

.header-user-info { display: flex; align-items: center; }
.user-avatar { width: 45px; height: 45px; border-radius: 50%; margin-right: 15px; }
.user-details { display: flex; flex-direction: column; }
.user-name { font-weight: 600; }
.user-role { font-size: 0.8rem; color: var(--light-text); }

/* --- Stat Cards --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.stat-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    box-shadow: var(--box-shadow);
}
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-right: 20px;
}
.stat-info .stat-title {
    display: block;
    color: var(--light-text);
    margin-bottom: 5px;
}
.stat-info .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-text);
}

/* --- Content Box & Table --- */
.content-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-top: 30px;
}
.box-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.box-header h3 { font-size: 1.4rem; }
.btn-view-all {
    background-color: var(--light-grey-bg);
    padding: 8px 15px;
    border-radius: 5px;
    color: var(--dark-text);
    text-decoration: none;
    font-size: 0.9rem;
}

.transactions-table { width: 100%; border-collapse: collapse; }
.transactions-table th, .transactions-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--light-grey-bg); }
.transactions-table th { color: var(--light-text); font-weight: 500; font-size: 0.9rem; }
.transactions-table td { color: var(--dark-text); }
.pill { padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.pill-success { background-color: #e5f9f0; color: #1a5d1a; }
.pill-warning { background-color: #fff0e8; color: #ff5b22; }
.status-completed, .status-approved { color: #1a5d1a; font-weight: 500; }
/* =================================================================== */
/* ===================== Notification Alert Styles =================== */
/* =================================================================== */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
    position: relative;
    border: 1px solid transparent;
}
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
/* =================================================================== */
/* ======================= Dashboard Enhancements ==================== */
/* =================================================================== */

/* New Sidebar Header */
.sidebar-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-logo {
    margin-bottom: 20px;
}
.sidebar-logo a {
    padding-bottom: 10px;
    border: none; /* Remove double border */
}
.sidebar-logo span {
    font-size: 0.8rem;
    color: #e0e0e0;
    letter-spacing: 1px;
}
.customer-info-badge {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    text-align: left;
    font-size: 0.9rem;
}
.customer-info-badge p {
    margin-bottom: 8px;
    color: #f4f4f4;
}
.customer-info-badge p:last-child {
    margin-bottom: 0;
}
.customer-info-badge i {
    margin-right: 8px;
    color: var(--secondary-color);
}
.customer-info-badge strong {
    color: #fff;
}

/* Transaction Status Styles */
.status-completed, .status-approved { 
    color: #1a5d1a; 
    font-weight: 500; 
}
.status-pending {
    color: #ff9800; /* Orange */
    font-weight: 500;
}
.status-rejected {
    color: #e74c3c; /* Red */
    font-weight: 500;
}
/* =================================================================== */
/* =================== Dashboard Mobile Menu Styles ================== */
/* =================================================================== */

/* Hamburger Icon - Hidden on Desktop by default */
.menu-toggle-btn {
    display: none; /* Will be shown in responsive.css */
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Overlay - Hidden on Desktop by default */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100; /* Sits below the sidebar but above content */
}
/* =================================================================== */
/* ======================== My Profile Page ========================== */
/* =================================================================== */
.profile-container {
    padding: 30px;
}
.profile-header {
    display: flex;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light-grey-bg);
    margin-bottom: 30px;
}
.profile-picture-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 25px;
    object-fit: cover;
    border: 4px solid var(--light-grey-bg);
}
.profile-name h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}
.profile-name p {
    color: var(--light-text);
    font-weight: 500;
}
.profile-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.details-section h3 {
    font-size: 1.2rem;
    color: var(--dark-text);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    margin-bottom: 20px;
}
.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.detail-item:last-child {
    border-bottom: none;
}
.detail-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-right: 15px;
}
/* =================================================================== */
/* =================== Profile Page Enhancements =================== */
/* =================================================================== */
.profile-actions {
    text-align: right;
    margin-bottom: 20px;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 10px 20px;
}
.btn-secondary:hover {
    background-color: #5a6268;
}

/* Print Specific Styles - Hides elements when printing */
@media print {
    body.dashboard-body {
        background-color: #fff;
    }
    .sidebar, .dashboard-header, .profile-actions, .footer {
        display: none;
    }
    .main-content {
        margin-left: 0;
        padding: 0;
    }
    .content-box {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    .profile-container {
         margin: 0;
    }
}
/* --- Header User Dropdown --- */
.header-user-info {
    position: relative;
}

.user-avatar-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-avatar-container .user-avatar {
    margin-right: 0; /* Remove margin if any */
}

.user-avatar-container i {
    margin-left: 8px;
    color: var(--light-text);
    transition: transform 0.3s;
}

.dropdown-menu {
    position: absolute;
    top: 60px; /* Position below the header */
    right: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 200px;
    overflow: hidden;
    z-index: 100;
    display: none; /* Hidden by default */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--dark-text);
    text-decoration: none;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background-color: var(--light-grey-bg);
}

.dropdown-menu a i {
    margin-right: 15px;
    color: var(--light-text);
}

.dropdown-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 5px 0;
}
/* =================================================================== */
/* ======================= Edit Profile Form ======================= */
/* =================================================================== */
.edit-profile-form h3 {
    font-size: 1.2rem;
    color: var(--dark-text);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 20px;
}
.edit-profile-form h3:first-of-type {
    margin-top: 0;
}
.edit-profile-form button {
    margin-top: 30px;
}
/* =================================================================== */
/* ===================== Change Password Page ====================== */
/* =================================================================== */
.change-password-container {
    max-width: 600px; /* A smaller container for a focused form */
    margin: 0 auto;
}
/* =================================================================== */
/* ============= Enhanced Form Field & Placeholder Styles ============ */
/* =================================================================== */
/* This targets forms within the dashboard content-box */
.content-box .form-group {
    position: relative; /* This is key for positioning the label */
    margin-bottom: 25px;
}

.content-box .form-group input[type="password"],
.content-box .form-group input[type="text"],
.content-box .form-group input[type="tel"],
.content-box .form-group input[type="email"],
.content-box .form-group input[type="number"], /* Added 'number' to target the amount fields */
.content-box .form-group input[type="date"],   /* Added 'date' to target the date fields */
.content-box .form-group select,
.content-box .form-group textarea {
    border: 2px solid #e0e0e0;
    background-color: #f9f9f9;
    padding: 18px 15px; /* INCREASED vertical padding */
    width: 100%;
    border-radius: 8px;
    font-size: 1.1rem; /* INCREASED font size */
    transition: border-color 0.3s ease;
}

/* Style for when the user clicks into a field */
.content-box .form-group input:focus,
.content-box .form-group select:focus,
.content-box .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color); /* Highlight with the main brand color */
}

/* The label styling */
.content-box .form-group label {
    position: absolute;
    left: 15px;
    top: 19px; /* ADJUSTED for new height */
    color: #999;
    background-color: #f9f9f9;
    padding: 0 5px;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* The magic animation: when the input is in focus OR has text in it */
.content-box .form-group input:focus + label,
.content-box .form-group input:not(:placeholder-shown) + label,
.content-box .form-group textarea:focus + label,
.content-box .form-group textarea:not(:placeholder-shown) + label {
    top: -10px; /* Move the label up */
    font-size: 0.85rem; /* Make it smaller */
    color: var(--primary-color); /* Change color to match the border highlight */
}
/* Note: The select element is handled separately as it doesn't use placeholders */
.content-box .form-group select:focus + label {
     top: -10px;
    font-size: 0.85rem;
    color: var(--primary-color);
}
/* =================================================================== */
/* ======================= Pagination Styles ======================= */
/* =================================================================== */
.pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}
.pagination a {
    color: var(--primary-color);
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 5px;
}
.pagination a.active {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}
.pagination a:hover:not(.active) {
    background-color: #ddd;
}
/* =================================================================== */
/* =================== Enhanced Sidebar Menu Styles ================ */
/* =================================================================== */
.sidebar-menu .menu-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 25px 10px 10px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
}

.sidebar-menu .menu-category:first-of-type {
    margin-top: 0;
    border-top: none;
    padding-top: 15px;
}
/* =================================================================== */
/* ===================== FINAL UNIFIED SIDEBAR CSS =================== */
/* =================================================================== */

/* --- Main Sidebar Container --- */
.sidebar {
    width: 260px;
    background-color: var(--primary-color);
    color: #fff;
    height: 100vh; /* Set a fixed height */
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column; /* Stack children vertically */
    z-index: 1001;
}

/* --- Sidebar Header (Non-scrolling part) --- */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0; /* Prevents this from shrinking */
}
/* ... (all the other .sidebar-header, .sidebar-logo, .customer-info-badge rules remain the same) ... */
.sidebar-logo a { color: #fff; font-size: 1.5rem; font-weight: 700; text-decoration: none; display: block; text-align: center; }
.sidebar-logo span { font-size: 0.8rem; color: #e0e0e0; letter-spacing: 1px; display: block; text-align: center; margin-top: 5px; }
.customer-info-badge { background-color: rgba(0, 0, 0, 0.2); border-radius: 8px; padding: 15px; text-align: left; font-size: 0.9rem; margin-top: 20px; }
.customer-info-badge p { margin-bottom: 8px; color: #f4f4f4; }
.customer-info-badge p:last-child { margin-bottom: 0; }
.customer-info-badge i { margin-right: 8px; color: var(--secondary-color); }
.customer-info-badge strong { color: #fff; }


/* --- Main Menu List (The SCROLLABLE part) --- */
.sidebar-menu {
    list-style: none;
    padding: 15px;
    margin: 0;
    overflow-y: auto; /* <<< KEY: Make this specific element scrollable */
    flex-grow: 1; /* <<< KEY: Allows it to fill the remaining space */
    min-height: 0; /* <<< KEY: The flexbox fix */
}

/* Custom Scrollbar Styling */
.sidebar-menu::-webkit-scrollbar { width: 8px; }
.sidebar-menu::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1); }
.sidebar-menu::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 4px; }
.sidebar-menu::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); }

/* --- Menu Category Headers --- */
.sidebar-menu .menu-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 25px 0 10px 10px;
}
.sidebar-menu .menu-category:first-of-type {
    padding-top: 10px;
}

/* --- Clickable Menu Items --- */
.sidebar-menu .menu-item a {
    display: flex;
    align-items: center;
    color: #e0e0e0;
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}
.sidebar-menu .menu-item a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.sidebar-menu .menu-item.active a {
    background-color: var(--secondary-color);
    color: #fff;
    font-weight: 600;
}
.sidebar-menu .menu-item a i {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
    margin-right: 15px;
}

/* --- Logout Button --- */
.sidebar-menu .logout {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* =================================================================== */
/* ====================== Deposit Page Enhancements ================== */
/* =================================================================== */
.deposit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 992px) {
    .deposit-grid {
        grid-template-columns: 1fr 1fr; /* Two columns on larger screens */
    }
}

.suggested-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
}
.amount-chip {
    background-color: #eaf6ff;
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    border: 1px solid #cce4ff;
}
.amount-chip:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
/* =================================================================== */
/* ==================== History Page Enhancements ==================== */
/* =================================================================== */
.pill-info {
    background-color: #eaf6ff;
    color: #007bff;
}
.pill-secondary {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #ddd;
}

.btn-receipt {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: #eaf6ff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}
.btn-receipt:hover {
    background-color: #cce4ff;
}
.btn-receipt i {
    margin-right: 8px;
}
.transactions-table td small {
    color: var(--light-text);
    font-size: 0.85rem;
}
.transactions-table td strong {
    font-weight: 600;
    color: var(--primary-color);
}
.stat-pending {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #ff9800; /* Orange color to indicate "pending" */
    font-weight: 500;
}
/* =================================================================== */
/* ===================== Withdrawal Page Styles ==================== */
/* =================================================================== */
.withdrawal-container {
    max-width: 600px;
    margin: 0 auto;
}
.available-balance-display {
    text-align: center;
    background-color: var(--light-grey-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}
.available-balance-display small {
    color: var(--light-text);
    font-weight: 500;
}
.available-balance-display h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin: 5px 0 0 0;
}
/* =================================================================== */
/* ============= CUSTOMER REPORT PAGE & TABLE STYLES ================= */
/* =================================================================== */

/* --- Report Filter Bar --- */
.report-filters {
    padding: 20px;
    background-color: #f8f9fa;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.report-filters form {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px;
    font-weight: 500;
}

.filter-group select {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    min-width: 180px;
}

.filter-group .btn-secondary {
    padding: 10px 20px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px; /* Align with select input */
    text-decoration: none;
}
.filter-group .btn-secondary:hover {
    background-color: #5a6268;
}

/* --- Report Summary Box --- */
.report-summary {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.summary-item {
    text-align: left;
    padding-right: 25px;
}

.summary-item .label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 3px;
}

.summary-item .value,
.summary-item .value-gross,
.summary-item .value-net,
.summary-item .value-debit {
    font-size: 1.3rem;
    font-weight: 600;
}

.summary-item .value-net { color: #28a745; }
.summary-item .value-gross { color: #007bff; }
.summary-item .value-debit { color: #dc3545; }


/* --- Improved Table Styling for Reports --- */
/* This will override the default .transactions-table if needed */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.transactions-table th,
.transactions-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.transactions-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.transactions-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Specific styles for amount columns */
.amount-gross {
    color: #6c757d;
    font-size: 0.9em;
    margin-right: 5px;
}
.amount-net,
.amount-debit {
    font-weight: 600;
}

.amount-net { color: #28a745; }
.amount-debit { color: #dc3545; }

/* =================================================================== */
/* =================== LOAN APPLICATION PAGE STYLES ================== */
/* =================================================================== */

.eligibility-notice {
    text-align: center;
    padding: 30px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    color: #856404;
}
.eligibility-notice .fas {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.eligibility-notice h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.loan-calculator-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
}
.display-item {
    padding: 10px;
}
.display-item span {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}
.display-item strong {
    font-size: 1.4rem;
    color: #333;
}
.display-item.final-limit strong {
    color: var(--primary-color, #28a745);
}

.loan-details-summary {
    background-color: #e9f5e9;
    border-left: 4px solid #28a745;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}
.loan-details-summary p {
    margin: 5px 0;
    font-size: 1rem;
}
.loan-details-summary span {
    font-weight: 600;
}

.form-group.terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.form-group.terms input[type="checkbox"] {
    margin-top: 5px;
    width: 18px;
    height: 18px;
}
/* =================================================================== */
/* =================== LOAN APPLICATION WIZARD MODAL ================= */
/* =================================================================== */

.loan-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loan-modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--dark-text);
}
.step-indicator {
    font-size: 0.9rem;
    color: #fff;
    background-color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 15px;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Step 1: Terms Styling */
#step-1-terms .modal-body {
    max-height: 400px; /* Make the terms scrollable */
}
#step-1-terms h4 {
    margin-top: 0;
}
#step-1-terms ul {
    padding-left: 20px;
}
#step-1-terms li {
    margin-bottom: 10px;
}

/* Start Application Button Styling */
.start-loan-process {
    padding: 30px;
    text-align: center;
}
.start-loan-process p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

/* Form Grid for Step 3 */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
}
/* =================================================================== */
/* ============== LOAN WIZARD STEP 3 (FINAL FORM) STYLES ============= */
/* =================================================================== */

#step-3-form h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    color: var(--dark-text);
}
#step-3-form h4:first-of-type {
    margin-top: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.payment-details {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-top: 10px;
}
.terms-content {
    padding: 20px;
    max-height: 450px; /* Make the content scrollable */
    overflow-y: auto;
    border: 1px solid #eee;
    background-color: #fdfdfd;
    margin-bottom: 20px;
}
.terms-content ul { padding-left: 20px; }
.terms-content li { margin-bottom: 10px; }
.terms-footer {
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}
/*
  MODIFIED RULE:
  This tells the label to "float" up if the input is focused
  OR if it already contains valid text.
*/
.form-group input:focus + label,
.form-group input:valid + label {
    top: -10px; /* Example value - adjust to match your design */
    left: 5px;  /* Example value */
    font-size: 0.8em; /* Example value */
    color: #000; /* Example value */
    /* Make sure these values match your existing :focus style */
}
/* =================================================================== */
/* ============== LOAN APPLICATION FORM DEDICATED STYLES ============= */
/* =================================================================== */

/* Use the ID to target our specific form */
#loanApplicationForm h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 1.2rem;
    color: var(--dark-text);
}
#loanApplicationForm h4:first-of-type {
    margin-top: 0;
}

/* This is the main fix. We define a new style for our form groups. */
#loanApplicationForm .form-group-classic {
    margin-bottom: 20px;
}

#loanApplicationForm .form-group-classic label {
    display: block;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    font-size: 14px;
}

#loanApplicationForm .form-group-classic input[type="text"],
#loanApplicationForm .form-group-classic input[type="email"],
#loanApplicationForm .form-group-classic input[type="tel"],
#loanApplicationForm .form-group-classic input[type="number"],
#loanApplicationForm .form-group-classic select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
}

/* Style for readonly fields to make them look "locked" */
#loanApplicationForm .form-group-classic input[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
}

#loanApplicationForm .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
#loanApplicationForm .form-group-classic.full-width {
    grid-column: 1 / -1;
}
@media (max-width: 600px) {
    #loanApplicationForm .form-grid {
        grid-template-columns: 1fr;
    }
}
/* Styling for the final agreement checkbox */
#loanApplicationForm .terms-agreement {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
}
#loanApplicationForm .terms-agreement input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 5px;
    flex-shrink: 0;
}
#loanApplicationForm .terms-agreement label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.95rem;
}
#loanApplicationForm .terms-agreement a {
    text-decoration: underline;
    color: var(--primary-color);
}
/* =================================================================== */
/* ===================== LOAN HISTORY PAGE STYLES ==================== */
/* =================================================================== */

.loan-history-item {
    margin-bottom: 25px;
}

.loan-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.summary-details h3 {
    margin-top: 0;
    color: var(--primary-color);
}
.summary-details p {
    margin: 5px 0;
    font-size: 0.95rem;
}

.summary-status span {
    font-size: 1rem;
    padding: 8px 15px;
}

.summary-actions {
    display: flex;
    gap: 10px;
}
.summary-actions .btn {
    font-size: 0.9rem;
    padding: 8px 12px;
}

.repayment-schedule {
    padding: 0 20px 20px 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.repayment-schedule h4 {
    margin-top: 20px;
    margin-bottom: 15px;
}

/* General style for no data messages */
.no-data {
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
    color: #6c757d;
}
/* Style for disabled sidebar menu items */
.sidebar-menu .menu-item.disabled > a {
    color: #8a99b0; /* A muted text color */
    cursor: not-allowed;
    background-color: transparent;
}
.sidebar-menu .menu-item.disabled > a:hover {
    color: #8a99b0;
    background-color: transparent; /* Prevent hover effect */
}
/* =================================================================== */
/* =================== LOAN PAYMENT OPTIONS STYLES =================== */
/* =================================================================== */

.loan-payment-options {
    padding: 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}
.loan-payment-options h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--dark-text);
}
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.option-card {
    display: block;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}
.option-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.option-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}
.option-amount {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 10px 0;
}
.option-desc {
    font-size: 0.85rem;
    color: #6c757d;
}
/* =================================================================== */
/* =================== LOAN PAYMENT SUMMARY STYLES =================== */
/* =================================================================== */

.payment-summary {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.payment-summary .summary-item {
    margin-bottom: 15px;
}
.payment-summary .summary-item:last-child {
    margin-bottom: 0;
}

.payment-summary .label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.payment-summary .value {
    font-size: 1.1rem;
    font-weight: 500;
}

.payment-summary .value-highlight {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}
/* Menu toggle button */
.menu-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 768px) {
    .menu-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}