@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4F46E5;
    --secondary-color: #10B981;
    --surface-color: rgba(255, 255, 255, 0.85);
    --surface-border: rgba(255, 255, 255, 0.5);
    --radius: 16px;
    --transition: 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
}

.glass {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    border-radius: var(--radius);
}

/* Auth forms specifically */
.auth-form {
    border-radius: var(--radius);
}

/* Custom error inputs for our logic */
.form-group.error .form-control, .form-group.error .form-select {
    border-color: #dc3545;
}
.form-group .error-message {
    display: none;
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}
.form-group.error .error-message {
    display: block;
}

/* Products */
.product-card {
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}
.product-img {
    height: 160px;
    object-fit: cover;
}

/* Selected item highlight */
.product-card.selected {
    border: 2px solid var(--secondary-color) !important;
    background-color: rgba(16, 185, 129, 0.05);
    position: relative;
}
.product-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Action toolbar at bottom */
.action-toolbar {
    position: sticky;
    bottom: 0;
    padding: 1rem 2rem;
    z-index: 10;
}

/* Utility to ensure rows can be clicked */
.clickable-row {
    cursor: pointer;
}

@media print {
    body { background: white; color: black; }
    .glass { box-shadow: none; border: none; }
    nav, .btn, .action-toolbar { display: none !important; }
}
