/* ============================================
   Big Buns Burger - Restaurant Website Styles
   ============================================ */

/* CSS Variables */
:root {
    --primary-red: #D32F2F;
    --dark-red: #B71C1C;
    --accent-red: #E53935;
    --white: #FFFFFF;
    --warm-white: #FFFEF8;
    --dark-gray: #212121;
    --medium-gray: #757575;
    --light-gray: #F5F5F5;
    --border-color: #E0E0E0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--warm-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
}

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

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .logo {
    color: var(--primary-red);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--white);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-links a {
    color: var(--dark-gray);
}

.navbar.scrolled .nav-links a::after {
    background: var(--primary-red);
}

.order-nav-btn {
    background: var(--primary-red) !important;
    color: var(--white) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
}

.order-nav-btn:hover {
    background: var(--dark-red) !important;
}

.order-nav-btn::after {
    display: none !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background: var(--dark-gray);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

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

.btn-secondary {
    background-color: var(--light-gray);
    color: var(--dark-gray);
}

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

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

.btn-danger:hover {
    background-color: #B71C1C;
}

.btn-full {
    width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1550547660-d9450f859349?w=1920&h=1080&fit=crop') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 40px;
    font-weight: 400;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.section-subtitle {
    text-align: center;
    color: var(--medium-gray);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-text p {
    color: var(--medium-gray);
    margin-bottom: 15px;
}

.about-values {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-red);
}

.value-icon {
    font-size: 1.5rem;
}

.about-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.photo-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.photo-card:hover {
    transform: translateY(-5px);
}

.photo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.photo-card.photo-1 {
    grid-column: span 2;
}

.photo-card.photo-1 img {
    height: 250px;
}

/* ============================================
   Menu Section
   ============================================ */
.menu {
    padding: 100px 0;
    background-color: var(--warm-white);
}

.menu-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-weight: 600;
    color: var(--medium-gray);
    background: var(--white);
    transition: var(--transition);
}

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

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

.menu-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.menu-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light-gray);
}

.menu-card-content {
    padding: 20px;
}

.menu-card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-red);
    background: rgba(211, 47, 47, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.menu-card-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.menu-card-description {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-red);
}

.no-items {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--medium-gray);
}

/* Skeleton Loaders */
@keyframes pulse {
    0% { background-color: #E0E0E0; }
    50% { background-color: #F5F5F5; }
    100% { background-color: #E0E0E0; }
}

.skeleton-card {
    pointer-events: none;
}

.skeleton-img {
    width: 100%;
    height: 200px;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-text {
    height: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-category {
    width: 30%;
    height: 20px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.skeleton-title {
    width: 70%;
    height: 24px;
    margin-bottom: 15px;
}

.skeleton-desc {
    width: 100%;
}

.skeleton-price {
    width: 40%;
    height: 24px;
    margin-top: 15px;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-red);
}

.contact-item p {
    color: var(--medium-gray);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: scale(1.2);
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--medium-gray);
}

.hours-table td:first-child {
    font-weight: 600;
    color: var(--dark-gray);
}

.hours-table tr:last-child td {
    border-bottom: none;
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background: var(--light-gray);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
}

.map-placeholder span {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 50px 0 30px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-red);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-red);
}

.footer-links .admin-link {
    color: var(--medium-gray);
    font-size: 0.85rem;
}

.footer-copyright {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* ============================================
   Admin Styles
   ============================================ */
.admin-body {
    background: var(--light-gray);
}

/* Login Screen */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
}

.login-box {
    background: var(--white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.login-logo {
    font-size: 4rem;
    margin-bottom: 20px;
}

.login-box h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.login-box p {
    color: var(--medium-gray);
    margin-bottom: 30px;
}

.login-box input {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.login-box input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.login-error {
    color: var(--primary-red);
    margin-top: 15px;
    display: none;
}

.login-error.show {
    display: block;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Admin Dashboard */
.admin-dashboard {
    min-height: 100vh;
}

.admin-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

/* Top row: logo + nav */
.admin-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-gray);
    white-space: nowrap;
}

.admin-logo .logo-icon {
    font-size: 1.4rem;
}

.admin-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-tab {
    padding: 8px 16px;
    background: transparent;
    border-radius: 6px;
    font-weight: 600;
    color: var(--medium-gray);
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    border: 1px solid transparent;
}

.nav-tab:hover {
    background: var(--light-gray);
    color: var(--dark-gray);
    border-color: var(--border-color);
}

.nav-tab.active {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

/* Bottom toolbar row: branch select + actions */
.admin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.branch-select {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--white);
    cursor: pointer;
    min-width: 150px;
    color: var(--dark-gray);
    transition: var(--transition);
}

.branch-select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* Admin toolbar (second row below header) */
.admin-toolbar {
    background: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.admin-toolbar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

/* Availability select dropdown in admin cards */
.availability-select {
    width: 100%;
    padding: 6px 8px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--white);
    cursor: pointer;
    color: #2E7D32;
    transition: var(--transition);
    margin-top: 4px;
}

.availability-select:focus {
    outline: none;
    border-color: var(--primary-red);
}

.availability-select.status-unavailable {
    color: #E65100;
    border-color: #FFE0B2;
    background: #FFF8E1;
}

.admin-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 220px 1fr 300px;
    gap: 30px;
}

/* Sidebar */
.admin-sidebar {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.admin-sidebar h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.category-filter {
    list-style: none;
}

.category-filter li {
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--medium-gray);
    font-weight: 600;
}

.category-filter li:hover,
.category-filter li.active {
    background: var(--primary-red);
    color: var(--white);
}

.sidebar-stats {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.sidebar-stats h4 {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-bottom: 5px;
}

.sidebar-stats p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 15px;
}

/* Admin Content */
.admin-content {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.content-header h2 {
    font-size: 1.5rem;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.admin-item-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.admin-item-card:hover {
    border-color: var(--primary-red);
}

.admin-item-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: var(--light-gray);
}

.admin-item-content {
    padding: 15px;
}

.admin-item-name {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.admin-item-category {
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-bottom: 10px;
}

.admin-item-price {
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.admin-item-status {
    display: inline-block;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.admin-item-status.draft {
    background: #FFF3E0;
    color: #E65100;
}

.admin-item-status.published {
    background: #E8F5E9;
    color: #2E7D32;
}

.admin-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.admin-item-actions button {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.edit-btn {
    background: var(--light-gray);
    color: var(--dark-gray);
}

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

.delete-btn {
    background: #FFEBEE;
    color: var(--primary-red);
}

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

/* Preview Panel */
.preview-panel {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.preview-header h3 {
    font-size: 1rem;
}

.close-preview {
    font-size: 1.5rem;
    color: var(--medium-gray);
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.preview-empty {
    text-align: center;
    color: var(--medium-gray);
    padding: 40px 20px;
}

.preview-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
}

.preview-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.preview-item-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.preview-item-desc {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.preview-item-price {
    font-weight: 700;
    color: var(--primary-red);
}

/* ============================================
   Modals
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-small {
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.3rem;
}

.modal-close {
    font-size: 1.8rem;
    color: var(--medium-gray);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--dark-gray);
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    margin-bottom: 10px;
}

.warning-text {
    color: var(--primary-red);
    font-size: 0.9rem;
}

.modal-actions {
    display: flex;
    gap: 15px;
    padding: 0 25px 25px;
    justify-content: flex-end;
}

/* Form Styles */
form {
    padding: 25px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-top: 8px;
}

.form-or {
    text-align: center;
    color: var(--medium-gray);
    margin: 15px 0;
    font-size: 0.9rem;
}

/* Image Upload Zone */
.image-upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.image-upload-zone:hover {
    border-color: var(--primary-red);
    background: rgba(211, 47, 47, 0.05);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-icon {
    font-size: 3rem;
}

.upload-placeholder p {
    color: var(--medium-gray);
}

.image-preview {
    display: none;
    position: relative;
}

.image-preview.show {
    display: block;
}

.image-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Status Toggle */
.status-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: var(--transition);
    border-radius: 26px;
}

.slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-red);
}

input:checked + .slider::before {
    transform: translateX(24px);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* ============================================
   Toast Notification
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark-gray);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 3000;
    opacity: 0;
    transition: var(--transition);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: #2E7D32;
}

.toast.error {
    background: var(--primary-red);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1024px) {
    .admin-main {
        grid-template-columns: 200px 1fr;
    }

    .preview-panel {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }

    .nav-links.open {
        right: 0;
    }

    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .sidebar-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        color: var(--dark-gray);
    }

    .nav-links a::after {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-photos {
        order: -1;
    }

    .about-values {
        flex-direction: column;
        gap: 15px;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .admin-main {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-header-content {
        flex-direction: column;
        gap: 15px;
    }

    .admin-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .login-box {
        padding: 30px 20px;
    }
    
    .admin-header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .admin-nav {
        justify-content: center;
    }
    
    .nav-tab {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Custom Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-box {
    background: var(--white);
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.toast-box.success {
    border-left: 5px solid #4CAF50;
}

.toast-box.error {
    border-left: 5px solid #F44336;
}

.toast-box.warning {
    border-left: 5px solid #FF9800;
}

.toast-box.info {
    border-left: 5px solid #2196F3;
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--medium-gray);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile Sticky Cart Button */
.mobile-sticky-cart {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
}

.mobile-sticky-cart .btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
}

.order-notice {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 10px 16px;
    margin-top: 10px;
    display: inline-block;
}

.order-notice span {
    color: #856404;
    font-weight: 600;
    font-size: 0.9rem;
}

.branch-badge {
    margin: 10px 0;
}

.branch-badge .branch-name {
    background: var(--primary-red);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
}

@media (max-width: 768px) {
    .order-page {
        padding-bottom: 80px;
    }
}

/* Branch Selection Modal */
.branch-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.branch-modal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    text-align: center;
}

.branch-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--medium-gray);
}

.branch-modal-content h2 {
    color: var(--primary-red);
    margin-bottom: 10px;
}

.branch-modal-content > p {
    color: var(--medium-gray);
    margin-bottom: 20px;
}

.branch-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.branch-card {
    background: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.branch-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

.branch-card h3 {
    color: var(--dark-gray);
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.branch-card p {
    margin: 0;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.branch-card .branch-address {
    font-size: 0.85rem;
    margin-top: 5px;
}

.branch-card .branch-phone {
    margin-top: 5px;
}

.branch-loading {
    padding: 20px;
    text-align: center;
    color: var(--medium-gray);
}

.branch-select {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--white);
    cursor: pointer;
}

.branch-select:focus {
    border-color: var(--primary-red);
    outline: none;
}

.availability-btn {
    display: block;
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    border: 2px solid #4CAF50;
    border-radius: 6px;
    background: var(--white);
    color: #4CAF50;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.availability-btn:hover {
    background: #4CAF50;
    color: var(--white);
}

.availability-btn.unavailable {
    border-color: #F44336;
    color: #F44336;
}

.availability-btn.unavailable:hover {
    background: #F44336;
    color: var(--white);
}

.branch-availability {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 8px 12px;
    background: var(--light-gray);
    border-radius: 8px;
}

.availability-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    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-color: #F44336;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #4CAF50;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.availability-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4CAF50;
}

.branch-form {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.branch-form h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-input {
    flex: 1;
    min-width: 150px;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.branch-list {
    padding: 0 20px 20px;
}

.branch-list h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.branch-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 10px;
}

.branch-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.branch-name {
    font-weight: 600;
    font-size: 1rem;
}

.branch-slug {
    color: var(--medium-gray);
    font-size: 0.85rem;
    font-family: monospace;
}

.branch-location {
    color: var(--primary-red);
    font-size: 0.85rem;
}

.branch-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.availability-text.unavailable-text {
    color: #F44336;
}