/* ROOT VARIABLES */
:root {
    --green-dark: #204028;
    --grey-dark: #2c2c2c;
    --grey-light: #e6e6e6;
    --white: #ffffff;
    --text-grey: #6c757d;
     /* NEW COLORS */
    --page-bg: #DDE8D8;
    --soft-green: #EDF4EA;
    --card-green: #F4F8F1;
}
/* GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #DDE8D8;
    color: var(--grey-dark);
}
/* HEADER / NAVBAR*/
header {
    background-color: var(--green-dark);
    padding: 6px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10000;
    overflow: visible;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    position:relative;
}
.nav-links a {
    color: #f8fafc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 7px;
    border-radius: 8px;
    transition: all .25s ease;
    white-space: nowrap;
}
.nav-links a:hover {
    background: rgba(255,255,255,0.08);
    color: #FFD700;
}
/* DROPDOWN*/
.dropdown {
    position: relative;
    display:flex;
    align-items:center;
}
/* HOVER BRIDGE */
.dropdown::after{
    content:"";
    position:absolute;
    left:0;
    top:100%;
    width:100%;
    height:20px;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: #F9F8F3;
    border: 1px solid var(--grey-light);
    min-width: 180px;
    display: none;
    z-index: 1000;
}
.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--grey-dark);
    text-decoration: none;
    font-size: 14px;
}
.dropdown-menu a:hover {
    background-color: #204028;
    color: #FFD700;
}
.dropdown:hover > .dropdown-menu {
    display: block;
}

/* SHOW NORMAL DROPDOWN */
.dropdown:hover > .dropdown-menu:not(.mega-menu) {
    display: block;
}
/* RIGHT BUTTONS*/
.right-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}
.start-free {
    background: linear-gradient(135deg,#FFD700,#FFC300);
    color: #111827;
    padding: 9px 16px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    transition: .25s ease;
}
.start-free:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255,215,0,.25);
}
/* PAGE CONTENT*/
.page-content {
    padding: 0;
    width: 100%;
}
/* CARDS (USED IN DASHBOARD)*/
.card {
    background-color: var(--card-green);
    border: 1px solid var(--grey-light);
    border-radius: 6px;
}
.card-header {
    background-color: #D6E4D0;
    font-weight: 600;
}
.card-title {
    color: var(--green-dark);
}
/* TEXT UTILITIES*/
.text-muted {
    color: var(--text-grey) !important;
}
.login-link{
    color:#fff;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    padding:8px 14px;
    border-radius:8px;
    transition:.25s ease;
}
.login-link:hover{
    background:rgba(255,255,255,0.08);
    color:#FFD700;
}
.login-dropdown > a:hover {
    color:#FFD700;
}
/* AUTH FORMS (LOGIN / REGISTER)*/
.form-container {
    max-width: 420px;
    margin: 50px auto;
    background: var(--white);
    padding: 25px 30px;
    border-radius: 6px;
    border: 1px solid var(--grey-light);
}
.form-container h2 {
    margin-bottom: 20px;
    color: var(--green-dark);
    font-weight: 600;
    text-align: center;
}
/* Vertical layout */
.form-box {
    display: flex;
    flex-direction: column;
}
/* Each field */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}
.form-box label {
    font-size: 14px;
    font-weight: 600;
    color: var(--grey-dark);
    margin-bottom: 6px;
}
/* Inputs & selects */
.form-box input,
.form-box select {
    padding: 9px 12px;
    border: 1px solid var(--grey-light);
    border-radius: 4px;
    font-size: 14px;
    background-color: #F8FBF6;
}
.form-box input:focus,
.form-box select:focus {
    outline: none;
    border-color: var(--green-dark);
}
/* Password eye */
.password-wrapper {
    position: relative;
}
.password-wrapper input {
    width: 100%;
    padding-right: 38px;
}
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-grey);
}
/* Submit button */
.submit-btn {
    margin-top: 10px;
    padding: 10px;
    background-color: var(--green-dark);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.submit-btn:hover {
    opacity: 0.9;
}
/* Required star */
.required {
    color: red;
}
/* Logo */
.navbar-brand img {
    height: 55px;
    width: auto;
    display: block;
    object-fit: contain;
}
.navbar-brand a {
    display: flex;
    align-items: center;
}
.btn-edit {
    background: #f1c40f;   /* yellow */
    color: #000;
}
.btn-delete {
    background: #c0392b;   /* red */
    color: #fff;
}
.btn-save {
    background: #204028;   /* green */
    color: #fff;
}
.btn-cancel {
    border: 1px solid #204028;
    color: #204028;
    background: transparent;
}
/*CRM GLOBAL BUTTON SYSTEM*/
.crm-btn {
    background: var(--green-dark);
    color: #FFD700;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.25s ease;
}
/* Hover glow effect */
.crm-btn:hover {
    background: #1a3321;
    color: #FFD700;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.25);
}
/* Click press effect */
.crm-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(255, 215, 0, 0.2);
}
.crm-btn-edit {
    background: #facc15;
    color: #000;
}
.crm-btn-edit:hover {
    background: #e6c200;
}
.crm-btn-danger {
    background: #8b1d1d;
    color: #fff;
}
.crm-btn-danger:hover {
    background: #6f1515;
}
.notification-bell {
    position: relative;
    margin-right: 8px;
    font-size: 18px;
    color: #FFD700;
    background: rgba(255,255,255,0.08);
    width: 38px;
    height: 38px;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s ease;
}
.notification-bell:hover {
    background: rgba(255,215,0,0.15);
    transform: translateY(-2px);
}
.notification-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
}
.mega-menu{
    position:absolute;
    top:calc(100% + 12px);
    left:0;
    transform:translateY(10px);
    width:720px;
    max-width:95vw;
    display:grid !important;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    padding:18px;
    background:#F4F8F1;
    border-radius:22px;
    box-shadow:0 25px 50px rgba(0,0,0,0.15);
    z-index:9999;
    border:1px solid rgba(0,0,0,0.05);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:
        opacity .22s ease,
        transform .22s ease,
        visibility .22s;
     /* IMPORTANT FIX */
    max-height:80vh;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    scrollbar-width:thin;
}
/* CUSTOM SCROLLBAR */
.mega-menu::-webkit-scrollbar{
    width:8px;
}
.mega-menu::-webkit-scrollbar-thumb{
    background:#204028;
    border-radius:20px;
}
.mega-menu::-webkit-scrollbar-track{
    background:#f1f5f9;
}
@media(max-width:1200px){
    .mega-menu{
        width:95vw;
        grid-template-columns:repeat(2,1fr);
    }
}
@media(max-width:768px){
    .mega-menu{
        width:95vw;
        grid-template-columns:1fr;
        left:0;
        max-height:70vh;
        overflow-y:auto;
        overflow-x:hidden;
        padding:18px;
    }
}
.feature-card{
    padding:16px;
    border-radius:16px;
    transition:.25s ease;
    cursor:pointer;
    position:relative;
    overflow:hidden;
}
.feature-card:hover{
    background:#EAF3E5;
    transform:translateY(-3px);
}
.feature-icon{
    width:46px;
    height:46px;
    border-radius:12px;
    background:#ecfdf5;
    color:#166534;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    margin-bottom:14px;
}
.feature-card h3{
    font-size:15px;
    margin-bottom:8px;
    color:#111827;
}
.feature-card p{
    font-size:13px;
    line-height:1.6;
    color:#6b7280;
    margin-bottom:12px;
}
.feature-card a{
    color:#166534;
    font-weight:600;
    text-decoration:none;
    display:inline-block;
    margin-top:auto;
}
.feature-image{
    width:100%;
    height:140px;
    object-fit:cover;
    border-radius:12px;
    margin-bottom:14px;
}
.feature-detail-container{
    max-width:1100px;
    margin:40px auto;
    background:#F4F8F1;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}
.feature-banner{
    width:100%;
    height:420px;
    object-fit:cover;
}
.feature-content{
    padding:40px;
}
.feature-content h1{
    font-size:42px;
    margin-bottom:18px;
    color:#111827;
}
.feature-short{
    font-size:18px;
    color:#6b7280;
    margin-bottom:24px;
}
.feature-description{
    line-height:1.9;
    color:#374151;
    font-size:16px;
}
.feature-category{
    display:inline-block;
    padding:6px 12px;
    background:#ecfdf5;
    color:#166534;
    border-radius:999px;
    font-size:13px;
    font-weight:600;
    margin-bottom:16px;
}
.dropdown:hover > .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events:auto;
    transform: translateY(0);
}
h1,h2,h3,h4,h5,h6{
    letter-spacing:-0.03em;
}
p{
    line-height:1.7;
}
/* ====================================
   LOGIN DROPDOWN
==================================== */
.login-dropdown{
    position:relative;
}
.login-menu hr{
    border:none;
    border-top:1px solid #dfe5dc;
    margin:6px 0;
}
/* OPEN FROM RIGHT SIDE */
.login-dropdown .login-menu{
    right:0;
    left:auto;
    min-width:205px;
    background:#F4F8F1;
    border-radius:14px;
    overflow:visible;
    box-shadow:
        0 18px 40px rgba(0,0,0,.18);

    border:1px solid #dfe5dc;
}
/* ALL ITEMS SAME LOOK */
.login-menu > a,
.submenu > a{
    display:flex;
    align-items:center;
    width:100%;
    padding:8px 10px;
    color:#204028;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    box-sizing:border-box;
}
.login-menu > a:hover,
.submenu > a:hover
.submenu-menu a:hover{
    background:#204028;
    color:#FFD700;
    padding-left:16px;
    transition:.2s ease;
}
/* SUBMENU CONTAINER */
.submenu{
    position:relative;
}
/* FIX ALIGNMENT */
.submenu > a{
    justify-content:space-between;
}
/* SECOND LEVEL */
.submenu-menu{
    position:absolute;
    top:0;
    left:auto;
    right:100%;
    min-width:190px;
    opacity:0;
    visibility:hidden;
    transform:translateX(10px);
    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s;
    background:#F4F8F1;
    border-radius:12px;
    border:1px solid #dfe5dc;
    box-shadow:
        0 15px 35px rgba(0,0,0,.18);
    z-index:10050;
}
/* SHOW ON HOVER */
.submenu:hover > .submenu-menu{
    opacity:1;
    visibility:visible;
    transform:translateX(0);
    display:block;
}
/* SUB ITEMS */
.submenu-menu a{
    display:flex;
    align-items:center;
    gap:8px;
    padding:5px 10px;
    color:#204028;
    text-decoration:none;
    font-size:13px;
    border-radius:6 px;
    font-weight:500;
    line-height:1.2;
}

/* FIX ICON ALIGNMENT */
.submenu-menu a i{
    width:20px;
    min-width:20px;
    text-align:center;
}
.submenu > a i:first-child{
    width:20px;
    margin-right:10px;
}
.login-menu > a i:first-child{
    width:20px;
    margin-right:10px;
}
.submenu > a i:last-child{
    margin-left:auto;
}
.submenu-menu a:hover{
    background:#204028;
    color:#FFD700;
}
.submenu{
    display:block;
    width:100%;
    margin:0;
    padding:0;
}
.login-menu{
    padding:2px 0;
}
.login-menu > a,
.submenu > a{
    min-height:18px;
    padding:4px 8px;
    line-height:1.2;
}
.portal-badge{
    background:#204028;
    color:#ffffff;
    padding:10px;
    border-radius:8px;
    text-align:center;
    margin-bottom:15px;
    font-weight:600;
    font-size:13px;
    letter-spacing:.5px;
}
