/* dashboard.css */
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Akaya+Kanadaka&display=swap');
/* Layout container for sidebar and main content */
.body{
    background-color: #FFF;
}
.dashboard-container {
    display: flex;
    min-height: 100vh;
    margin-top: 0px; /* Optional: adjust this based on header height or other spacing needs */
    font-family: 'Akaya Kanadaka', sans-serif; /* Use only Akaya Kanadaka for testing */
    
}

/* Sidebar styling */
.sidebar {
    width: 250px;
    /*background: linear-gradient(135deg, #6a11cb, #2575fc); /* Gradient to match landing page */
    background-color: #43141E;
    color: #FFF;
    padding: 30px 20px;
    position: fixed; /* Make the sidebar fixed */
    top: 0;
    bottom: 0;
    left: 0; /* Sidebar stays on the left side */
    z-index: 999; /* Ensure sidebar is above other elements */
    height: 100vh;
    overflow-y: auto; /* Allow scrolling if sidebar content exceeds screen height */
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    font-family: 'Akaya Kanadaka', sans-serif; /* Use only Akaya Kanadaka for testing */
}

/* Styling for the sidebar logo container */
.sidebar-logo {
    text-align: center;  /* Center the logo horizontally */
    background-color: white;  /* Set the background color to white */
    padding: 20px;  /* Add some padding around the logo */
    border-radius: 10px;  /* Optional: round the corners */
    margin-bottom: 20px;  /* Add space below the logo */
}

/* Show sidebar when active (visible) */
.sidebar.active {
    left: 0;  /* Move sidebar into view */
}

/* Sidebar header */
.sidebar h4 {
    color: #FFF;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 0px;
}

/* Sidebar menu styling */
.sidebar-menu {
    list-style: none;
    padding-left: 10px;
}

.sidebar-menu li {
    margin-bottom: 15px;
}

.sidebar-menu li a {
    color: #FFF;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.sidebar-menu li a:hover {
    color: #FFD700;
}

/* Main content area */
.content-area {
    margin-left: 250px; /* Adjust for fixed sidebar width */
    padding: 40px;
    width: 100%;
    
    transition: margin-left 0.3s ease; /* Smooth transition for margin shift */
    background: url('/static/media/heroimage.jpeg') no-repeat center center/cover;
    
    
}

/* When sidebar is active, push content to the right */
.sidebar.active + .content-area {
    margin-left: 0;
}

/* Main content area heading */
.content-area h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    background-color: #f4f4f4;
    text-align: center;
    border-radius: 5px;
    padding: 10px;
}

/* Cards container */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Card styling */
.card {
    background-color: #FFF;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    flex: 1 1 300px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card h5 {
    font-size: 1.25rem;
    color: #1E1E2F;
    margin-bottom: 10px;
}

.card p {
    color: #666;
    margin-bottom: 15px;
}

/* Button styling */
.btn {
    display: inline-block;
    background-color: #43141E; /* Same as sidebar gradient color */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #f29b40; /* Slightly lighter blue for hover */
}

/* Sidebar menu (submenu) */
.sidebar-menu .submenu ul {
    list-style-type: none;
    padding-left: 20px; /* Indent for submenu */
}

.sidebar-menu .submenu ul li a {
    font-size: 14px;
    color: #f4f4f4; /* Lighter color for submenu items */
}

/* Media query for small screens (responsive layout) */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column; /* Stack sidebar and content vertically */
    }

    .sidebar {
        position: static; /* Make the sidebar scrollable */
        width: 100%; /* Make sidebar take full width on mobile */
        height: auto; /* Remove fixed height on small screens */
        padding: 15px;
    }

    .content-area {
        margin-left: 0; /* Remove left margin on smaller screens */
        padding: 20px;
    }

    .sidebar-menu li {
        margin-bottom: 10px; /* Reduce margin in the sidebar menu for mobile */
    }
}

/* Center the navbar-brand */
.custom-navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.custom-navbar .navbar-brand {
    display: inline-block;
    text-align: center;
    width: auto;
}

/* Optional: Style for ingredient search results */
.container h3 {
    font-size: 1.75rem;
    color: #333;
    margin-top: 20px;
}