/* ==========================================================================
   GEOFARMS EXACT MOCKUP ADMIN THEME (DARK FOREST GREEN & PERFECT LAYOUT)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    --bs-primary: #2d6a4f !important;
    --bs-primary-rgb: 45, 106, 79 !important;
    --bs-primary-hover: #1b4d2e !important;
    
    --theme-dark-forest: #0f2e1b;
    --theme-deep-green: #133e24;
    --theme-accent-green: #2d6a4f;
    --theme-light-green-bg: #e8f5e9;
    --theme-light-green-text: #2e7d32;
    --theme-body-bg: #f4f6f8;
    --theme-text-dark: #1f2937;
    --theme-text-muted: #6b7280;
}

/* Global Body Font & Layout */
body {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    background-color: var(--theme-body-bg) !important;
    color: var(--theme-text-dark);
}

h1, h2, h3, h4, h5, h6, .card-title, .modal-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #111827 !important;
    font-weight: 700;
}

/* ==========================================================================
   PERFECT TOP ALIGNMENT & SPACING FIX
   ========================================================================== */
#page-topbar {
    height: 60px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1002 !important;
}

.navbar-header {
    height: 60px !important;
    padding: 0 16px 0 0 !important;
}

.header-item {
    height: 60px !important;
    color: #374151 !important;
}

.header-item i {
    color: #2d6a4f !important;
}

.page-content {
    padding: 75px 20px 40px !important; /* Tight clean padding below topbar */
    margin-top: 0 !important;
}

.main-content {
    margin-left: 250px !important;
}

/* ==========================================================================
   SIDEBAR (DARK FOREST GREEN WITH VECTOR TREE ARTWORK)
   ========================================================================== */
.vertical-menu {
    width: 250px !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 1001 !important;
    background: linear-gradient(180deg, #092014 0%, #0f2e1b 60%, #0b2314 100%) !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12) !important;
    position: fixed !important;
    overflow: hidden;
}

/* Vector tree artwork illustration overlay at bottom of sidebar */
.vertical-menu::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 140' opacity='0.15'%3E%3Cpath fill='%2352b788' d='M50 140 L80 90 L110 140 Z M90 140 L120 75 L150 140 Z M140 140 L175 60 L210 140 Z M200 140 L230 85 L260 140 Z'/%3E%3Cpath fill='%2374c69d' d='M20 140 L50 100 L80 140 Z M170 140 L200 95 L230 140 Z'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

#sidebar-menu {
    position: relative;
    z-index: 1;
    padding: 10px 12px;
}

/* Logo Box Header */
.navbar-brand-box {
    height: 60px !important;
    line-height: 60px !important;
    background: #092014 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px !important;
    width: 250px !important;
}

/* Menu Headers */
#sidebar-menu .menu-title {
    color: #709775 !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 18px 12px 6px !important;
}

/* Inactive Menu Items */
#sidebar-menu ul li a {
    color: #d8f3dc !important;
    font-size: 0.86rem !important;
    font-weight: 500 !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    margin: 3px 0 !important;
    transition: all 0.2s ease !important;
    display: flex;
    align-items: center;
}

#sidebar-menu ul li a i {
    color: #95d5b2 !important;
    font-size: 1.15rem !important;
    margin-right: 10px;
    transition: all 0.2s ease !important;
}

#sidebar-menu ul li a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

#sidebar-menu ul li a:hover i {
    color: #ffffff !important;
}

/* Active Menu Item ("Dashboard") */
#sidebar-menu ul li.mm-active > a,
#sidebar-menu ul li a.active {
    color: #ffffff !important;
    background: linear-gradient(90deg, #2d6a4f 0%, #40916c 100%) !important;
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.35) !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
}

#sidebar-menu ul li.mm-active > a i,
#sidebar-menu ul li a.active i {
    color: #ffffff !important;
}

/* Submenu Arrow */
.has-arrow:after {
    color: #95d5b2 !important;
}

#sidebar-menu ul li ul.sub-menu li a {
    padding-left: 38px !important;
    font-size: 0.82rem !important;
}

/* User Avatar Initials Badge */
.user-avatar-initial {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0f2e1b;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.user-name {
    font-weight: 700 !important;
    color: #1f2937 !important;
}

/* ==========================================================================
   CARDS & CONTAINERS
   ========================================================================== */
.card {
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.25s ease !important;
}

.card:not([class*="bg-"]) {
    background: #ffffff;
}

.card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05) !important;
}

/* Background Card Colors & High-Contrast Crisp Typography */
.card.bg-primary { background: linear-gradient(135deg, #2d6a4f 0%, #1b4d2e 100%) !important; }
.card.bg-warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important; }
.card.bg-info { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important; }
.card.bg-success { background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important; }
.card.bg-danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important; }
.card.bg-secondary { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important; }
.card.bg-dark { background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important; }

/* Text readability inside background cards */
.card[class*="bg-"] p, 
.card[class*="bg-"] .text-white-50 {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600 !important;
}

.card[class*="bg-"] h4, 
.card[class*="bg-"] .text-white {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.card[class*="bg-"] .avatar-title,
.card[class*="bg-"] .bg-white-50 {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
}

/* Standalone White Card Text Colors */
.card:not([class*="bg-"]) p {
    color: #4b5563 !important;
}

.card:not([class*="bg-"]) h4,
.card:not([class*="bg-"]) h3,
.card:not([class*="bg-"]) h5 {
    color: #111827 !important;
}

/* Top Row Stat Cards */
.top-stat-card {
    border-radius: 14px !important;
    border: 1px solid #e5e7eb !important;
    padding: 16px 14px !important;
    background: #ffffff !important;
    height: 100%;
}

.top-stat-icon-box {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    margin-right: 10px !important;
}

.icon-box-green {
    background: #e8f5e9;
    color: #2d6a4f;
}

.icon-box-orange {
    background: #fff3e0;
    color: #fb8c00;
}

.icon-box-yellow {
    background: #fffde7;
    color: #fbc02d;
}

.top-stat-title {
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    max-width: 100% !important;
}
}

.top-stat-value {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: #0f2e1b;
    line-height: 1.2;
    margin-bottom: 2px;
}

.top-stat-subtext {
    font-size: 0.72rem;
    color: #6b7280;
    font-weight: 500;
}

/* Border Accents on specific cards */
.border-accent-orange {
    border-bottom: 3px solid #ffb74d !important;
}

.border-accent-yellow {
    border-bottom: 3px solid #ffd54f !important;
}

.border-accent-green {
    border-bottom: 3px solid #81c784 !important;
}


/* ==========================================================================
   ENQUIRIES MIDDLE BANNER
   ========================================================================== */
.enquiry-banner-header {
    background: #0f2e1b;
    border-radius: 16px 16px 0 0;
    padding: 20px 24px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.enquiry-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #1b4d2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #95d5b2;
    margin-right: 14px;
}

.enquiry-banner-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.enquiry-banner-desc {
    font-size: 0.8rem;
    color: #b7e4c7;
}

.btn-view-enquiries {
    background: #ffffff;
    color: #0f2e1b !important;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 20px;
    padding: 8px 18px;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-view-enquiries:hover {
    background: #e8f5e9;
    color: #0f2e1b !important;
    transform: translateY(-1px);
}

.enquiry-counts-container {
    background: #ffffff;
    border-radius: 0 0 16px 16px;
    padding: 20px 24px;
    border: 1px solid #e5e7eb;
    border-top: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.enquiry-col {
    text-align: center;
    padding: 0 10px;
    position: relative;
}

.enquiry-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: #f3f4f6;
}

.enquiry-icon-pill {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.pill-green { background: #e8f5e9; color: #2d6a4f; }
.pill-orange { background: #fff3e0; color: #fb8c00; }
.pill-blue { background: #e3f2fd; color: #1e88e5; }
.pill-purple { background: #f3e5f5; color: #8e24aa; }
.pill-grey { background: #f5f5f5; color: #616161; }

.enquiry-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 4px;
}

.enquiry-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
}

.underline-accent-green { border-bottom: 2.5px solid #2d6a4f; width: 30px; margin: 4px auto 0; }
.underline-accent-orange { border-bottom: 2.5px solid #fb8c00; width: 30px; margin: 4px auto 0; }
.underline-accent-blue { border-bottom: 2.5px solid #1e88e5; width: 30px; margin: 4px auto 0; }
.underline-accent-purple { border-bottom: 2.5px solid #8e24aa; width: 30px; margin: 4px auto 0; }
.underline-accent-grey { border-bottom: 2.5px solid #616161; width: 30px; margin: 4px auto 0; }

/* ==========================================================================
   RECENT ENQUIRIES ITEM LIST
   ========================================================================== */
.recent-enquiry-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.recent-enquiry-item:last-child {
    border-bottom: none;
}

.user-circle-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.avatar-rk { background: #d1fae5; color: #065f46; }
.avatar-as { background: #fef3c7; color: #92400e; }
.avatar-pm { background: #dbeafe; color: #1e40af; }
.avatar-vs { background: #f3f4f6; color: #374151; }

.status-badge-new { background: #d1fae5; color: #065f46; font-size: 0.68rem; padding: 3px 8px; border-radius: 12px; font-weight: 700; }
.status-badge-progress { background: #fef3c7; color: #92400e; font-size: 0.68rem; padding: 3px 8px; border-radius: 12px; font-weight: 700; }
.status-badge-contacted { background: #e0e7ff; color: #3730a3; font-size: 0.68rem; padding: 3px 8px; border-radius: 12px; font-weight: 700; }
.status-badge-closed { background: #f3f4f6; color: #4b5563; font-size: 0.68rem; padding: 3px 8px; border-radius: 12px; font-weight: 700; }

/* ==========================================================================
   BUTTONS & TABLES GLOBAL
   ========================================================================== */
.btn-primary {
    background: #2d6a4f !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.25) !important;
    font-weight: 600 !important;
}

.btn-primary:hover {
    background: #1b4d2e !important;
}

.table thead th {
    background-color: #e8f5e9 !important;
    color: #0f2e1b !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #c8e6c9 !important;
}
