/* Global Border Radius Rules */
body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Enforce rounded corners, but never 0 or 50% for typical UI elements */
.btn,
.card,
.info-box,
.alert,
.badge,
.form-control,
.modal-content {
    border-radius: 0.25rem !important;
    /* Reasonable roundness matching sidebar */
}

/* Enhanced Badge Styling (Button-like) */
.badge {
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.85rem !important;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    line-height: 1;
}

a.badge:hover {
    opacity: 0.85;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

a.badge:active {
    transform: translateY(0);
}

/* Explicitly forbid sharp corners and full circles for these elements unless specific class overrides (which we generally avoid) */
.btn-flat {
    border-radius: 0.25rem !important;
}

.card-header {
    border-top-left-radius: 0.25rem !important;
    border-top-right-radius: 0.25rem !important;
}

/* Modal Header Styling */
.modal-header {
    background-color: #f4f6f9;
    /* Light gray background, not white */
    border-top-left-radius: 0.25rem !important;
    border-top-right-radius: 0.25rem !important;
}

/* Sidebar Divider */
.nav-divider {
    height: 1px;
    margin: 0.5rem 0;
    overflow: hidden;
    background-color: #4b545c;
    /* AdminLTE dark sidebar border color */
}

/* Dark mode modal header support if needed */
.dark-mode .modal-header {
    background-color: #343a40;
    color: #fff;
}

/* Flying Cart Animation */
.flying-product {
    position: absolute;
    z-index: 10000;
    pointer-events: none;
    width: 60px;
    height: 60px;
    background-color: #007bff;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid #fff;
    transition: all 0.8s cubic-bezier(0.42, 0, 0.58, 1);
}

@keyframes cart-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.cart-icon-pulse {
    animation: cart-pulse 0.4s ease-out;
}