/* CyberCafe OS - Modern SaaS Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --secondary: #0ea5e9;
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --dark: #0f172a;
    --sidebar-bg: #111827;
    --sidebar-hover: #1f2937;
    --sidebar-active: #4f46e5;
    --card-bg: #ffffff;
    --body-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-primary: #1e293b;
    --text-muted: #64748b;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    margin: 0;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
    width: 270px;
    background-color: var(--sidebar-bg);
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1040;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-brand i {
    font-size: 1.5rem;
    color: #6366f1;
}

.sidebar-menu {
    padding: 1rem 0.75rem;
    overflow-y: auto;
    flex: 1;
}

.menu-section-header {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    font-weight: 700;
    padding: 0.75rem 0.75rem 0.35rem 0.75rem;
}

.nav-link-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-bottom: 3px;
}

.nav-link-custom:hover {
    color: #ffffff;
    background-color: var(--sidebar-hover);
    transform: translateX(3px);
}

.nav-link-custom.active {
    color: #ffffff;
    background-color: var(--sidebar-active);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.nav-link-custom i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
}

.sidebar-badge {
    margin-left: auto;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    font-weight: 700;
}

/* Main Content Area */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Navbar */
.app-topbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.cafe-status-badge {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Cards & Surfaces */
.modern-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.modern-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card {
    padding: 1.35rem;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

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

.stat-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Quick Action Tiles */
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    gap: 0.6rem;
    text-align: center;
}

.quick-action-btn:hover {
    background: var(--primary-light);
    border-color: #c7d2fe;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.quick-action-btn i {
    font-size: 1.85rem;
    color: var(--primary);
}

/* Photo Studio Workspace */
.photo-workspace {
    background: #0f172a;
    border-radius: var(--radius-md);
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.photo-preview-canvas {
    max-width: 100%;
    max-height: 450px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    background: #ffffff;
}

.print-sheet-canvas {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Form Filling Workspace */
.form-canvas-container {
    position: relative;
    overflow: auto;
    border: 1px solid var(--border-color);
    background: #e2e8f0;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
}

/* Badge styles */
.badge-soft-primary { background: #e0e7ff; color: #4338ca; }
.badge-soft-success { background: #dcfce7; color: #15803d; }
.badge-soft-warning { background: #fef3c7; color: #b45309; }
.badge-soft-danger { background: #fee2e2; color: #b91c1c; }
.badge-soft-info { background: #e0f2fe; color: #0369a1; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .app-sidebar {
        position: fixed;
        left: -270px;
        top: 0;
        bottom: 0;
    }
    .app-sidebar.show {
        left: 0;
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1030;
    }
    .sidebar-overlay.show {
        display: block;
    }
}
