/* ============================================
   TNT PIZZA - Main Stylesheet
   Colors: Yellow #FFD700, Pink #E8838A, Red #D42B2B
   ============================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --yellow: #FFD700;
    --pink: #E8838A;
    --red: #D42B2B;
    --dark: #1a1a1a;
    --gray: #666;
    --light-gray: #f5f5f5;
    --border: #e0e0e0;
    --white: #ffffff;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--pink); }

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: var(--white);
    border-bottom: 3px solid var(--yellow);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.navbar-brand img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}
.navbar-brand img.nav-logo {
    height: 75px;
    border-radius: 0;
}
.navbar-brand .brand-tnt { color: var(--red); }
.navbar-brand .brand-pizza { color: var(--pink); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}
.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
    background: var(--yellow);
    color: var(--dark);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--yellow) 0%, #FFE44D 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(232,131,138,0.15) 0%, transparent 60%);
    animation: heroPulse 8s ease-in-out infinite;
}
@keyframes heroPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.hero h1 .highlight { color: var(--red); }
.hero p {
    font-size: 1.3rem;
    color: var(--dark);
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.85;
}
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}
.hero.has-image { color: var(--white); }
.hero.has-image h1 { color: var(--white); text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.hero.has-image p { color: var(--white); text-shadow: 1px 1px 4px rgba(0,0,0,0.5); }

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--red);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-secondary {
    background: var(--dark);
    color: var(--white);
}
.btn-secondary:hover {
    background: var(--red);
    color: var(--white);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--dark);
    color: var(--dark);
}
.btn-outline:hover {
    background: var(--dark);
    color: var(--white);
}
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-yellow { background: var(--yellow); color: var(--dark); }
.btn-yellow:hover { background: #e6c200; color: var(--dark); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #c82333; color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #218838; color: var(--white); }

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 60px 0;
}
.section-alt {
    background: var(--light-gray);
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark);
    margin-bottom: 8px;
}
.section-title .accent-line {
    display: inline-block;
    width: 60px;
    height: 4px;
    background: var(--yellow);
    border-radius: 2px;
    margin-bottom: 12px;
}
.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   CARDS & GRID
   ============================================ */
.grid {
    display: grid;
    gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--yellow), var(--pink));
}
.card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--pink) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.card-body { padding: 20px; }
.card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}
.card-body p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}
.card-price {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--red);
}
.card-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-featured { background: var(--yellow); color: var(--dark); }
.badge-vegan { background: #28a745; color: white; }
.badge-gf { background: var(--info); color: white; }
.badge-allergen { background: var(--warning); color: var(--dark); }

/* ============================================
   MENU PAGE
   ============================================ */
.menu-category {
    margin-bottom: 50px;
}
.menu-category h2 {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--dark);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--yellow);
    margin-bottom: 8px;
}
.menu-category > p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-style: italic;
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.menu-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.menu-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--yellow);
}
.menu-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--yellow), var(--pink));
}
.menu-item-img-placeholder {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--yellow), var(--pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.menu-item-details { flex: 1; }
.menu-item-details h4 {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 0.95rem;
}
.menu-item-details p {
    color: var(--gray);
    font-size: 0.82rem;
    margin-bottom: 6px;
    line-height: 1.4;
}
.menu-item-price {
    font-weight: 900;
    color: var(--red);
    font-size: 1rem;
}

/* Category filter tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 20px;
}
.category-tab {
    padding: 8px 20px;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--dark);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}
.category-tab:hover,
.category-tab.active {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--dark);
}

/* ============================================
   EVENTS
   ============================================ */
.event-card {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    transition: var(--transition);
}
.event-card:hover { box-shadow: var(--shadow); }
.event-date-box {
    width: 80px;
    flex-shrink: 0;
    text-align: center;
    background: var(--red);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
}
.event-date-box .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}
.event-date-box .day {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}
.event-details h3 { font-size: 1.2rem; margin-bottom: 6px; }
.event-details p { color: var(--gray); font-size: 0.9rem; }
.event-time {
    font-weight: 600;
    color: var(--red);
    font-size: 0.85rem;
    margin-top: 8px;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 1;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
    padding: 20px 12px 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.2);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
.footer h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--yellow);
}
.footer p, .footer li {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.8;
}
.footer ul { list-style: none; }
.footer a { color: #ccc; }
.footer a:hover { color: var(--yellow); }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.8rem;
}
.footer-bottom a { color: var(--yellow); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.about-text h2 { font-size: 2rem; margin-bottom: 16px; }
.about-text p { color: var(--gray); margin-bottom: 16px; line-height: 1.8; }
.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--yellow), var(--pink));
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.info-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.info-card .icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.info-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.info-card p { color: var(--gray); font-size: 0.85rem; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.contact-info-item .icon {
    width: 48px;
    height: 48px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ============================================
   ADMIN STYLES
   ============================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 260px;
    background: var(--dark);
    color: var(--white);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}
.admin-sidebar-brand {
    padding: 20px;
    border-bottom: 1px solid #333;
    text-align: center;
}
.admin-sidebar-brand h2 {
    font-size: 1.3rem;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.admin-sidebar-brand small { color: #888; font-size: 0.75rem; }
.admin-nav {
    list-style: none;
    padding: 12px 0;
}
.admin-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.admin-nav li a:hover,
.admin-nav li a.active {
    background: rgba(255,255,255,0.05);
    color: var(--yellow);
    border-left-color: var(--yellow);
}
.admin-nav .nav-badge {
    margin-left: auto;
    background: var(--red);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
}
.admin-nav-divider {
    border-top: 1px solid #333;
    margin: 8px 0;
}
/* Collapsible sidebar groups */
.nav-group { list-style: none; }
.nav-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    color: #888;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    border-left: 3px solid transparent;
}
.nav-group-toggle:hover { color: #bbb; background: rgba(255,255,255,0.03); }
.nav-group.open > .nav-group-toggle { color: var(--yellow); }
.nav-chevron {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
    display: inline-block;
}
.nav-group.open > .nav-group-toggle .nav-chevron { transform: rotate(90deg); }
.nav-group-items {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    padding: 0;
}
.nav-group.open > .nav-group-items { max-height: 500px; }
.nav-group-items li a {
    padding: 9px 20px 9px 36px !important;
    font-size: 0.85rem !important;
}
.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 24px;
    background: var(--light-gray);
    min-height: 100vh;
}
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.admin-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
}

/* Admin Cards / Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.stat-card .stat-icon { font-size: 2rem; margin-bottom: 8px; }
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
}
.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.stat-card.yellow { border-top: 4px solid var(--yellow); }
.stat-card.red { border-top: 4px solid var(--red); }
.stat-card.pink { border-top: 4px solid var(--pink); }
.stat-card.green { border-top: 4px solid var(--success); }

/* Admin Tables */
.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}
.admin-card h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.admin-table th {
    font-weight: 700;
    color: var(--dark);
    background: var(--light-gray);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
.admin-table tr:hover { background: #fafafa; }
.admin-table .actions { white-space: nowrap; }
.admin-table .actions a,
.admin-table .actions button {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 4px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.admin-table .btn-edit { background: var(--yellow); color: var(--dark); }
.admin-table .btn-delete { background: var(--danger); color: var(--white); }
.admin-table .btn-view { background: var(--info); color: var(--white); }

.admin-form { max-width: 800px; }
.admin-form .form-row { margin-bottom: 0; }

.image-preview {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid var(--border);
    margin-top: 8px;
}
.image-preview-placeholder {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--gray);
}

/* Unread row highlight */
.unread { background: #fffdf0; font-weight: 600; }
.unread td:first-child { border-left: 3px solid var(--yellow); }

/* Status badges */
.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-preparing { background: #d1ecf1; color: #0c5460; }
.status-ready { background: #d4edda; color: #155724; }
.status-completed { background: #cce5ff; color: #004085; }
.status-paid { background: #d4edda; color: #155724; }
.status-unpaid { background: #f8d7da; color: #721c24; }

/* ============================================
   POS STYLES
   ============================================ */
.pos-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}
.pos-menu-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.pos-header {
    background: var(--dark);
    color: var(--white);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pos-header h1 {
    font-size: 1.2rem;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.pos-categories {
    background: var(--white);
    padding: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--border);
}
.pos-cat-btn {
    padding: 8px 16px;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}
.pos-cat-btn:hover,
.pos-cat-btn.active {
    background: var(--yellow);
    border-color: var(--yellow);
}
.pos-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    align-content: start;
}
.pos-item {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}
.pos-item:hover {
    border-color: var(--yellow);
    box-shadow: var(--shadow);
}
.pos-item:active {
    transform: scale(0.97);
}
.pos-item h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.pos-item .price {
    color: var(--red);
    font-weight: 900;
    font-size: 1.1rem;
}

/* POS Cart */
.pos-cart {
    width: 360px;
    background: var(--white);
    border-left: 2px solid var(--border);
    display: flex;
    flex-direction: column;
}
.pos-cart-header {
    padding: 16px 20px;
    background: var(--dark);
    color: var(--white);
}
.pos-cart-header h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.pos-cart-type {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.pos-type-btn {
    flex: 1;
    padding: 8px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    transition: var(--transition);
}
.pos-type-btn.active {
    background: var(--yellow);
    border-color: var(--yellow);
}
.pos-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}
.pos-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.pos-cart-item .item-info { flex: 1; }
.pos-cart-item .item-name { font-weight: 600; font-size: 0.85rem; }
.pos-cart-item .item-price { color: var(--gray); font-size: 0.8rem; }
.pos-cart-item .item-total { font-weight: 700; color: var(--red); }
.pos-cart-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pos-cart-qty button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.pos-cart-qty button:hover { background: var(--light-gray); }
.pos-cart-qty .qty { font-weight: 700; min-width: 24px; text-align: center; }
.pos-cart-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
}
.pos-cart-totals {
    padding: 16px;
    border-top: 2px solid var(--border);
}
.pos-total-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.9rem;
}
.pos-total-row.grand {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--dark);
    padding-top: 8px;
    border-top: 2px solid var(--dark);
    margin-top: 8px;
}
.pos-cart-actions {
    padding: 16px;
    display: flex;
    gap: 8px;
}
.pos-cart-actions .btn { flex: 1; text-align: center; }

.pos-customer-input {
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
}
.pos-customer-input input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

/* POS Login */
.pos-login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
}
.pos-login-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    width: 360px;
    box-shadow: var(--shadow-lg);
}
.pos-login-box h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--red);
    text-transform: uppercase;
}
.pos-login-box p { color: var(--gray); margin-bottom: 24px; }

.pin-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 240px;
    margin: 20px auto;
}
.pin-btn {
    width: 64px;
    height: 64px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin: 0 auto;
}
.pin-btn:hover { background: var(--yellow); border-color: var(--yellow); }
.pin-display {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}
.pin-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: var(--transition);
}
.pin-dot.filled { background: var(--red); border-color: var(--red); }

/* Login page (admin) */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--pink) 100%);
}
.login-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    width: 400px;
    box-shadow: var(--shadow-lg);
}
.login-box h1 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--dark);
}
.login-box .subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

/* ============================================
   ORDER DETAIL MODAL / VIEW
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.modal {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.modal h2 { margin-bottom: 16px; }
.modal-close {
    float: right;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

/* Order ticket */
.ticket {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    transition: var(--transition);
}
.ticket:hover { border-color: var(--yellow); }
.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border);
}
.ticket-number { font-weight: 900; font-size: 1.1rem; }
.ticket-items { margin-bottom: 12px; }
.ticket-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.9rem;
}
.ticket-total {
    display: flex;
    justify-content: space-between;
    font-weight: 900;
    padding-top: 8px;
    border-top: 2px solid var(--dark);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        border-bottom: 3px solid var(--yellow);
        box-shadow: var(--shadow);
    }
    .nav-links.open { display: flex; }

    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .about-content { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .info-cards { grid-template-columns: 1fr; }
    .menu-grid { grid-template-columns: 1fr; }

    .admin-sidebar {
        width: 60px;
        overflow: hidden;
    }
    .admin-sidebar:hover { width: 260px; overflow-y: auto; }
    .admin-sidebar-brand h2 { display: none; }
    .admin-sidebar:hover .admin-sidebar-brand h2 { display: block; }
    .admin-nav li a span { display: none; }
    .admin-sidebar:hover .admin-nav li a span { display: inline; }
    .nav-group-toggle span { display: none; }
    .admin-sidebar:hover .nav-group-toggle span { display: inline; }
    .nav-group-items { display: none; }
    .admin-sidebar:hover .nav-group.open .nav-group-items { display: block; max-height: 500px; }
    .admin-main { margin-left: 60px; }

    .pos-layout { flex-direction: column; }
    .pos-cart { width: 100%; height: 50vh; border-left: none; border-top: 2px solid var(--border); }

    .section { padding: 40px 0; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .pos-items { grid-template-columns: repeat(2, 1fr); }
    .container { padding: 0 12px; }
}

/* ============================================
   NOTIFICATIONS DROPDOWN
   ============================================ */
.notif-bell {
    position: relative;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--dark);
}
.notif-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--red);
    color: var(--white);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.notif-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
}
.notif-dropdown.show { display: block; }
.notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    transition: var(--transition);
}
.notif-item:hover { background: var(--light-gray); }
.notif-item.unread { background: #fffdf0; }
.notif-item .notif-time {
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: 4px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}
.empty-state .icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { margin-bottom: 8px; color: var(--dark); }

/* Checkbox / Toggle */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--border);
    border-radius: 26px;
    transition: var(--transition);
}
.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--success); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}
.pagination a:hover,
.pagination .current {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--dark);
}

/* Chart placeholder */
.chart-container {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

/* ============================================
   KDS (Kitchen Display System)
   ============================================ */
.kds-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #1a1a1a;
    color: #fff;
}
.kds-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #111;
    border-bottom: 3px solid #333;
    flex-shrink: 0;
}
.kds-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.kds-header-left h1 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}
.kds-header-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}
.kds-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.kds-header-link {
    color: #ccc;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}
.kds-header-link:hover { color: var(--yellow); }
.kds-clock {
    font-size: 1rem;
    font-weight: 700;
    color: #ccc;
    font-variant-numeric: tabular-nums;
}
.kds-order-count {
    font-size: 0.8rem;
    color: #999;
    background: #222;
    padding: 3px 10px;
    border-radius: 50px;
}

/* KDS Grid */
.kds-grid {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    align-content: start;
}

/* KDS Empty State */
.kds-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #666;
}
.kds-empty h3 { color: #888; margin-bottom: 8px; }
.kds-empty p { color: #555; }

/* KDS Ticket */
.kds-ticket {
    background: #2d2d2d;
    border-radius: 8px;
    border-left: 5px solid #FFD700;
    padding: 14px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}
.kds-ticket.rush {
    animation: rushPulse 2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.3);
}
.kds-ticket.fire {
    animation: firePulse 1s ease-in-out infinite;
    box-shadow: 0 0 16px rgba(220, 53, 69, 0.4);
}
@keyframes rushPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 193, 7, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 193, 7, 0.5); }
}
@keyframes firePulse {
    0%, 100% { box-shadow: 0 0 8px rgba(220, 53, 69, 0.3); }
    50% { box-shadow: 0 0 24px rgba(220, 53, 69, 0.7); }
}

.kds-ticket-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.kds-ticket-number {
    font-weight: 900;
    font-size: 1rem;
    color: #fff;
}
.kds-ticket-customer {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 4px;
}
.kds-ticket-notes {
    font-size: 0.8rem;
    color: var(--warning);
    font-style: italic;
    margin-bottom: 6px;
    padding: 4px 8px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 4px;
}

/* Type badges */
.kds-type-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.kds-type-badge.dinein { background: #333; color: #ccc; }
.kds-type-badge.pickup { background: var(--info); color: #fff; }
.kds-type-badge.delivery { background: #6f42c1; color: #fff; }

/* Priority badges */
.kds-priority-badge {
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.kds-priority-badge.rush { background: var(--warning); color: var(--dark); }
.kds-priority-badge.fire { background: var(--danger); color: #fff; }

/* Time elapsed */
.kds-ticket-time {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.kds-time-green { color: #28a745; }
.kds-time-yellow { color: #ffc107; }
.kds-time-red { color: #dc3545; }

/* KDS Items */
.kds-ticket-items {
    flex: 1;
    margin-bottom: 10px;
}
.kds-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
    flex-wrap: wrap;
}
.kds-item:hover:not(.done) { background: #3a3a3a; }
.kds-item.done {
    opacity: 0.4;
    cursor: default;
}
.kds-item.done .kds-item-name {
    text-decoration: line-through;
}
.kds-item-check {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.kds-item.done .kds-item-check { color: #28a745; }
.kds-item-qty {
    font-weight: 700;
    color: var(--yellow);
    font-size: 0.9rem;
    flex-shrink: 0;
}
.kds-item-name {
    font-size: 0.9rem;
    color: #eee;
}
.kds-item-notes {
    width: 100%;
    font-size: 0.75rem;
    color: #999;
    padding-left: 28px;
    font-style: italic;
}

/* Bump Button */
.kds-bump-btn {
    width: 100%;
    padding: 10px;
    background: #444;
    color: #fff;
    border: 2px solid #555;
    border-radius: 6px;
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.15s;
}
.kds-bump-btn:hover {
    background: var(--success);
    border-color: var(--success);
}

/* Station Select */
.kds-station-select {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}
.kds-station-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: #2d2d2d;
    border: 2px solid #444;
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}
.kds-station-btn:hover {
    background: #3a3a3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    color: #fff;
}
.kds-station-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Print styles for receipts */
@media print {
    body * { visibility: hidden; }
    .receipt, .receipt * { visibility: visible; }
    .receipt { position: absolute; left: 0; top: 0; }
}
