/*GLOBAL STYLES */
:root {
    --primary-green: #0fae64;
    --accent-blue: #00692f;
    --secondary-green: #2a7b5b;
    --light-bg: #F5F6F5;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 70px;
    --tile-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --tile-hover-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    --tile-gradient: linear-gradient(135deg, var(--primary-green), var(--accent-blue));
    --transition-smooth: all 0.3s ease;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --card-shadow: 0 10px 40px rgba(0,0,0,0.08);
    --card-shadow-hover: 0 15px 50px rgba(0,0,0,0.15);
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    background: linear-gradient(145deg, var(--light-bg), #e0e7ea);
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    padding-top: 94px;
}
body.no-padding {
  padding-top: 0 !important;
}


/* NAVBAR */
.navbar {
    padding: 12px 0;
    background: linear-gradient(135deg, #0fae64, #00692f) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.navbar-light .nav-link,
.navbar-light .log,
.navbar-light .dropdown-toggle {
    color: #FFFFFF !important;
    border-radius: 10px;
    padding: 8px 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.navbar-light .nav-link:hover,
.navbar-light .log:hover,
.navbar-light .dropdown-toggle:hover {
    background: linear-gradient(90deg, #0fae64, #00692f) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.dropdown-menu {
    background: linear-gradient(135deg, #F5F6F5, #e0e7ea);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
}

.dropdown-item {
    color: #1a5f3f;
    font-weight: 600;
    padding: 10px 20px;
}

.dropdown-item:hover,
.dropdown-item.logout-link:hover {
    color: #FFFFFF !important;
    background: linear-gradient(90deg, #1a5f3f, #2a7b5b) !important;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #00692f, #0d3d2a);
    color: white;
    height: calc(100vh - 94px);
    position: fixed;
    top: 94px;
    left: 0;
    z-index: 1000;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
    overflow-y: auto;
    transition: width 0.3s ease;
}

.sidebar.collapsed { 
    width: var(--sidebar-collapsed-width); 
}

.sidebar-header { 
    padding: 25px 20px; 
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: flex-end;
}

.toggle-btn { 
    background: rgba(255,255,255,0.15); 
    border: none; 
    color: white; 
    width: 36px; 
    height: 36px; 
    border-radius: 8px; 
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-btn:hover { 
    background: rgba(255,255,255,0.25); 
}

.toggle-btn i {
    transition: transform 0.3s ease;
}

.sidebar.collapsed .toggle-btn i {
    transform: rotate(180deg);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.menu-item:hover { 
    background: rgba(255,255,255,0.1); 
    color: white; 
    padding-left: 25px; 
}

.menu-item.active { 
    background: rgba(255,255,255,0.15); 
    color: white; 
    border-left: 4px solid white; 
}

.menu-icon { 
    font-size: 1.2rem; 
    width: 30px;
    min-width: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.menu-text { 
    font-weight: 500; 
    margin-left: 15px;
    opacity: 1;
    transition: all 0.3s ease;
    display: inline-block;
}

.sidebar.collapsed .menu-text {
    opacity: 0;
    width: 0;
    margin-left: 0;
    overflow: hidden;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* FOOTER */
.footer {
    background: #F5F6F5;
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.footer img { transition: all 0.3s ease; }
.footer img:hover { transform: scale(1.1); }
.footer small { color: #333; font-size: 0.9rem; font-family: 'Montserrat', sans-serif; }

/* MAIN CONTENT */
/* MAIN CONTENT */
.main-content {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* min-height: 100vh; */
    /* width: auto; */
    position: relative;
    padding-top: 0;
}

body.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

.hero-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header-image {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

body.sidebar-collapsed .header-image {
    background-size: 108%;
}

.app-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* RESPONSIVE */
@media (max-width: 992px) {
    .sidebar { width: var(--sidebar-collapsed-width); }
    .main-content { margin-left: var(--sidebar-collapsed-width); }
}

@media (max-width: 768px) {
    .footer { flex-direction: column; }
}
/* YE 2 LINES BILKUL END MEIN ADD KARO */
/* #sidebar:not(.collapsed) .menu-text {
    opacity: 1 !important;
    width: auto !important;
    display: block !important;
    visibility: visible !important;
} */

/* #sidebar .menu-text {
    opacity: 1 !important;
    width: auto !important;
} */