/* Bootstrap 5 Theme Specs */
:root {
    --primary: #4F46E5;        /* Indigo */
    --primary-dark: #3730A3;
    --success: #16A34A;        /* Green */
    --warning: #F59E0B;        /* Amber */
    --danger: #DC2626;         /* Red */
    --light-bg: #F3F4F6;       /* Gray-100 */
    --text-default: #1F2937;   /* Gray-800 #1F2937*/
    --text-muted: #6B7280;     /* Gray-500 */
    --nav-bg: #e9e9e9;
}

/* Utility Classes */
.primary-bg { background: var(--primary) !important; }
.primary-dark-bg { background: var(--primary-dark) !important; }
.success-bg { background: var(--success) !important; }
.warning-bg { background: var(--warning) !important; }
.danger-bg { background: var(--danger) !important; }
.light-bg { background: var(--light-bg) !important; }

.text-default { color: var(--text-default) !important; }
.text-muted { color: var(--text-muted) !important; }

.rounded-xl { 
    border-radius: 1rem !important; 
}

.navbar-light-custom {
    background-color: var(--nav-bg) !important;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Card Styles */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #E5E7EB;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Button Styles */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.primary-bg:hover {
    background: var(--primary-dark) !important;
}

.success-bg:hover {
    background: #15803D !important;
}

.warning-bg:hover {
    background: #D97706 !important;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls .btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0.375rem;
}

/* Navbar Styles */
.navbar-brand {
    letter-spacing: -0.025em;
}

/* Order Items Styles */
#order-items {
    min-height: 200px;
}

.border {
    border-color: #E5E7EB !important;
}

.border-start {
    border-left: 1px solid #E5E7EB !important;
}

/* Custom Scrollbar */
.overflow-auto::-webkit-scrollbar {
    width: 6px;
}

.overflow-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.overflow-auto::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.overflow-auto::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .d-flex.flex-grow-1 {
        flex-direction: column;
    }
    
    aside {
        width: 100% !important;
        height: 40vh;
    }
}

/* Disabled State */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Typography */
.fw-semibold {
    font-weight: 600;
}

.fs-6 {
    font-size: 1rem !important;
}

.fs-7 {
    font-size: 0.875rem !important;
}

/* MINE FROM HERE */
.custom-border {
    border-width: 15px !important; /* or any size you want */
    border-color: #454242 !important; /* any color you want */
    /* Make the top area use the same background as the navbar so
       rounded corners visually join without a white gap */
    background-color: var(--nav-bg) !important;
    /* Clip children to the parent's rounded corners to avoid
       visual seams and ensure children don't overflow */
    overflow: hidden;
    background-clip: padding-box;
}
.border-nav{
    border-color: #454242 !important; /* any color you want */
}

/* Keep the main/content area visually light while the container
   top (behind the navbar) matches the navbar background */
.custom-border main {
    background-color: var(--light-bg) !important;
}

.btn-outline-light {
    color: var(--text-default)!important;          /* dark chocolate text */
    border-color: var(--text-default) !important;   /* dark chocolate border */
}

.btn-outline-light:hover {
    background-color: var(--nav-bg) !important; /* filled chocolate on hover */
    color: var(--text-default) !important;                /*white text on hover */
}

.menu-card {
    border-radius: 18px;
    border: 1px solid #eee;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.15s ease-in-out;
}

.menu-card:hover {
    transform: translateY(-4px);
}

.menu-card img {
    width: 100%;
    height: 160px;
    object-fit: cover; /* cleaner and more natural than fill */
    border-bottom: 1px solid #eee;
}

.menu-title {
    font-size: 17px;
    font-weight: 600;
}

.menu-price {
    font-size: 15px;
    color: #444;
}

.menu-add-btn {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;

    width: 38px;
    height: 38px;

    border-radius: 50%;
    border: 1px solid #ccc;

    line-height: 0 !important;   
    padding: 0 !important;      
    background: #fff;

    font-family: Arial, sans-serif !important;
    position: relative;
    top: 0;
    cursor: pointer;
    user-select: none;
} 


.menu-add-btn:hover {
    background: #eee;
}

/* Make navbar sit flush with the top of the .custom-border container
   - remove any top margin the navbar might have
   - match the navbar's top corner radii to the container so there is
     no visible gap between their rounded corners */
.custom-border > nav.navbar {
    margin-top: 0 !important;
    border-top-left-radius: inherit !important;
    border-top-right-radius: inherit !important;
}

/* If the navbar has a top border that creates a thin seam with the
   container's inner background, hide the navbar's top border so the
   two rounded corners visually join. This keeps both rounded but
   avoids a small white line between them. */
.custom-border > nav.navbar.border {
    border-top: none !important;
}


/* Layout */

.layout-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.layout-container main {
    flex: 0 0 75%;  /* main gets 70% */
    overflow-y: auto;
}

.layout-container aside {
    flex: 0 0 25%;  /* aside gets 30% */
    border-left: 1px solid #ddd;
    background: #fff;
    overflow-y: auto;
}


.top-nav-link {
    font-size: 16px;
    color: #444;
    font-weight: 500;
}

.top-nav-link:hover {
    color: #000;
}

.logout-btn {
    border-color: #5a3e36 !important;
    color: #5a3e36 !important;
}

.category-bar {
    background: #ffffff;
}

.category-link {
    font-size: 18px;
    color: #666;
    text-decoration: none;
    padding-bottom: 6px;
}

.category-link:hover {
    color: #111;
}

.active-category {
    color: #000;
    border-bottom: 3px solid #000;
    font-weight: 600;
}

.bg-custom{
background-color: #454242 !important;
}
