html { height: 100%; }
body {
  min-height: 100%;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  padding-top: 80px;
}

.min-h-screen {
    display: flex;
    flex-direction: column;
  min-height: 100vh;
}

main {
    flex-grow: 1;
}

.header-inner {
    background: white;
    padding: 10px 0;
}




.dropdown-menu {
    position: absolute !important;
    z-index: 1050 !important; /* Ensures it stays above other elements */
    left: auto !important;
    right: 0 !important; /* Aligns to the right */
}

/* Navbar tweaks */
.header .navbar { min-height: 56px; }

/* Use Bootstrap's default toggler icon color; the filter can make it invisible */
.navbar-toggler-icon { filter: none; }


.notifications-menu { width: 360px; max-width: 90vw; overflow: hidden; border-radius: .5rem; }
.notifications-menu .menu-header,
.notifications-menu .menu-footer {
  background: #fff; padding: .6rem .75rem; border-bottom: 1px solid #eee;
}
.notifications-menu .menu-footer { border-top: 1px solid #eee; border-bottom: 0; position: sticky; bottom: 0; }

.notifications-menu .menu-body { max-height: 420px; overflow: auto; background: #fff; }

.notifications-menu .notif-item {
  padding: .6rem .75rem; gap: .6rem; text-decoration: none;
  color: inherit; white-space: normal;
}
.notifications-menu .notif-item:hover { background: #f8f9fa; }
.notifications-menu .notif-item.is-unread { background: #f6fff6; }
.notifications-menu .notif-item.is-read { background: #fff; }

.notifications-menu .dot {
  width: 10px; height: 10px; border-radius: 50%; margin-top: .35rem; flex: none;
  background: #28a745; /* unread */
}
.notifications-menu .is-read .dot { background: #adb5bd; }

.notifications-menu .title { font-weight: 600; font-size: .93rem; line-height: 1.2; }
.notifications-menu .msg {
  color: #6c757d; font-size: .86rem; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notifications-menu .time { color: #95a0a6; font-size: .78rem; margin-top: 2px; }

/* Mobile friendliness for dropdowns (notification list can be narrow on phones) */
@media (max-width: 576px) {
  #notifDropdown + .dropdown-menu {
    width: calc(100vw - 1rem);
    max-width: none;
    margin-right: .5rem;
  }
}


@media (max-width: 768px) {
    .footer {
        text-align: center;
    }

    .footer .container {
        flex-direction: column;
        gap: 10px;
    }

    .footer a {
        display: inline-block;
        margin: 0 6px;
    }
}

/*Search bar*/
/* The wrapper owns the border & rounding so nothing overflows */
.search-group{
  border: 2px solid #a2c96f;
  border-radius: 12px;
  overflow: hidden;              /* key to stop the button from spilling out */
}

/* Input and button have no borders; they fill the rounded wrapper */
.search-group .form-control{
  border: 0;
  padding: .65rem .85rem;
  box-shadow: none;
}
.search-group .form-control:focus{
  box-shadow: 0 0 0 .2rem rgba(113,177,39,.15);
  border: 0;
}

.search-group .btn.btn-success{
  background-color: #71b127;
  border: 0;
  padding: .55rem .9rem;
}

/* Keep it on one line */
.search-form .input-group{ flex-wrap: nowrap; }

/* Very small phones: tighten padding so it still fits */
@media (max-width: 360px){
  .search-group .form-control{ padding: .55rem .7rem; }
  .search-group .btn.btn-success{ padding: .45rem .6rem; }
}




/*Banner*/
#banner{
    background-image: linear-gradient(to right, #606b1b, #9feb47a3);
    color: #fff;
    padding-top: 5%;
    position: relative;
}
.l-title{
    font-size: 40px;
    font-weight: 600;
    margin-top: 100px;
}
.small-img {
    max-height: 370px;
    width: auto;
    display: block;
    position: relative;
    top: -35px; /* Moves the image UP */
    right: -10px; /* Moves the image slightly to the RIGHT */
}
#banner a{
    color: #fff;
    text-decoration: none;
}
.card:hover {
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.btn1 {
    height: 45px;
    width: 30%;
    border: none;
    outline: none;
    background-color: #71b127;
    color: white;
    font-weight: 700;
    border-radius: 60px;
}

.btn1:hover {
    background-color: rgb(158, 235, 71);
    transition: 0.5s;
}


.p-title::before {
    content: '';
    background: #71b127;
    height: 5px;
    width: 200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    display: block;
    transform: translateY(8px);
}





/* User Account - Responsive and Unified Styling */

.ui-w-80 {
    width: 80px !important;
    height: auto;
    max-width: 100%;
}

.btn {
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
}

.btn-default {
    border: 1px solid rgba(24, 28, 33, 0.1);
    background: transparent;
    color: #4E5155;
}

.btn-outline-primary {
    border: 2px solid #26B4FF;
    background: transparent;
    color: #26B4FF;
}

.text-light {
    color: #babbbc !important;
}

.btn-facebook {
    background: #3B5998;
    color: #fff;
}

.btn-instagram {
    background: #000;
    color: #fff;
}

.card {
    background-clip: padding-box;
    box-shadow: 0 1px 4px rgba(24, 28, 33, 0.1);
    border-radius: 10px;
    padding: 15px;
}

.row-bordered {
    overflow: hidden;
}

.account-settings-fileinput {
    position: absolute;
    visibility: hidden;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.account-settings-links .list-group-item {
    padding: 12px 18px;
    border: 1px solid rgba(24, 28, 33, 0.1);
}

.account-settings-links .list-group-item.active {
    font-weight: bold !important;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.category-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.category-card:hover .category-img {
    transform: scale(1.06);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 10px;
}

.category-card:hover .overlay {
    opacity: 1;
}

.category-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.category-text {
    font-size: 12px;
    margin-bottom: 8px;
}

.view-btn {
    background-color: white;
    color: black;
    font-weight: bold;
    border-radius: 999px;
    padding: 6px 12px;
}

/*modal*/

/* General Modal Styling */
.modal-content {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

/* Modal Header */
.modal-header {
    background-color: #f3f4f6;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-header button {
    background: none;
    border: none;
    font-size: 18px;
    color: #777;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-header button:hover {
    color: #333;
}

/* Modal Body */
.modal-body {
    padding: 20px;
    background-color: #fff;
}

/* Form Elements */
label {
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

input, select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

input:focus, select:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 5px rgba(99, 102, 241, 0.3);
}

/* Multi-select styling */
select[multiple] {
    height: 100px;
    overflow-y: auto;
}

/* File Input */
input[type="file"] {
    padding: 8px;
    background-color: #f9fafb;
    cursor: pointer;
}

/* Farm Information Section */
.bg-gray-50 {
    background-color: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Agreement Checkbox */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.terms-label {
    font-size: 14px;
    color: #555;
}

.terms-label a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

.terms-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.reg-btn {
    width: 100%;
    background-color: #e53935; /* Red color */
    color: #fff;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.reg-btn:hover {
    background-color: #d32f2f;
    transform: translateY(-1px);
}

.reg-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.header .dropdown-menu {
  position: absolute !important;
  z-index: 1050 !important;
  right: 0 !important;
}


.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    margin-top: -1px;
}

.dropdown-submenu:hover .dropdown-menu {
    display: block;
}


/* Responsive Design */
@media (max-width: 768px) {
    .modal-dialog {
        width: 95%;
        margin: auto;
    }

    .grid {
        display: block;
    }

    input, select {
        width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    .card {
        padding: 10px;
    }
    .account-settings-links .list-group-item {
        padding: 10px 15px;
    }
}

/* Banner Section */
@media (max-width: 768px) {
    .l-title {
        font-size: 28px;
        margin-top: 50px;
    }
    #banner .row {
        flex-direction: column-reverse; /* Stack image below text */
        text-align: center;
    }
    .small-img {
        max-height: 250px;
        top: 0;
        right: 0;
    }
}

/* Featured Categories */
@media (max-width: 992px) {
    .category-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .category-card {
        width: 100%;
        text-align: center;
    }
    .category-img {
        height: 120px;
    }
}

/* Start Now Section */
@media (max-width: 768px) {
    #start_now {
        height: auto;
        padding: 50px 0;
        text-align: center;
        background-position: center center;
    }
    #start_now h1 {
        font-size: 24px;
        padding-bottom: 20px;
    }
}

/* General Improvements */
@media (max-width: 576px) {
    .p-title {
        font-size: 22px;
    }
    .view-btn {
        padding: 6px 15px;
        font-size: 14px;
    }
}

.farm-bg {
    background: url('/images/farm-bg.jpg') no-repeat center center;
    background-size: cover;
    background-color: #f0f7ec;
}

.farm-style {
    background-color: #ffffffd9;
    border: 2px solid #c8e6c9;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.farm-btn {
    background-color: #71b127;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.farm-btn:hover {
    background-color: #5a9216;
}

.farm-style input {
    border-radius: 8px;
    border: 1px solid #c1d7b0;
    padding: 10px;
}

.farm-style input:focus {
    border-color: #71b127;
    box-shadow: 0 0 0 3px rgba(113, 177, 39, 0.2);
    outline: none;
}
