/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
    padding-bottom: 60px; /* Add padding to prevent content from being hidden behind the fixed bottom menu */
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

p {
    color: #000000;
}

/* Container for content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Buttons */
button, .button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover, .button:hover {
    background-color: #2980b9;
}

/* Forms */
input[type="text"], input[type="password"], input[type="email"], input[type="number"], select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="number"]:focus, select:focus {
    border-color: #3498db;
    outline: none;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #3498db;
    color: white;
}

table tr:hover {
    background-color: #f1f1f1;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin: 10px 0;
}

.progress-bar {
    height: 20px;
    background-color: #3498db;
    border-radius: 5px;
    text-align: center;
    color: white;
    line-height: 20px;
    transition: width 0.5s ease;
}

/* Fixed Bottom Menu */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Ensure the menu is above other content */
}

.bottom-menu a {
    color: white;
    text-decoration: none;
    font-size: 14px; /* Slightly smaller font size */
    padding: 10px 5px; /* Reduce padding for smaller screens */
    text-align: center;
    flex: 1;
    transition: background-color 0.3s ease;
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for long text */
}

.bottom-menu a:hover {
    background-color: #34495e;
}

/* Alerts and Messages */
.alert {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    font-size: 16px;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .bottom-menu {
        flex-wrap: wrap; /* Allow items to wrap to the next line */
    }

    .bottom-menu a {
        flex: 1 1 25%; /* Each link takes 25% of the width */
        font-size: 12px; /* Smaller font size for mobile */
        padding: 8px 5px; /* Adjust padding for smaller screens */
    }
}


/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    margin: 0 0 20px 0;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

.button:hover {
    background-color: #0056b3;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    justify-content: space-around;
    background-color: #333;
    padding: 10px;
}

.nav-menu a {
    color: #fff;
    padding: 10px 20px;
}

.nav-menu a:hover {
    background-color: #555;
}

/* Cards */
.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer Menu Styles */
.footer-menu {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out; /* Smooth transition for hiding/showing */
    z-index: 1000; /* Ensure the menu is above other content */
}

.footer-menu a {
    margin: 0 10px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.footer-menu a:hover {
    color: #007bff;
}

/* Hide the menu when scrolling down */
.footer-menu.hide {
    transform: translateY(100%); /* Move the menu down by its height */
}


/* Navbar scroll behavior */
.navbar {
    transition: transform 0.3s ease-in-out;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1030;
}

.navbar.scroll-up {
    transform: translateY(0);
}

.navbar.scroll-down {
    transform: translateY(-100%);
}

/* Adjust main content padding */
.main-content {
    padding-top: 56px; /* Adjust based on your navbar height */
}

/* Store cards */
.store-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.store-card .card-img-top {
    height: 160px;
    object-fit: cover;
}