/* ============================================================
   GLOBAL STYLE
=============================================================== */
body {
    position: relative;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    /*background: none; /* remove old background */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/sugarcane_bg.png') center/cover no-repeat;
    opacity: 0.15  ;  /* <=  opacity */
    z-index: -1;   /* stays behind all content */
    pointer-events: none;
}


/* Smooth transitions */
a, .nav-link, .dropdown-item, button {
    transition: 0.25s ease-in-out;
}

/* ============================================================
   TOP BAR
=============================================================== */
.top-bar {
    background: #145A32;
    color: white;
    font-size: 14px;
}

#google_translate_element select {
    padding: 3px 8px;
    border-radius: 4px;
    border: none;
    font-size: 13px;
}

/* ============================================================
   HEADER BANNER (LOGO + TITLE)
=============================================================== */
.header-banner {
    background: linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.88)),
                url('../images/sugarcane_bg.png') center/cover no-repeat;
    padding: 30px 0;
    border-top: 6px solid #229954;
    border-bottom: 6px solid #229954;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-title h1 {
    font-size: 2.3rem;
    color: #1e4d1e;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.header-title p {
    font-size: 1rem;
    margin-top: 4px;
    color: #444;
}

@media (max-width: 768px) {
    .header-title h1 { font-size: 1.8rem; }
    .header-title p { font-size: 0.9rem; }
}

/* ============================================================
   NAVBAR
=============================================================== */
.navbar {
    background: #229954 !important;
    padding: 10px 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: #fff !important;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

.navbar-brand:hover {
    color: #d5f5e3 !important;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 10px 16px !important;
    font-size: 15px;
}

.nav-link:hover {
    background: #d5f5e3 !important;
    color: #145A32 !important;
    border-radius: 4px;
}

/* Dropdown */
.dropdown-menu {
    background: #229954 !important;
    border-radius: 8px;
    border: none !important;
    margin-top: 10px !important;
}

.dropdown-item {
    color: white !important;
    padding: 10px 20px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: #d5f5e3 !important;
    color: #145A32 !important;
}

/* ============================================================
   SIDEBAR
=============================================================== */
/* Sidebar Green Line Animation */
.list-group {
    border-left: 5px solid #229954;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: border-color 0.3s ease;
}

.list-group-item {
    font-size: 15px;
    font-weight: 500;
    padding: 14px 16px;
    border: none;
    position: relative;
    transition: all 0.3s ease;
}

.list-group-item i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* Hover Effect with Animated Gradient */
.list-group-item:hover {
    background: #eaf7ed;
    color: #145A32;
    border-left: 5px solid transparent;
    animation: pulse-green 1.2s infinite;
    transform: translateX(5px);
}

.list-group-item:hover i {
    transform: scale(1.2);
}

/* Active Item Highlight */
.list-group-item.active {
    background: #d5f5e3;
    color: #145A32;
    border-left: 5px solid #145A32;
}

/* Pulse Animation for Sidebar Green Line */
@keyframes pulse-green {
    0% {
        border-left: 5px solid #229954;
    }
    50% {
        border-left: 5px solid #48dd0e; /* lighter green */
    }
    100% {
        border-left: 5px solid #229954;
    }
}


/* ============================================================
   MAIN CONTENT AREA
=============================================================== */
.main-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    min-height: 600px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 5px solid #229954; /* green line like sidebar */
    transition: 0.3s ease;
}

.main-content:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* ============================================================
   FOOTER
=============================================================== */
/* ============================================================
   FOOTER STYLING
=============================================================== */
.footer-section {
    background: #145A32;
    color: white;
    padding: 40px 20px;
}

.footer-section h5 {
    color: #f4d03f; /* Golden headings */
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section a {
    color: #d5f5e3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #f4d03f;
    text-decoration: underline;
}

.social-icons a {
    display: inline-block;
    margin-right: 12px;
    font-size: 20px;
    color: white;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    color: #f4d03f;
    transform: scale(1.2);
}

.map-container {
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    border-radius: 5px;
    overflow: hidden;
}

.footer-bottom {
    background: white;
    color: #145A32;
    font-weight: 600;
    text-align: center;
}


/* ============================================================
   CARDS / WIDGETS
=============================================================== */
.service-card {
    border-radius: 12px;
    transition: 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.widget-card {
    border-left: 5px solid #229954;
    background: #f8f9fa;
}

/* ============================================================
   MOBILE FIXES
=============================================================== */
@media (max-width: 768px) {
    .list-group { margin-bottom: 20px; }
    .main-content { padding: 15px; }
}
/* Container card */
.farmers-card {
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

/* Search form styling */
.farmers-search .form-control, .farmers-search .form-select {
    border-radius: 8px;
    transition: 0.3s;
}

.farmers-search .form-control:focus, .farmers-search .form-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 8px rgba(40,167,69,0.3);
}

/* Button styling */
.farmers-search .btn-success {
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.farmers-search .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Table styling */
.table thead {
    background-color: #28a745;
    color: white;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.table-hover tbody tr:hover {
    background-color: #eaf7ed;
}

.table td, .table th {
    vertical-align: middle;
    text-align: center;
}

/* Responsive table wrapper */
.table-responsive {
    overflow-x: auto;
}

/* Page title */
.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 25px;
    border-left: 5px solid #28a745;
    padding-left: 10px;
}