:root {
    --primary-color: #007bff; /* Blue */
    --secondary-color: #6c757d; /* Gray */
    --admin-bg-color: #343a40; /* Dark Admin background */
    --admin-text-color: #f8f9fa; /* Light text for Admin */
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
}

/* Professional Card Style */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.admin-sidebar {
    background-color: var(--admin-bg-color); 
    /* ... */
}


.navbar-dark, .navbar-expand {
    /* Ensures the Admin Header and User Navbar use the dynamic color */
    background-color: var(--user-nav-bg-color) !important; /* Use the new separate variable */
    transition: background-color 0.3s; 
}
.admin-sidebar .nav-link {
    color: var(--admin-text-color);
    border-left: 3px solid transparent;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    color: #ffffff;
    border-left-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

/* User Dashboard Professional Look */
.user-dashboard-stat {
    background-color: #ffffff;
    padding: 20px;
    border-left: 5px solid var(--primary-color);
}





:root {
    --primary-color: #007bff; /* Blue */
    --secondary-color: #6c757d; /* Gray */
    --admin-bg-color: #343a40; /* Dark Admin background */
    --admin-text-color: #f8f9fa; /* Light text for Admin */
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
}

/* Header/Masthead Styling */
.masthead-heading {
    font-size: 3.5rem;
    font-weight: 700;
}
.masthead-subheading {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Divider Styling */
.divider-custom {
    margin: 1.25rem 0 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.divider-custom .divider-custom-icon {
    color: var(--primary-color);
    font-size: 2rem;
    background-color: #f4f7f6;
    padding: 0 1rem;
}

/* Professional Card Style */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

/* Admin Dashboard Specific Styles */
.admin-sidebar {
    background-color: var(--admin-bg-color);
    color: var(--admin-text-color);
    min-height: 100vh;
}
.admin-sidebar .nav-link {
    color: var(--admin-text-color);
    border-left: 3px solid transparent;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    color: #ffffff;
    border-left-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

/* User Dashboard Professional Look */
.user-dashboard-stat {
    border-left: 5px solid var(--primary-color);
}

/* Responsive adjustments (For mobile version and desktop) */
@media (max-width: 992px) {
    .masthead-heading {
        font-size: 2.5rem;
    }
}








/* Responsive Design (Bootstrap handles most of it) */
@media (max-width: 768px) {
    .admin-sidebar {
        min-height: auto;
    }
}









:root {
    --primary-color: #007bff; /* A vibrant blue */
    --secondary-color: #6c757d; /* Muted grey */
    --success-color: #28a745; /* Green for success */
    --info-color: #17a2b8; /* Cyan for info */
    --warning-color: #ffc107; /* Yellow for warning */
    --danger-color: #dc3545; /* Red for danger */
    --dark-color: #343a40; /* Dark grey for backgrounds */
    --light-color: #f8f9fa; /* Light grey for subtle backgrounds */
    --font-family-sans-serif: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family-sans-serif);
    background-color: var(--light-color);
    color: var(--dark-color);
}

/* Navbar Enhancements */
.navbar-brand {
    font-size: 1.5rem;
}
.navbar .btn {
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 123, 255, 0.8), rgba(0, 123, 255, 0.6)), url('https://via.placeholder.com/1500x800/007bff/ffffff?text=Background') no-repeat center center;
    background-size: cover;
    min-height: 65vh;
    color: white;
    position: relative;
    overflow: hidden; /* For AOS animations */
}
.hero-section h1 {
    font-size: 3.8rem; /* Larger heading */
    line-height: 1.2;
    color: #ffffff;
}
.hero-section p.lead {
    font-size: 1.4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}
.hero-buttons .btn {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    border-radius: 50px; /* Pill shape */
}

/* Section Headings */
h2.display-5 {
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}
h2.display-5::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Feature Boxes */
.feature-box {
    background-color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}
.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.feature-box i {
    color: var(--primary-color);
}

/* How It Works Section Images */
.how-it-works-section img {
    max-width: 100%;
    height: auto;
    border: 5px solid var(--light-color); /* Subtle border */
}

/* Pricing Section */
.pricing-section .pricing-card {
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    overflow: hidden;
}
.pricing-section .pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.pricing-section .pricing-card .card-header {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    background-color: var(--dark-color); /* Default header color */
}
.pricing-section .pricing-card.border-primary .card-header {
    background-color: var(--primary-color); /* Highlight for recommended plan */
}
.pricing-section .pricing-card ul li {
    padding: 8px 0;
    font-size: 1.05rem;
}
.pricing-section .pricing-card .btn {
    border-radius: 50px;
}

/* Call to Action Section */
.cta-section {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #0d6efd 100%);
    color: white;
    padding: 80px 0;
}
.cta-section h2 {
    color: white;
}
.cta-section .btn {
    font-size: 1.2rem;
    padding: 0.8rem 2.5rem;
    font-weight: 600;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
}
footer .social-icons a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}
footer .social-icons a:hover {
    color: var(--primary-color);
}


/* Admin and User Dashboard Specific Styles (Maintain these) */
.admin-sidebar {
    background-color: var(--dark-color); /* Dark Admin background */
    color: var(--light-color); /* Light text for Admin */
    min-height: 100vh;
}
.admin-sidebar .nav-link {
    color: var(--light-color);
    border-left: 3px solid transparent;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    color: #ffffff;
    border-left-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
}
.user-dashboard-stat {
    border-left: 5px solid var(--primary-color);
    background-color: #ffffff;
    padding: 20px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
    .hero-section p.lead {
        font-size: 1.2rem;
    }
    .how-it-works-section img {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p.lead {
        font-size: 1rem;
    }
    .navbar-collapse {
        background-color: var(--dark-color);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }
    .navbar-nav .nav-link.btn {
        margin-left: 0 !important;
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }
    h2.display-5 {
        font-size: 2.5rem;
    }
    .pricing-card {
        margin-bottom: 1.5rem;
    }
}












/* Base styles use dynamic variables */
:root {
    /* These defaults are only for safety, actual values come from app.blade.php */
    --primary-color: #007bff; 
    --secondary-color: #6c757d; 
    --dark-color: #343a40; 
    --light-color: #f8f9fa;
    --font-family-sans-serif: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family-sans-serif);
    background-color: var(--light-color);
    color: var(--dark-color);
}

/* --- Admin Panel Styles (Responsive & Dynamic) --- */
#wrapper {
    display: flex;
    width: 100%;
}
.admin-sidebar {
    min-width: 250px;
    max-width: 250px;
    background-color: var(--admin-sidebar-bg);
    color: var(--admin-link-color);
    transition: margin-left 0.2s;
    height: 100vh; /* Full viewport height */
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
}
.admin-sidebar .sidebar-heading {
    font-size: 1.2rem;
    color: var(--primary-color) !important;
}
.admin-sidebar .list-group-item {
    color: var(--admin-link-color);
    border-left: 3px solid transparent;
    transition: all 0.2s;
    font-weight: 500;
}
.admin-sidebar .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.admin-sidebar .list-group-item.active {
    color: #ffffff;
    border-left-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.15);
}

#page-content-wrapper {
    width: 100%;
    overflow-x: hidden;
    padding: 30px;
}

/* --- Frontend Styles (Using Dynamic Variables) --- */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: cover;
    min-height: 50vh;
    color: white;
}
.hero-buttons .btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.text-primary, h1.text-primary {
    color: var(--primary-color) !important;
}

/* --- Responsive Adjustments (Fix for Mobile) --- */
@media (max-width: 991px) {
    /* Hide sidebar on small screens */
    .admin-sidebar {
        margin-left: -250px;
        position: fixed;
    }
    /* Simple menu toggle button logic would be needed in HTML/JS */
    /* For now, just ensuring content scales correctly */
    #page-content-wrapper {
        padding: 15px;
    }
    
    /* Frontend Mobile fixes */
    .hero-section h1 {
        font-size: 2.5rem;
    }
}




/* --- Admin Sidebar Toggling CSS --- */

#wrapper {
  display: flex; /* Ensure the wrapper uses flexbox */
  overflow-x: hidden;
}

#sidebar-wrapper {
  min-height: 100vh;
  width: 15rem; /* Set a default width */
  margin-left: -15rem; /* Initially hide on mobile by default */
  transition: margin 0.25s ease-out;
  z-index: 10;
}

#page-content-wrapper {
  min-width: 100vw;
  width: 100%;
}

/* When the toggled class is added to #wrapper, show the sidebar */
#wrapper.toggled #sidebar-wrapper {
  margin-left: 0;
}

/* Desktop Styles (md and up) */
@media (min-width: 768px) {
  #sidebar-wrapper {
    margin-left: 0; /* Always visible on desktop */
  }
  #page-content-wrapper {
    min-width: 0;
    width: 100%;
  }
  /* Optional: If you want to allow desktop toggling */
  #wrapper.toggled #sidebar-wrapper {
    margin-left: -15rem;
  }
}


