/* Menu Item Card Styling */
.menu-item-card {
    background: white;
    border: none;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.menu-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 36px rgba(0, 168, 86, 0.15);
}

.menu-item-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-item-card:hover img {
    transform: scale(1.05);
}

.menu-item-body {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.menu-item-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a3a52;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.menu-item-desc {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.8rem;
    flex-grow: 1;
    line-height: 1.4;
}

.menu-item-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #00a856;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.menu-item-card .btn {
    width: 100%;
    margin-top: auto;
}

/* Price Badge */
.price-badge {
    display: inline-block;
    background: #f0f7f4;
    color: #00a856;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Category Section */
.category-section {
    margin-bottom: 2.5rem;
    animation: fadeIn 0.6s ease-in-out;
}

.category-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a3a52;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #00a856;
    display: inline-block;
    letter-spacing: -0.5px;
}

/* Search Bar */
.search-container {
    margin-bottom: 2rem;
}

.search-container input {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.search-container input:focus {
    border-color: #00a856;
    box-shadow: 0 0 0 0.3rem rgba(0, 168, 86, 0.1);
    outline: none;
}

/* Summary Card */
.summary-card {
    background: linear-gradient(135deg, #f0f7f4 0%, white 100%);
    border: 2px solid #00a856;
    border-radius: 14px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.summary-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a3a52;
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 168, 86, 0.2);
    font-size: 1rem;
    color: #555;
}

.summary-row:last-child {
    border-bottom: none;
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: #00a856;
}

/* Modal Styling */
.modal-header {
    background: linear-gradient(135deg, #00a856 0%, #00923e 100%);
    color: white;
    border: none;
    border-radius: 14px 14px 0 0;
}

.modal-title {
    font-weight: 800;
    letter-spacing: -0.3px;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-content {
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Footer Enhancement */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-top: 3px solid #00a856;
}

footer h5 {
    color: #00a856 !important;
    font-weight: 700;
}

footer p {
    color: #aaa !important;
    line-height: 1.6;
}

footer a {
    color: #aaa;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #00a856;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #00a856;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #007a42;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

.slide-down {
    animation: slideDown 0.3s ease-out;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .category-title {
        font-size: 1.3rem;
    }

    .menu-item-card img {
        height: 160px;
    }

    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .card {
        margin-bottom: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }

    .menu-item-card {
        border-radius: 10px;
    }

    .summary-card {
        padding: 1rem;
    }
}

/* Small Admin Menu badge (used on daftar.html) */
.admin-menu {
    display: inline-block;
    background: #ffffff;
    color: #163246;
    border: 1px solid rgba(22,50,70,0.08);
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 0.6rem;
}

@media (min-width: 992px) {
    .admin-menu {
        float: right;
        margin-top: -2.25rem;
    }
}

/* Admin layout & sidebar (match admin.html) */
.admin-layout { display: flex; gap: 24px; align-items: flex-start; }
.admin-sidebar { width: 240px; background: #ffffff; border-radius: 10px; padding: 18px; border: 1px solid #e9ecef; box-shadow: 0 4px 12px rgba(0,0,0,0.06); position: sticky; top: 24px; height: fit-content; }
.sidebar-brand { font-weight: 800; color: #0d6efd; margin-bottom: 12px; display:flex; align-items:center; gap:10px; }
.sidebar-brand img { height: 28px; }
.sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li { margin-bottom: 8px; }
.sidebar-nav a { display: flex; align-items: center; gap:10px; color: #495057; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; }
.sidebar-nav a:hover { background: linear-gradient(90deg, rgba(13,110,253,0.06), rgba(13,110,253,0.03)); color: #0d6efd; }
.admin-main { flex: 1; }

@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; position: relative; top: auto; margin-bottom: 16px; }
}
