html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 100px;
}

p, h1, h2, h3, h4, h5, th, td, a {
    color: #444444;
}

p {
    font-size: 1.2em;
}

.card {
    background-color: transparent;
    border: none;
}

.card-body {
    background-color: rgba(255, 255, 255, 0.6); /* Semi-transparent white */
    border-radius: 0.5rem;
}

.bg-info {
    background-color: rgba(20, 143, 119, 0.05) !important; /* 70% transparent #ef8a01 */
}

.card-title {
    font-size: 1.25rem;
}

.card h5 {
    color: #148f77; /* Adjust primary color if needed */
}

input[type="submit"] {
    /* Add any additional styling you need */
    margin-top: 10px;
}

.checkbox-label {
    margin-top: 10px;
}

.background-logo {
    position: fixed; /* Ensure it stays in place */
    top: 20%;
    left: 20%;
    right: 20%;
    bottom: 20%;
    background-image: url('/images/cp_bg.png'); /* Ensure path is correct */
    background-repeat: no-repeat;
    background-size: 40% auto; /* Reduce size to 20% of its original */
    background-position: center center;
    opacity: 0.1; /* Make the logo subtle */
    z-index: -1; /* Place it behind other content */
}

.progress {
    background-color: #f08a0080;
}

.progress-bar {
    background-color: #138e77;
}
/*new styling*/
/* ==================================
   Button Styling (btn-primary)
   ================================== */
.btn-primary {
    background-color: #148f77; /* Green */
    border-color: #148f77;
    color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    border-radius: 5px;
    transition: all 0.3s ease;
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active {
        background-color: #f08b04; /* Orange on hover */
        border-color: #f08b04;
        box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2); /* Stronger shadow */
        transform: translateY(-2px); /* Lift effect on hover */
    }

    /* Pulse animation for call-to-action buttons */
    .btn-primary.pulse {
        animation: pulse 2s infinite; /* Pulses every 2 seconds */
    }

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.5);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 15px 10px rgba(40, 167, 69, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* ==================================
   Link Styling
   ================================== */
a {
    color: #148f77; /* Green by default */
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

    a:hover, a:focus {
        color: #f08b04; /* Orange on hover */
        text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); /* Slight glow */
    }

    a:before {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: #f08b04;
        visibility: hidden;
        transform: scaleX(0);
        transition: all 0.3s ease;
    }

    a:hover:before {
        visibility: visible;
        transform: scaleX(1); /* Expanding underline on hover */
    }

/* ==================================
   Input Fields & Textboxes
   ================================== */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    border: 1px solid #ced4da;
    border-radius: 4px;
    /*padding: 8px;*/
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: all 0.3s ease;
}

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="password"]:focus,
    textarea:focus,
    select:focus {
        border-color: #148f77; /* Green border on focus */
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Stronger shadow on focus */
        outline: none;
    }

    input[type="text"]:hover,
    input[type="email"]:hover,
    input[type="password"]:hover,
    textarea:hover,
    select:hover {
        box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.15); /* Hover shadow */
    }

/* ==================================
   CheckBoxes Fields & Textboxes
   ================================== */

input[type="checkbox"]:checked {
    background-color: #f08a00; /* orange when checked */
    border-color: #ff8800; /* Orange border when checked */
}

input[type="radio"]:checked {
    background-color: #f08a00; /* orange when checked */
    border-color: #ff8800; /* Orange border when checked */
}

/* ==================================
   Navbar Styling
   ================================== */
.vertical-nav .nav-link {
    padding: 15px 20px; /* Adjust the padding to increase height */
    line-height: 2.5; /* Set line height to center the text vertically */
    color: #4e5459;
}

.navbar {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Navbar shadow */
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}

    .navbar:hover {
        box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15); /* Stronger on hover */
    }

/* Increase icon size */
.nav-link i {
    font-size: 1.5em; /* Adjust the size as needed */
    color: #4e5459;
}

/* Increase text size */
.nav-link {
    font-size: 1.2em; /* Adjust the size as needed */
}

.navbar-nav .nav-link {
    color: #148f77;
    transition: color 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        color: #f08b04; /* Orange on hover */
        text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); /* Link shadow */
    }

/* ==================================
   Form Group & Label Styling
   ================================== */
.form-group {
    margin-bottom: 15px;
    /*padding: 10px;
    border-radius: 4px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);*/ /* Subtle shadow */
    /*transition: box-shadow 0.3s ease;*/
}

/*.form-group:hover,
    input:focus + .form-group,
    textarea:focus + .form-group {
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);*/ /* More noticeable shadow */
/*}*/

label {
    font-weight: 600;
    color: #148f77; /* Green label */
    transition: color 0.3s ease;
}

input:focus + label,
textarea:focus + label {
    color: #f08b04; /* Orange on focus */
}

/* ==================================
   Card & Panel Styling
   ================================== */
.card, .panel {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Card shadow */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

    .card:hover, .panel:hover {
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2); /* Lift on hover */
        transform: translateY(-5px); /* Lift effect */
    }

/* ==================================
   Footer Styling
   ================================== */

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    color: white;
    padding: 20px;
    text-align: center;
}

footer {
    box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.1); /* Footer shadow */
    padding: 20px;
    background-color: #f8f9fa; /* Light grey background */
    color: #333;
}

    footer a {
        color: #148f77;
        transition: color 0.3s ease;
    }

        footer a:hover {
            color: #f08b04; /* Orange on hover */
        }



/* ==================================
   Favicon Styling
   ================================== */
/* Favicon styling for icons not in buttons or <a> tags */
.fas {
    color: #148f77; /* Green */
    transition: color 0.3s ease; /* Smooth transition */
}

    /* Hover effect for icons not in buttons or <a> tags */
    .fas:hover {
        color: #ff8800; /* Orange on hover */
    }

/* Specific rule to ignore icons within buttons or <a> tags */
button .fas,
a .fas {
    color: inherit; /* Keep the original button or link color */
    transition: none; /* Remove transition effect for button/link icons */
}

    button .fas:hover,
    a .fas:hover {
        color: inherit; /* Keep the original button or link color */
        transition: none; /* Remove transition effect for button/link icons */
    }

/* Specific rule to ignore icons within buttons or <a> tags */
nav .fas,
nav .fas:hover {
    color: #148f77; /* Keep the original button or link color */
    transition: color 0.3s ease; /* Remove transition effect for button/link icons */
}

/* ==================================
   tabbed menu Styling
   ================================== */

/* Default tab styling */
.nav-tabs .nav-link {
    color: #148f77; /* Green by default */
    transition: color 0.3s ease; /* Smooth transition */
}

    /* Hover effect: Green on hover */
    .nav-tabs .nav-link:hover {
        color: #148f77; /* Green on hover */
    }

    /* Active tab styling: Orange when active */
    .nav-tabs .nav-link.active {
        color: #f08a00; /* Orange for active tab */
    }


/* ==================================
   Client / Debtor Toggle Button Styling
   ================================== */
/* Custom switch container with a box around it */
.custom-switch-container {
    width: 200px; /* Adjust width of the box */
    padding: 5px 10px;
    background-color: #f8f9fa; /* Light background for the box */
    border-radius: 25px; /* Round the edges of the box */
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
}



/* ==================================
        Loaind Modal
   ================================== */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Make sure it's above everything */
}

/* The Modal Content */
.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    font-size: 18px;
    text-align: center;
}

/* ==================================
        tool tip
   ================================== */

.custom-switch-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.switch-label {
    margin: 0 10px;
}

.form-check {
    position: relative;
}

.custom-toggle {
    cursor: pointer;
}

.tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px; /* Increased padding for larger tooltip */
    border-radius: 5px;
    font-size: 16px; /* Increased font size */
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

    .tooltip.show {
        visibility: visible;
        opacity: 1;
    }
