/**
 * Nameo Style - Ayaz Sushi Restaurant Template
 * Based on Nameo - Elegant Furniture Shop Theme
 * Adapted for Sushi Restaurant - Light & Clean Design
 */

/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ===== CSS Variables - Modern Elegant Color Scheme ===== */
:root {
    /* Primary Colors - Teal/Green elegant theme */
    --primary-color: #2d6a4f;
    --primary-dark: #1b4332;
    --primary-light: #40916c;
    --primary-gradient: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
    
    /* Secondary Colors - Light elegant */
    --secondary-color: #ffffff;
    --secondary-dark: #f8f9fa;
    --secondary-light: #ffffff;
    
    /* Accent Colors */
    --accent-red: #ef4444;
    --accent-green: #22c55e;
    --accent-orange: #f59e0b;
    --accent-cream: #fef7ed;
    --accent-gold: #d4af37;
    
    /* Background Colors */
    --bg-dark: #f1f5f9;
    --bg-light: #ffffff;
    --bg-section: #f8fafc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    
    /* Text Colors */
    --text-light: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-primary: #2d6a4f;
    
    /* Status Colors */
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-cursive: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1280px;
    
    /* Transitions - Smooth cubic bezier */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Border Radius - More rounded modern look */
    --radius-small: 6px;
    --radius-medium: 12px;
    --radius-large: 20px;
    --radius-xl: 24px;
    --radius-round: 50%;
    
    /* Box Shadow - Softer, more layered */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-dark: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 40px -15px rgba(45, 106, 79, 0.25);
    --shadow-glow: 0 0 40px rgba(45, 106, 79, 0.15);
}

/* ===== Reset & Base Styles ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-section);
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input, textarea, select {
    font-family: inherit;
    outline: none;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.cursive-text {
    font-family: var(--font-cursive);
    color: var(--primary-color);
    font-size: 1.5rem;
}

.gold-text {
    color: var(--primary-color);
}

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Utility Classes */
.animate-fadeIn {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fadeIn:nth-child(1) { animation-delay: 0s; }
.animate-fadeIn:nth-child(2) { animation-delay: 0.1s; }
.animate-fadeIn:nth-child(3) { animation-delay: 0.2s; }
.animate-fadeIn:nth-child(4) { animation-delay: 0.3s; }
.animate-fadeIn:nth-child(5) { animation-delay: 0.4s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-slideLeft {
    animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slideRight {
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.preloader-logo {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.preloader-logo-img {
    height: 100px;
    width: auto;
    margin-bottom: 25px;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(45, 106, 79, 0.2));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.preloader-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Navigation ===== */
.grillino-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.grillino-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.grillino-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.nav-logo-icon {
    font-size: 2rem;
}

.nav-logo-image {
    height: 45px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(45, 106, 79, 0.15));
    transition: filter 0.3s ease;
}

.nav-logo:hover .nav-logo-image {
    filter: drop-shadow(0 4px 12px rgba(45, 106, 79, 0.25));
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-logo-text span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu li a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color 0.3s ease;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-color);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 25px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-user-name {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.nav-user-name span {
    color: var(--text-dark);
    font-weight: 600;
}

.nav-logout {
    background: linear-gradient(135deg, #2f9e6f 0%, #48c78e 100%);
    color: var(--text-light);
    padding: 12px 26px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.6px;
    transition: all 0.25s ease;
    border: none;
    box-shadow: 0 10px 30px rgba(45, 106, 79, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-logout:hover {
    background: #2f9e6f;
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 14px 36px rgba(45, 106, 79, 0.45);
    text-decoration: none;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.nav-toggle:hover {
    transform: scale(1.1);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: var(--radius-medium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-light) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--text-light) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 106, 79, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-light) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(45, 106, 79, 0.25);
}

.btn-dark {
    background: var(--text-dark);
    color: var(--text-light) !important;
    border: 2px solid var(--text-dark);
}

.btn-dark:hover {
    background: #1e293b;
    border-color: #1e293b;
    color: var(--text-light) !important;
    transform: translateY(-3px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--text-light) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: #dc2626;
    color: var(--text-light) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: var(--text-light) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-success:hover {
    background: #16a34a;
    color: var(--text-light) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.75rem;
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--radius-medium);
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    font-family: var(--font-cursive);
    color: var(--primary-color);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 10px;
    font-style: italic;
    letter-spacing: 0.5px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title span {
    color: var(--primary-color);
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

.section-divider-icon {
    color: var(--primary-color);
    font-size: 1rem;
}

/* ===== Cards ===== */
.grillino-card {
    background: var(--bg-card);
    border-radius: var(--radius-large);
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-light);
}

.grillino-card:hover {
    border-color: rgba(45, 106, 79, 0.2);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Stats Card */
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-large);
    padding: 28px;
    border: none;
    border-left: 4px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.02) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.1) 0%, rgba(45, 106, 79, 0.05) 100%);
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-card-icon {
    transform: scale(1.1);
    background: var(--primary-gradient);
    color: white;
}

.stat-card-value {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.2;
}

.stat-card-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ===== Tables ===== */
.grillino-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: none;
}

.grillino-table thead {
    background: var(--primary-gradient);
}

.grillino-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
}

.grillino-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-dark);
    font-size: 0.9rem;
}

.grillino-table tbody tr {
    transition: all 0.3s ease;
}

.grillino-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(45, 106, 79, 0.04) 0%, rgba(45, 106, 79, 0.02) 100%);
}

.grillino-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 80px;
}

.status-pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
}

.status-processing {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
}

.status-completed {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: #ffffff !important;
}

.status-cancelled {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
}

/* ===== Forms ===== */
.grillino-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-large);
    border: none;
    max-width: 600px;
    box-shadow: var(--shadow-medium);
}

.grillino-form.full-width {
    max-width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
    letter-spacing: 0.3px;
}

.form-group label .required {
    color: var(--danger-color);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-section);
    border: 2px solid transparent;
    border-radius: var(--radius-medium);
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    caret-color: var(--primary-color);
    color-scheme: light;
}

.form-control:focus {
    background: var(--bg-light);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.1);
}

input[type="date"],
input[type="month"],
input[type="time"],
input[type="datetime-local"] {
    color: #333333 !important;
    color-scheme: light;
}

select {
    color: #333333 !important;
}

select option {
    color: #333333;
    background: #ffffff;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
    outline: none;
    background: #ffffff;
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232d6a4f' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ===== Alerts ===== */
.grillino-alert {
    padding: 15px 20px;
    border-radius: var(--radius-small);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid;
}

.grillino-alert-icon {
    font-size: 1.2rem;
}

.grillino-alert.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.grillino-alert.error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.grillino-alert.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.grillino-alert.info {
    background: #cce5ff;
    border-color: #007bff;
    color: #004085;
}

/* ===== Footer ===== */
.grillino-footer {
    background: var(--bg-card);
    padding: 80px 0 40px;
    border-top: 2px solid #e9ecef;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand {
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    width: 100%;
}

.footer-logo-icon {
    font-size: 1.8rem;
}

.footer-logo-image {
    height: 60px;
    width: auto;
    display: block;
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
}

.footer-logo-text span {
    color: var(--primary-color);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.8;
    letter-spacing: 0.3px;
    font-family: var(--font-primary);
}

.footer-title {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 600;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-primary);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.2px;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.opening-hours-title {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-primary);
    letter-spacing: 0.2px;
}

.footer-contact-icon {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 0.3px;
    font-family: var(--font-primary);
    margin: 0;
    text-align: center;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.15),
                 2px 2px 0px rgba(0,0,0,0.1),
                 3px 3px 5px rgba(0,0,0,0.2);
    font-weight: 500;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

/* ===== Page Hero ===== */
.page-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 120px 0 60px;
    text-align: center;
    margin-bottom: 40px;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
}

.page-hero-breadcrumb a {
    color: var(--primary-color);
}

.page-hero-breadcrumb span {
    color: var(--text-dark);
}

/* ===== Dashboard Specific ===== */
.dashboard-section {
    padding: 30px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 35px;
}

.dashboard-card {
    background: var(--bg-card);
    border-radius: var(--radius-medium);
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: var(--shadow-card);
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.dashboard-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.dashboard-card-title span {
    color: var(--primary-color);
}

.dashboard-card-body {
    padding: 22px;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 280px;
}

/* ===== Menu Items ===== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.menu-card {
    background: var(--bg-card);
    border-radius: var(--radius-medium);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    border: 1px solid #e9ecef;
    box-shadow: var(--shadow-card);
    transform-origin: center;
}

.menu-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(45, 106, 79, 0.25);
}

.menu-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.menu-card:hover .menu-card-image img {
    transform: scale(1.08);
}

.menu-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: var(--radius-small);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.menu-card-content {
    padding: 20px;
    transition: transform 0.35s ease;
}

.menu-card:hover .menu-card-content {
    transform: translateY(2px);
}

.menu-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.menu-card-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.menu-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-card-price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
}

.menu-card-actions {
    display: flex;
    gap: 8px;
}

/* ===== Orders Section ===== */
.orders-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #ced4da;
    color: var(--text-muted);
    border-radius: var(--radius-small);
    font-size: 0.85rem;
    transition: var(--transition-fast);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

/* Order Card */
.order-card {
    background: var(--bg-card);
    border-radius: var(--radius-medium);
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid #e9ecef;
    box-shadow: var(--shadow-card);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.order-id {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.order-id span {
    color: var(--primary-color);
}

.order-card-body {
    padding: 20px;
}

.order-items {
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e9ecef;
}

.order-item:last-child {
    border-bottom: none;
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

/* ===== Login Page ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(45, 106, 79, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
    width: 100%;
    margin: 20px;
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.login-image {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1b4332 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    text-align: center;
}

.login-image-logo {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.login-image-logo-img {
    height: 100px;
    width: auto;
    margin-bottom: 15px;
    display: block;
}

.login-image-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.login-image-subtitle {
    font-family: var(--font-cursive);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

.login-form-container {
    background: #ffffff;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.login-form-header {
    margin-bottom: 35px;
}

.login-form-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.login-form-desc {
    color: var(--text-muted);
}

.login-form .form-group {
    margin-bottom: 22px;
}

.login-form .form-group label {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.login-form .form-control {
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #ced4da;
    color: var(--text-dark);
    caret-color: var(--primary-color);
}

.login-form .form-control:focus {
    background: #ffffff;
    border-color: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.login-form .form-control::placeholder {
    color: #adb5bd;
}

.login-form .btn {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 35px;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid #e9ecef;
    color: var(--text-dark);
    border-radius: var(--radius-small);
    transition: var(--transition-fast);
}

.pagination a:hover,
.pagination span.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

/* ===== Action Toolbar ===== */
.action-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid #ced4da;
    border-radius: var(--radius-small);
    padding: 0 12px;
    min-width: 280px;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px;
    color: var(--text-dark);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    background: transparent;
    color: var(--primary-color);
    font-size: 1rem;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #ffffff;
    border-radius: var(--radius-medium);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: var(--transition-fast);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
}

.modal-close {
    background: transparent;
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 999;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px;
        transition: var(--transition-fast);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-user {
        flex-direction: column;
        align-items: flex-start;
        border-left: none;
        padding-left: 0;
        padding-top: 20px;
        border-top: 1px solid #e9ecef;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .login-container {
        grid-template-columns: 1fr;
    }
    
    .login-image {
        display: none;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .grillino-table {
        display: block;
        overflow-x: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .action-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .grillino-form {
        padding: 20px;
    }
    
    .login-form-container {
        padding: 35px 20px;
    }
}

/* ===== Animation Classes ===== */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-up {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.scale-in {
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Stagger animation for children */
.stagger-children > * {
    opacity: 0;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }

/* ===== Modern Enhancements ===== */

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

/* Selection color */
::selection {
    background: rgba(45, 106, 79, 0.2);
    color: var(--text-dark);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gradient text */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-medium);
}

/* Tooltip enhancement */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: var(--text-dark);
    color: white;
    font-size: 0.75rem;
    border-radius: var(--radius-small);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* Ripple effect for buttons */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}
