:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --surface-color: #ffffff;
    --text-color: #212529;
    --muted-text-color: #6c757d;
    --border-color: #dee2e6;
    --danger-color: #d8000c;
    --danger-bg-color: #fff3f3;
    --danger-border-color: #ffcccc;

    --font-family: 'Inter', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.page-container h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.btn i {
    width: 16px;
    height: 16px;
}

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

.btn-primary:hover {
    background-color: #0056b3;
}

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

.btn-secondary:hover {
    background-color: #e9ecef;
}

/* Price List Styles */
#price-list-content {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 300px;
    color: var(--muted-text-color);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.error-message {
    text-align: center;
    padding: 2rem;
    background-color: var(--danger-bg-color);
    border: 1px solid var(--danger-border-color);
    color: var(--danger-color);
    border-radius: var(--border-radius);
}

.price-group {
    margin-bottom: 2.5rem;
}

.price-group:last-child {
    margin-bottom: 0;
}

.group-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

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

.product-card-price {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 500;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.price-list-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--muted-text-color);
}

/* Print Styles */
@media print {
    body {
        background-color: #fff;
    }
    .no-print {
        display: none !important;
    }
    .page-container {
        padding: 0;
        max-width: 100%;
    }
    #price-list-content {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    .product-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns for printing */
        gap: 1rem;
    }
    .product-card-price {
        border: none;
        padding: 0.5rem 0;
        border-bottom: 1px solid #ccc;
        border-radius: 0;
    }
    .group-title {
        font-size: 1.2rem;
        border-color: #000;
        color: #000;
    }
    .product-price {
        color: #000;
    }
    a {
        text-decoration: none;
        color: inherit;
    }
}
