/* ============================================
   INDIELOGIC UTHYRNING
   ============================================ */

/* -------------------- CSS VARIABLER -------------------- */
:root {
    /* Primära — mörkt, industriellt */
    --primary-900: #0a0a0a;
    --primary-800: #141414;
    --primary-700: #1f1f1f;
    --primary-600: #2a2a2a;
    --primary-500: #3a3a3a;

    /* Neutrala */
    --gray-50: #fafafa;
    --gray-100: #f0f0f0;
    --gray-200: #e0e0e0;
    --gray-300: #c0c0c0;
    --gray-400: #888;
    --gray-500: #666;
    --gray-600: #4a4a4a;
    --gray-700: #333;
    --gray-800: #1a1a1a;
    --gray-900: #0d0d0d;

    /* Accent — varm amber, inte neon */
    --accent-500: #e8a832;
    --accent-600: #d4952a;
    --accent-700: #b87d1f;

    /* Semantiska */
    --success-500: #22c55e;
    --success-100: #dcfce7;
    --error-500: #ef4444;
    --error-100: #fee2e2;
    --warning-500: #e8a832;
    --warning-100: #fef3c7;
    --info-500: #60a5fa;
    --info-100: #dbeafe;

    /* Bakgrunder */
    --bg-page: #f5f3f0;
    --bg-card: #ffffff;
    --bg-input: #ffffff;

    /* Text */
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --text-muted: #999;
    --text-on-primary: #ffffff;

    /* Borders */
    --border-color: #e0ddd8;
    --border-radius-sm: 3px;
    --border-radius: 6px;
    --border-radius-lg: 8px;
    --border-radius-xl: 12px;

    /* Shadows — mer subtila */
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.06);
    --shadow: 0 1px 3px rgb(0 0 0 / 0.08);
    --shadow-md: 0 3px 8px rgb(0 0 0 / 0.08);
    --shadow-lg: 0 8px 20px rgb(0 0 0 / 0.08);
    --shadow-xl: 0 16px 40px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 120ms ease;
    --transition: 180ms ease;
    --transition-slow: 280ms ease;

    /* Spacing */
    --container-max: 1100px;
    --header-height: 64px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-page);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* -------------------- TYPOGRAPHY -------------------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-700);
}

/* -------------------- HEADER & NAVIGATION -------------------- */
.header {
    background: var(--primary-900);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-on-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    letter-spacing: -0.01em;
}

.logo span {
    color: var(--accent-500);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.nav-link-external {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Cart link in header */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
}

.cart-link svg {
    display: block;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent-500);
    color: var(--primary-900);
    font-size: 0.6875rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Product card actions */
.product-actions {
    display: flex;
    gap: 0.5rem;
}

/* Mobile navigation toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* -------------------- MAIN CONTENT -------------------- */
.main {
    flex: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* -------------------- HERO SECTION -------------------- */
.hero {
    background: var(--primary-900);
    padding: 3.5rem 1.5rem 3rem;
    margin: -2rem -1.5rem 2.5rem -1.5rem;
    border-bottom: 3px solid var(--accent-500);
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    color: #fff;
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.15;
}

.hero p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.hero-stats {
    display: none;
}

.hero-stat {
    display: none;
}

.hero-stat-value {
    display: none;
}

.hero-stat-label {
    display: none;
}

/* -------------------- PAGE HEADER -------------------- */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.125rem;
    margin-bottom: 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary-600);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

/* -------------------- CARDS -------------------- */
.card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition);
}

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

.card-body {
    padding: 1.5rem;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--gray-50);
}

.card-header h2,
.card-header h3 {
    margin-bottom: 0;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--gray-50);
}

/* -------------------- PRODUCT CARDS -------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

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

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--gray-100);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: var(--primary-900);
    color: rgba(255,255,255,0.85);
    font-size: 0.6875rem;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    letter-spacing: 0.02em;
}

.product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    flex: 1;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-price span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* -------------------- BUTTONS -------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.3);
}

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

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

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.btn-accent {
    background: var(--accent-500);
    color: var(--primary-900);
    font-weight: 700;
}

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

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

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
}

/* -------------------- FORMS -------------------- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-label-optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input-error {
    border-color: var(--error-500);
}

.form-input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.form-error {
    font-size: 0.875rem;
    color: var(--error-500);
    margin-top: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    accent-color: var(--primary-600);
}

.form-check-label {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

/* -------------------- TABLES -------------------- */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.table th,
.table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--gray-50);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tbody tr {
    transition: background var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

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

.table-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

/* -------------------- BADGES -------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-primary {
    background: var(--info-100);
    color: var(--info-500);
}

.badge-success {
    background: var(--success-100);
    color: var(--success-500);
}

.badge-warning {
    background: var(--warning-100);
    color: var(--warning-500);
}

.badge-danger {
    background: var(--error-100);
    color: var(--error-500);
}

.badge-neutral {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* -------------------- ALERTS -------------------- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.alert-success {
    background: var(--success-100);
    color: #166534;
    border: 1px solid #86efac;
}

.alert-error {
    background: var(--error-100);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background: var(--warning-100);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert-info {
    background: var(--info-100);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* -------------------- STATS CARDS -------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.stat-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-card-icon.primary {
    background: rgba(49, 130, 206, 0.1);
    color: var(--primary-600);
}

.stat-card-icon.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-500);
}

.stat-card-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-500);
}

.stat-card-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-500);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* -------------------- STEPS INDICATOR -------------------- */
.steps {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    background: var(--gray-200);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.step.active .step-number {
    background: var(--primary-600);
    color: white;
}

.step.completed .step-number {
    background: var(--success-500);
    color: white;
}

.step-label {
    margin-left: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.step.active .step-label {
    color: var(--text-primary);
}

.step-connector {
    width: 4rem;
    height: 2px;
    background: var(--gray-200);
    margin: 0 1rem;
}

.step.completed + .step .step-connector,
.step.completed .step-connector {
    background: var(--success-500);
}

/* -------------------- ORDER SUMMARY -------------------- */
.order-summary {
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.order-summary-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-name {
    font-weight: 500;
}

.order-item-details {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.order-item-price {
    font-weight: 600;
    text-align: right;
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 2px solid var(--border-color);
    font-size: 1.25rem;
    font-weight: 700;
}

/* -------------------- FOOTER -------------------- */
.footer {
    background: var(--primary-900);
    color: rgba(255, 255, 255, 0.5);
    padding: 2.5rem 1.5rem 1.5rem;
    margin-top: auto;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    padding: 0.25rem 0;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
}

/* -------------------- EMPTY STATE -------------------- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* -------------------- LOADING -------------------- */
.loading {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* -------------------- UTILITY CLASSES -------------------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success-500); }
.text-error { color: var(--error-500); }
.text-primary { color: var(--primary-600); }

.font-mono { font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.hidden { display: none; }
.block { display: block; }

/* -------------------- ADMIN SPECIFIC -------------------- */
.admin-header {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
}

.admin-nav-link.active {
    background: var(--accent-500);
    color: var(--gray-900);
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--primary-900);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-toggle {
        display: block;
    }

    h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

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

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

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .step-connector {
        display: none;
    }

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

    .table th,
    .table td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .btn {
        padding: 0.625rem 1rem;
    }

    .product-content {
        padding: 1rem;
    }
}

/* -------------------- PRINT STYLES -------------------- */
@media print {
    .header,
    .footer,
    .nav-toggle,
    .btn {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* -------------------- LOGIN PAGE -------------------- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-900);
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
}

.login-card h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-900);
}

.login-logo span {
    color: var(--accent-600);
    font-weight: 400;
}

/* -------------------- SUCCESS PAGE -------------------- */
.success-page {
    text-align: center;
    padding: 4rem 1rem;
}

.success-icon {
    width: 5rem;
    height: 5rem;
    background: var(--success-100);
    color: var(--success-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
}

.success-page h1 {
    color: var(--success-500);
    margin-bottom: 1rem;
}

/* -------------------- QR CODE STYLES -------------------- */
.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.qr-item {
    background: white;
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
}

.qr-item canvas {
    max-width: 100%;
    margin-bottom: 0.5rem;
}

.qr-item-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    word-break: break-all;
}

/* -------------------- SCANNER STYLES -------------------- */
.scanner-container {
    max-width: 500px;
    margin: 0 auto;
}

.scanner-preview {
    width: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: black;
    margin-bottom: 1rem;
}

.scanner-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.scanner-log {
    background: var(--gray-900);
    border-radius: var(--border-radius);
    padding: 1rem;
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--gray-300);
    max-height: 200px;
    overflow-y: auto;
}

.scanner-log-entry {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--gray-800);
}

.scanner-log-entry.success {
    color: var(--success-500);
}

.scanner-log-entry.error {
    color: var(--error-500);
}
