html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.main-container { 
    min-height: calc(100vh - 100px); /* Adjust 100px based on your footer height */
    position: relative;
}

.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

a.nav-link {
    font-weight: 500;
}

label {
    font-weight: 500;
    color: #4a4949;
}

.modal-body p {
    color: #4a4949;
}

.select2-container {
    width: 100% !important;
    z-index: 1060 !important;
}

#gc-top {
    margin-top: 6rem !important;
}

/* Table css */
/* General Card Styles */
.pcards {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* Card Header Styling */
.pcardheader {
    background-color: #007bff;
    color: #fff;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
}

/* Table Header Styling */
th {
    background-color: #f4f4f4;
    color: #333;
    padding: 15px;
    font-weight: 600;
    text-align: left;
    border-radius: 8px 8px 0 0; /* Border radius for the header cells */
}

/* Table Cell Styling */
td {
    padding: 12px 15px;
    color: #555;
    text-align: left;
}

/* Table Row Hover Effect */
tr:hover {
    background-color: #f9f9f9;
    cursor: pointer;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .pcardheader h5 {
        font-size: 16px;
    }

    th,
    td {
        font-size: 12px;
        padding: 10px;
    }
}

/*  model header*/
.modal-header {
    padding: 0.25rem 0.5rem !important;
    background: rgb(29, 114, 12);
    background: linear-gradient(
        90deg,
        rgba(29, 114, 12, 1) 0%,
        rgba(29, 148, 6, 1) 35%,
        rgba(29, 114, 12, 1) 100%
    );
    color: #fff;
}

#registerModal .modal-dialog.modal-l {
    max-width: 60%; /* Adjust the width as needed */
}

#createProjectModal .modal-dialog.modal-l {
    max-width: 70%; /* Adjust the width as needed */
}

/* milestone add modal */
#milestoneModal .modal-header {
    max-width: 100%; /* Adjust the width as needed */
    background: rgb(114, 12, 83);
    background: linear-gradient(
        90deg,
        rgb(114, 12, 105) 0%,
        rgb(148, 6, 105) 35%,
        rgb(114, 12, 109) 100%
    );
    color: #fff;
}

/*  login modal css for boxes */
.logincat-card {
    width: 90%;
    background: #fff;
    border-radius: 50px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px; /* Thin padding inside the parent */
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}

/* Add slight hover effect on the parent container */
.logincat-card:hover {
    box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.2);
}

/* Custom class for the login options */
.custom-login-option {
    flex: 1; /* Makes each option take up equal space */
    text-align: center;
    position: relative;
    padding: 8px;
    height: 60px;
}

/* Custom class for labels to ensure proper alignment */
.custom-login-label {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

/* Hover effect for login options */
.custom-login-label:hover {
    background: rgba(23, 90, 26, 0.2);
    transform: scale(1.05);
}

/* Styles for selected option */
input[type="radio"]:checked + .custom-login-label {
    background: #175a1a;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.5);
    transform: scale(1.08);
    border-radius: 50px;
}

/* Remove underline effect */
input[type="radio"]:checked + .custom-login-label::after {
    display: none;
}

/* Registeration form */
/* Change styling when the input is selected */
input[type="radio"]:checked + label {
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.5); /* Green shadow for emphasis */
    border-radius: 8px; /* Rounded corners */
    color: #211f1b; /* Text color remains dark */
    border: 1px solid #4caf50; /* Optional: Add a subtle border */
}

/* Target the icon inside the label when the input is checked */
input[type="radio"]:checked + label i {
    color: #4caf50; /* Change icon color to green */
}

/* Target the text inside the label when the input is checked */
input[type="radio"]:checked + label div {
    color: #fff; /* Change text color to green */
}

/* livewire icon */

/* livewire icon */
.list-inline-item img,
svg {
    width: 20px !important;
}

span.relative.inline-flex.items-center.px-4.py-2.text-sm.font-medium.text-gray-500.bg-white.border.border-gray-300.cursor-default.leading-5.rounded-md.dark\:text-gray-600.dark\:bg-gray-800.dark\:border-gray-600 {
    display: none !important;
}

a.relative.inline-flex.items-center.px-4.py-2.ml-3.text-sm.font-medium.text-gray-700.bg-white.border.border-gray-300.leading-5.rounded-md.hover\:text-gray-500.focus\:outline-none.focus\:ring.ring-gray-300.focus\:border-blue-300.active\:bg-gray-100.active\:text-gray-700.transition.ease-in-out.duration-150.dark\:bg-gray-800.dark\:border-gray-600.dark\:text-gray-300.dark\:focus\:border-blue-700.dark\:active\:bg-gray-700.dark\:active\:text-gray-300 {
    display: none !important;
}

/* Farmer & labour chat  */

#chatMessages div {
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 5px;
}

#chatMessages .Farmer {
    background-color: #f1f1f1;
    text-align: left;
}

#chatMessages .Labour {
    background-color: #d1f0d1;
    text-align: right;
}

/*  Profile image */
.profile-photo-container {
    width: 100px;
    /* Adjust size as needed */
    height: 100px;
    /* Adjust size as needed */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ddd;
    /* Optional border */
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image scales properly */
}

/* Notification icon */
.messagebell {
    background-color: #057a36;
    color: white;
    border-radius: 30%;
    padding: 5px 10px;
    font-size: 12px;
}
/* Progress bar on registration page  */

/* Progress bar container */
.progress {
    height: 20px; /* Adjust height as needed */
    background-color: #e9ecef; /* Light gray background */
    border-radius: 10px; /* Rounded corners */
    overflow: hidden; /* Ensures the inner bar stays within the container */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Progress bar inner fill */
.progress-bar {
    height: 100%;
    background: linear-gradient(
        90deg,
        #4caf50,
        #8bc34a
    ); /* Gradient from dark green to light green */
    border-radius: 10px; /* Rounded corners */
    transition: width 0.5s ease-in-out, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Glowing effect for the progress bar */
.progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Add a glowing effect when the progress bar is filled */
.progress-bar:hover::after {
    opacity: 1;
}

/* Optional: Add a striped animation for a modern look */
.progress-bar.striped {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

/* Keyframes for the striped animation */
@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }
    100% {
        background-position: 0 0;
    }
}

/* Optional: Add a smooth transition for the progress bar text */
.progress-bar span {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
/* Login  */
/* Hide the radio button visually but keep it focusable */
.invisible-radio {
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    outline: none;
    opacity: 0;
    clip: rect(0, 0, 0, 0); /* Hide the element visually */
}
/* Styling for the error message */
.invalid-feedback {
    display: none !important;
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

.invisible-radio:invalid + label + .invalid-feedback {
    display: block; /* Show error if radio is not selected */
}
/* Change the close button color to white */
.btn-close {
    color: white !important; /* For Bootstrap 5 close button */
    background: transparent; /* Ensures there's no background */
    border: none; /* Removes any border */
}

p {
    margin-bottom: 0.25rem !important;
}

/* Main blog container */
.blog-page {
    margin-top: 10px;
    margin-bottom: 10px;
}
#top-blog {
    border: 1px solid rgb(181, 181, 181);
    border-radius: 20px;
    background: linear-gradient(to top, white, rgb(214, 255, 229));
    margin-top: 6rem !important;
}
/* Blog post main section */
.cs-blog-page {
    margin-bottom: 10px;
}

/* Blog title */
.cs-blog-page-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-top: 15px;
}

.cs-blog-page-title a {
    color: #333;
    text-decoration: none;
}

.cs-blog-page-title a:hover {
    color: #007bff; /* Change this to your accent color */
}

/* Blog thumbnail image */
.blog-page-thumbnail {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* Sidebar */
.blog-sidebar {
    padding: 20px;
    background: linear-gradient(to bottom, white, rgb(241, 241, 241));
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-sidebar h5 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.blog-sidebar ul {
    padding-left: 0;
    list-style: none;
}

.cs-blog-sidepanel {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.blog-side-thumbnail {
    width: 100%;
    height: 70px;
    object-fit: contain;
    margin-right: 3px;
}

.detail-blog-side-thumbnail {
    width: 80%;
}

.blog-sidepanel-title a {
    font-size: 1rem;
    color: #333;
    text-decoration: none;
}

.blog-sidepanel-title a:hover {
    color: #007bff; /* Accent color on hover */
}

/* All blogs list */
.cs-block {
    margin-bottom: 30px;
}

.cs-blog-box {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.all-blog-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

.cs-blog-title {
    padding: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    background-color: #f9f9f9;
    border-bottom: 2px solid #f1f1f1;
}

.cs-blog-title a {
    color: #333;
    text-decoration: none;
}

.cs-blog-title a:hover {
    color: #007bff; /* Accent color */
}

/* Responsive Design */
@media (max-width: 768px) {
    .cs-blog-page-title {
        font-size: 1.3rem;
    }

    .blog-sidebar {
        margin-top: 30px;
    }

    .cs-block {
        padding-left: 10px;
        padding-right: 10px;
    }

    .all-blog-thumbnail {
        height: 180px;
    }
}
@media (max-width: 575.98px) {
    .blog_contentbox {
        width: 100% !important;
    }
}
/* Budget filter */
#budget-range {
    width: 100%;
}

/* Loading icon container */
.loading-icon {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000; /* Ensure it appears above other content */
}

/* Dual color spinner */
.spinner {
    width: 60px; /* Spinner size */
    height: 60px; /* Spinner size */
    border-radius: 50%;
    border: 8px solid transparent; /* Transparent border */
    border-top-color: #cb9d23; /* Green */
    border-right-color: #265630; /* Light green */
    animation: spin 1s linear infinite; /* Continuous spin animation */
}

/* Spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Background overlay */

/* .modal-backdrop {
    z-index: 1100 !important;
}
.modal {
    z-index: 1199 !important;
} */

/* Rating Star */
.star {
    font-size: 1.8rem;
    cursor: pointer;
    color: #ccc;
}

.star.active {
    color: green;
}
