/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Prevent layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Sidebar Styles */
.sidebar {
    min-height: 100vh;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar .nav-link {
    color: #333;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 5px 0;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    background-color: #f0f0f0;
    color: #ff6b35;
}

.sidebar .nav-link.active {
    background-color: #ff6b35;
    color: white;
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Menu Card Specific */
.menu-card-item {
    min-height: 450px;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.menu-card-item .card-img-wrapper {
    flex-shrink: 0;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f8f9fa;
    position: relative;
}

.menu-card-item .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.menu-card-item:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.menu-card-item .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Prevent layout shift */
.row {
    display: flex;
    flex-wrap: wrap;
}

.row > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

/* Button Styles */
.btn {
    border-radius: 5px;
    padding: 10px 20px;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Form Styles */
.form-control:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

/* Table Styles */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background-color: #ff6b35;
    color: white;
}

/* Badge Styles */
.badge {
    padding: 5px 10px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
}

