body {
    font-family: 'Lexend', system-ui, sans-serif;
}

/* Smooth scrolling effect */
html {
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.nav-link {
    position: relative;
    color: #fff !important; /* white text to contrast dark navbar */
    transition: color 0.3s ease-in-out;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 3px;
    background-color: #d52027;
    transition: width 0.3s ease-in-out;
    border-radius: 2px;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    font-weight: 600;
    color: #d52027 !important; /* Make the text match too */
}

.nav-link:hover::after {
    background-color: #ff4a4a;
}

.cart-icon {
    color: #d52027 !important;
    position: relative;
}

#cartBadge {
    background-color: #d52027 !important;
    color: white;
    font-weight: 600;
    box-shadow: 0 0 5px rgba(213, 32, 39, 0.6);
}

/* Specific selector targeting the cart icon */
.navbar .cart-icon-wrapper i {
    color: #ffffff !important; /* Ensure the icon is white */
}

/* Active State for Cart Icon */
.cart-icon-link.active-cart {
    color: #d52027;
    border-bottom: 3px solid #d52027; /* Adds a red underline when active */
}

.cart-icon-link.active-cart:hover {
    color: #ff4a4a; /* Slightly brighter hover color */
}

.cart-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    padding: 0.5rem;
    transition: transform 0.2s ease-in-out;
}

/* Hover Effect for Cart Icon */
.cart-icon-wrapper:hover i {
    transform: scale(1.1);
    color: #ff4a4a; /* Change the color on hover */
}

/* Apply the animation to the cart badge */
#cartBadge {
    animation: badge-pulse 0.5s ease-in-out;
}

/* Overlay Styles */
.order-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    color: #fff;
    z-index: 1000;
}

/* This makes the overlay content fully centered */
.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeIn 1s ease;

    width: 100%;
    margin: 0%;
    height: 50%;
}

/* Submission message style */
.submission-message {
    margin-top: 15px;
    font-size: 1.25rem;
    font-weight: bold;
}

/* Spinner alignment */
.spinner-border {
    margin-top: 20px;
}

/* Animation for fade-in effect */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Fade-in effects for container cards */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

    .fade-in.show {
        opacity: 1;
        transform: translateY(0);
    }

.card-header.bg-light.text-muted {
    font-style: italic;
    border-bottom: 1px dashed #ccc;
}

.table tbody tr > td.success {
    background-color: #dff0d8 !important;
}

.table tbody tr > td.error {
    background-color: #f2dede !important;
}

.table tbody tr > td.warning {
    background-color: #fcf8e3 !important;
}

.table tbody tr > td.info {
    background-color: #d9edf7 !important;
}

.table-hover tbody tr:hover > td.success {
    background-color: #d0e9c6 !important;
}

.table-hover tbody tr:hover > td.error {
    background-color: #ebcccc !important;
}

.table-hover tbody tr:hover > td.warning {
    background-color: #faf2cc !important;
}

.table-hover tbody tr:hover > td.info {
    background-color: #c4e3f3 !important;
}

.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .clickable-row:hover {
        background-color: #f1f1f1;
    }

.review-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6); /* dark transparent overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.review-message-box {
    background: white;
    padding: 2rem 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease forwards;
    max-width: 90%;
    width: 400px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-icon-link.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}