:root {
    --primary-color: #4f46e5;
    /* Indigo 600 */
    --primary-hover: #4338ca;
    /* Indigo 700 */
    --success-color: #10b981;
    /* Emerald 500 */
    --success-bg: #d1fae5;
    /* Emerald 100 */
    --success-text: #065f46;
    /* Emerald 800 */
    --warning-color: #f59e0b;
    /* Amber 500 */
    --warning-bg: #fef3c7;
    /* Amber 100 */
    --warning-text: #92400e;
    /* Amber 800 */
    --danger-color: #ef4444;
    /* Red 500 */
    --danger-hover: #dc2626;
    /* Red 600 */
    --bg-color: #f3f4f6;
    /* Gray 100 */
    --card-bg: #ffffff;
    --text-main: #1f2937;
    /* Gray 800 */
    --text-muted: #6b7280;
    /* Gray 500 */
    --border-color: #e5e7eb;
    /* Gray 200 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 0.75rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

/* Layout */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.card.centered {
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: var(--danger-hover);
}

.btn-link {
    background: none;
    color: var(--primary-color);
    padding: 0;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--primary-hover);
}

/* Dashboard Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Log Area */
.log-container {
    background: #1e1e1e;
    /* Dark terminal-like background */
    color: #e5e5e5;
    padding: 1.5rem;
    border-radius: var(--radius);
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #333;
}

.log-entry {
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-title {
    color: #60a5fa;
    /* Blue 400 */
    font-weight: bold;
    margin-bottom: 0.25rem;
    display: block;
}

.log-detail {
    color: #9ca3af;
    /* Gray 400 */
    padding-left: 1rem;
    display: block;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-new {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.badge-update {
    background-color: var(--warning-bg);
    color: var(--warning-text);
}

/* Utilities */
.text-success {
    color: var(--success-text);
}

.bg-success-light {
    background-color: var(--success-bg);
}

/* Catalog Styles */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.catalog-category {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.catalog-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.catalog-item-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.catalog-item-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

.catalog-variant {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.25rem 0 0.25rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.catalog-variant-name {
    font-style: italic;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        max-width: 100%;
        width: 100%;
    }

    .card {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .btn,
    .no-print {
        display: none !important;
    }

    background-color: var(--primary-hover);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: var(--danger-hover);
}

.btn-link {
    background: none;
    color: var(--primary-color);
    padding: 0;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--primary-hover);
}

/* Dashboard Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Log Area */
.log-container {
    background: #1e1e1e;
    /* Dark terminal-like background */
    color: #e5e5e5;
    padding: 1.5rem;
    border-radius: var(--radius);
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #333;
}

.log-entry {
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-title {
    color: #60a5fa;
    /* Blue 400 */
    font-weight: bold;
    margin-bottom: 0.25rem;
    display: block;
}

.log-detail {
    color: #9ca3af;
    /* Gray 400 */
    padding-left: 1rem;
    display: block;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-new {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.badge-update {
    background-color: var(--warning-bg);
    color: var(--warning-text);
}

/* Utilities */
.text-success {
    color: var(--success-text);
}

.bg-success-light {
    background-color: var(--success-bg);
}

/* Catalog Styles */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.catalog-category {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.catalog-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.catalog-item-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.catalog-item-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

.catalog-variant {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.25rem 0 0.25rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.catalog-variant-name {
    font-style: italic;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        max-width: 100%;
        width: 100%;
    }

    .card {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .btn,
    .no-print {
        display: none !important;
    }

    .catalog-category {
        color: black;
        border-bottom: 2px solid black;
    }

    .catalog-item {
        border-bottom: 1px solid #ddd;
    }
}

/* Main Menu Styles */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.menu-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.menu-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.menu-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.menu-desc {
    color: var(--text-muted);
    font-size: 1rem;
}

.menu-card.primary {
    border-top: 4px solid var(--primary-color);
}

.menu-card.secondary {
    border-top: 4px solid var(--success-color);
}

.menu-card.secondary .menu-title {
    color: var(--success-text);
}

/* Search Form Styles */
.search-container {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.flex-grow {
    flex-grow: 1;
}

.form-select,
.form-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    background-color: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-select {
    cursor: pointer;
    min-width: 200px;
}

/* Clear Button */
.btn-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s, background-color 0.2s;
}

.btn-clear:hover {
    color: var(--danger-color);
    background-color: rgba(239, 68, 68, 0.1);
}