body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f9f9f9;
}

header {
    background-color: #111;
    padding: 15px 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    font-size: 24px;
    text-decoration: none;
}

.logo span {
    color: #FFA000;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.user-info {
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info span {
    white-space: nowrap;
}

.btn-logout {
    background-color: #FFA000;
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 3px;
    white-space: nowrap;
}

.hero {
    background: linear-gradient(to right, #FF9800, #FFEB3B);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.products {
    padding: 50px 20px;
    text-align: center;
    display: none; /* Initially hide products section */
}

.products h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.product-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card img {
    max-width: 100%;
    min-width: 150px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 20px;
    margin: 15px 0;
    flex-grow: 1;
}

.product-card p {
    font-size: 18px;
    margin: 10px 0;
}

.btn, .message {
    background-color: #111;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    box-sizing: border-box;
}

.product-card .btn {
    width: 100%;
}

.btn:hover {
    background-color: #FFA000;
    color: black;
}

/* Disabled button style for the message */
.message {
    background-color: #888; /* Gray color to indicate disabled state */
    color: #ccc; /* Lighter text color */
    cursor: not-allowed;
    font-size: 16px;
    margin-top: auto;
}

/* Footer styles */
footer {
    background-color: #111;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

footer p {
    margin: 0;
}

.auth-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.user-info {
    display: none; /* Initially hide user info */
}

.main-menu {
    display: none; /* Initially hide main menu */
}

/* Custom styles for the confirmation dialog */
.ui-dialog-titlebar {
    background-color: #111;
    color: white;
    border: none;
}

.ui-dialog-buttonpane {
    background-color: #f9f9f9;
}

.ui-dialog .ui-dialog-buttonset button {
    background-color: #111;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
}

.ui-dialog .ui-dialog-buttonset button:hover {
    background-color: #FFA000;
    color: black;
}

/* Darker and blurred overlay for the modal */
.ui-widget-overlay {
    background: rgba(0, 0, 0, 0.9); /* Darker background with 70% opacity */
    backdrop-filter: blur(8px); /* Blur effect */
    -webkit-backdrop-filter: blur(8px); /* Safari support */
}

/* Center the My Purchases section */
.purchases {
    padding: 50px 20px;
    text-align: center;
}

.purchases h2 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

/* Style the table */
#purchases-table {
    margin: 0 auto; /* Center the table */
    width: 80%;
    border-collapse: collapse;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style the table headers */
#purchases-table th {
    background-color: #FFA000;
    color: white;
    padding: 10px;
    font-size: 18px;
}

/* Style the table cells */
#purchases-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

/* Alternate row colors for better readability */
#purchases-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover effect for table rows */
#purchases-table tr:hover {
    background-color: #f1f1f1;
}

/* Make the table responsive */
@media (max-width: 768px) {
    #purchases-table {
        width: 100%;
    }

    #purchases-table th, #purchases-table td {
        font-size: 14px;
        padding: 8px;
    }

    .purchases h2 {
        font-size: 28px;
    }
}

/* Toast Notifications Styling */
.toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333; /* Dark background for neutral messages */
    color: white;
    text-align: center;
    border-radius: 10px; /* Rounded corners */
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Adding a shadow for better visibility */
}

.toast.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

.toast.success {
    background-color: #FFA000; /* Yopeso brand orange for success */
}

.toast.error {
    background-color: #FF5722; /* A darker shade of red for errors */
}

@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}
