@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #FF6B35; /* Orange-500 */
    --primary-hover: #E85D2A; /* Orange-600 */
    --primary-light: #FFF1EB; /* Orange-50 */
    --secondary: #6366f1; /* Indigo-500 */
    --dark: #2D2926; /* Dark Charcoal */
    --light-bg: #FDFCFB; /* Warm Off-white */
    --card-bg: #ffffff; /* Pure White for Cards */
    --text-main: #5C544C; /* Warm Dark Muted */
    --text-heading: #2D2926; /* Dark Charcoal */
    --border: #F2EDE7; /* Warm Border */
    --danger: #ef4444; /* Red-500 */
    --danger-hover: #dc2626; /* Red-600 */
    --warning: #f59e0b; /* Amber-500 */
    --success: #10b981; /* Green-500 */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.02), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px -2px rgba(45, 41, 38, 0.05), 0 2px 6px -1px rgba(45, 41, 38, 0.03);
    --shadow-lg: 0 12px 24px -4px rgba(45, 41, 38, 0.08), 0 4px 12px -3px rgba(45, 41, 38, 0.04);
    --radius: 20px;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.badge {
    background-color: var(--danger);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 99px;
    font-weight: 600;
    vertical-align: middle;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    opacity: 0.9;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: var(--danger-hover);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--border);
    color: var(--text-heading);
}

.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.06), rgba(99, 102, 241, 0.04));
    border-radius: var(--radius);
    margin: 30px 0;
}

.hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.hero p {
    font-size: 16px;
    color: var(--text-main);
    max-width: 600px;
    margin: 0 auto;
}

.auth-container {
    max-width: 420px;
    margin: 60px auto;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-heading);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-danger {
    background-color: #fef2f2;
    color: var(--danger);
    border: 1px solid #fee2e2;
}

.alert-success {
    background-color: #f0fdf4;
    color: var(--primary);
    border: 1px solid #dcfce7;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-heading);
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 14px;
    background-color: white;
    color: var(--text-heading);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.category-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background-color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.menu-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.menu-image {
    width: 100%;
    height: 180px;
    background-color: #f1f5f9;
    position: relative;
    overflow: hidden;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.item-badge.out {
    background-color: var(--danger);
}

.menu-body {
    padding: 20px;
}

.menu-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.menu-desc {
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 16px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-heading);
}

.cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
}

.panel {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.panel h3 {
    margin-bottom: 18px;
    font-size: 18px;
    color: var(--text-heading);
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

table th {
    background-color: var(--light-bg);
    font-weight: 600;
    color: var(--text-heading);
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    border: none;
    background-color: white;
    padding: 4px 10px;
    font-weight: bold;
    cursor: pointer;
}

.qty-btn:hover {
    background-color: var(--light-bg);
}

.qty-val {
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 500;
    background-color: var(--light-bg);
}

.total-summary {
    list-style: none;
}

.total-summary li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
}

.total-summary li.grand-total {
    border-top: 2px dashed var(--border);
    margin-top: 10px;
    padding-top: 14px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-heading);
}

.status-badge {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    display: inline-block;
}

.status-pending { background-color: #fef3c7; color: #d97706; }
.status-diproses { background-color: #e0f2fe; color: #0284c7; }
.status-sedang-dibuat { background-color: #f5f3ff; color: #7c3aed; }
.status-selesai { background-color: #d1fae5; color: #059669; }

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.meta-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.meta-card .title {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 4px;
}

.meta-card .val {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-heading);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.team-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-top: 4px solid var(--primary);
    padding: 30px 20px;
    transition: transform 0.25s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #f1f5f9;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
    border: 2px solid var(--border);
}

.team-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.team-role {
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 12px;
}

.team-desc {
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 16px;
}

.team-focus {
    font-size: 11px;
    background-color: rgba(99, 102, 241, 0.08);
    color: var(--secondary);
    padding: 3px 10px;
    border-radius: 99px;
    font-weight: 600;
}

.action-links {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    color: white;
    font-size: 12px;
    text-decoration: none;
}

.action-edit {
    background-color: #3b82f6;
}

.action-edit:hover {
    background-color: #2563eb;
}

.action-delete {
    background-color: var(--danger);
}

.action-delete:hover {
    background-color: var(--danger-hover);
}

footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    margin-top: 60px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
    background-color: var(--card-bg);
}

.menu-catalog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 40px;
}
@media (min-width: 992px) {
    .menu-catalog-layout {
        grid-template-columns: 2.3fr 1fr;
    }
    .sticky-sidebar {
        position: sticky;
        top: 100px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 20px;
        width: 100%;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
        width: 100%;
    }

    .nav-links li {
        flex-shrink: 0;
    }

    .nav-links a {
        font-size: 13px;
    }

    .nav-links li[style*="border-left"] {
        border-left: none !important;
        padding-left: 0 !important;
        width: 100%;
    }

    .nav-links .btn-outline {
        margin-left: 0 !important;
    }
}

@media (max-width: 900px) {
    .cart-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .cart-grid > div > .panel[style*="sticky"] {
        position: static !important;
        top: auto !important;
    }
}

@media (max-width: 600px) {
    .meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .meta-card .val {
        font-size: 20px;
    }
}

@media (max-width: 360px) {
    .meta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .table-responsive table thead {
        display: none;
    }

    .table-responsive table,
    .table-responsive tbody,
    .table-responsive tr,
    .table-responsive td {
        display: block;
        width: 100%;
    }

    .table-responsive tr {
        border: 1px solid var(--border);
        border-radius: 12px;
        margin-bottom: 12px;
        padding: 10px 14px;
        background: white;
    }

    .table-responsive td {
        padding: 5px 0;
        border-bottom: none;
        font-size: 13px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .table-responsive td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 11px;
        color: #94a3b8;
        text-transform: uppercase;
        min-width: 90px;
        flex-shrink: 0;
    }

    .table-responsive td:last-child::before {
        content: '';
        min-width: 0;
    }

    .table-responsive td:last-child {
        margin-top: 6px;
        padding-top: 8px;
        border-top: 1px dashed var(--border);
    }
}

@media (max-width: 768px) {
       tampilkan lewat data-label *
    #cart-row-dummy { display: none; }

    .qty-form .btn-dec,
    .qty-form .btn-inc {
        padding: 6px 14px !important;
        font-size: 14px !important;
        min-width: 36px;
        min-height: 36px;
    }

    .remove-form .btn-danger {
        font-size: 12px;
        padding: 6px 14px;
    }
}

@media (max-width: 600px) {
    .panel {
        padding: 16px;
    }

    main.container {
        margin-top: 20px !important;
    }

    h1[style*="font-size: 26px"] {
        font-size: 20px !important;
    }
}

@media (max-width: 600px) {
    div[style*="justify-content: space-between"][style*="flex-wrap: wrap"] {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .status-badge[style*="font-size:13px"] {
        font-size: 12px !important;
        padding: 5px 10px !important;
    }
}

@media (max-width: 600px) {
    div[style*="justify-content:space-between"][style*="flex-wrap:wrap"] {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    select[name="status"] {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    div[style*="display:flex"][style*="gap:10px"][style*="margin-top:20px"] {
        flex-direction: column;
    }

    div[style*="display:flex"][style*="gap:10px"][style*="margin-top:20px"] .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .cart-grid > div:last-child .panel {
        position: static !important;
    }

    .total-summary li.grand-total {
        font-size: 16px;
    }

    #checkout-submit-btn {
        width: 100% !important;
    }
}

@media (max-width: 600px) {
    div[style*="border: 1px dashed"] {
        padding: 12px !important;
    }

    .panel form > div[style*="display:flex"][style*="gap:10px"] {
        flex-direction: column;
    }

    .panel form > div[style*="display:flex"][style*="gap:10px"] .btn {
        width: 100%;
        justify-content: center;
    }
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

input, select, textarea {
    max-width: 100%;
    box-sizing: border-box;
}
