/* General Body & Theme */
body {
    background-color: #f8f9fa;
    color: #495057;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root {
    --primary-color: #00796b; /* A professional teal/green */
    --primary-hover: #00695c;
    --secondary-color: #4a5568; /* A cool grey */
    --sidebar-bg: #1a202c;
    --sidebar-link-color: #a0aec0;
    --sidebar-link-hover: #ffffff;
    --sidebar-link-active: #ffffff;
    --sidebar-active-bg: var(--primary-color);
}

/* --- Public Layout --- */
.navbar-public {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Responsive Logo */
.hero-logo {
    height: 100px;
    max-width: 100%;
    transition: all 0.3s ease;
}

.hero-section {
    background: linear-gradient(45deg, rgba(0, 121, 107, 0.9), rgba(0, 77, 64, 0.9)), url('https://images.unsplash.com/photo-1588482373392-df649f7b3a0e?q=80&w=2070') center center no-repeat;
    background-size: cover;
    color: white;
    padding: 8rem 0;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.pricing-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

/* --- Billing Plans (in-app) --- */
.billing-plans .plan-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.billing-plans .plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.12) !important;
}

.billing-plans .plan-card--pro {
    border-width: 2px;
}

.billing-plans .plan-card__badge {
    position: absolute;
    top: -12px;
    right: 16px;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.billing-plans .plan-card__price {
    font-size: 1.75rem;
    font-weight: 700;
}

.billing-plans .feature-list li {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.35rem;
}

.billing-plans .feature-list i {
    width: 1.25rem;
}

/* --- App Layout --- */
#sidebar {
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000; /* Increased z-index */
    background: var(--sidebar-bg);
    color: #fff;
    transition: all 0.3s;
    padding-top: 1rem;
}

#sidebar .sidebar-header {
    padding: 10px 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar .sidebar-header .fa-leaf {
    color: #48bb78; /* A brighter green for the leaf icon */
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 15px 20px;
    font-size: 1.1em;
    display: block;
    color: var(--sidebar-link-color);
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

#sidebar ul li a:hover {
    color: var(--sidebar-link-hover);
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary-hover);
}

#sidebar ul li.active > a,
a[aria-expanded="true"] {
    color: var(--sidebar-link-active);
    background: var(--sidebar-active-bg);
    border-left: 3px solid var(--primary-hover);
}

#sidebar .logout-link {
    padding: 15px 20px;
    font-size: 1.1em;
    display: block;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    text-decoration: none;
}

#sidebar .logout-link:hover {
    background: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
}

#content {
    width: 100%; /* Default to 100% width */
    padding: 2rem;
    min-height: 100vh;
    transition: all 0.3s;
    position: relative; /* Changed from absolute */
    margin-left: 250px; /* Space for sidebar */
}

/* Mobile Navbar */
#mobile-navbar {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    margin: -2rem -2rem 1.5rem -2rem; /* Adjust to fill space */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-title-mobile {
    font-size: 1.25rem;
    margin-left: 1rem;
    color: #495057;
    font-weight: 600;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: block;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}

/* Button Styling */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    color: #ffffff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Stats Cards */
.stat-card {
    border-left: 4px solid var(--primary-color);
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive */
@media (max-width: 767.98px) { /* Use .98px for Bootstrap compatibility */
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        width: 100%;
        margin-left: 0; /* Reset margin for mobile */
    }
    .hero-section {
        padding: 4rem 0;
    }
    .user-info {
        display: none; /* Hide desktop user info on mobile */
    }
    
    /* Responsive logo sizing for mobile */
    .hero-logo {
        height: 60px; /* Smaller on mobile */
    }
}
