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

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    user-select: text;
    pointer-events: auto;
}

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

.filter-chip {
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    padding: 0.45rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    background: #fff;
    transition: all 0.15s ease;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
}

.filter-chip[aria-pressed="true"] {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.order-card {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pill--new { background: #dcfce7; color: #15803d; }
.status-pill--progress { background: #ffedd5; color: #c2410c; }
.status-pill--ready { background: #e0f2fe; color: #0369a1; }
.status-pill--completed { background: #e2e8f0; color: #475569; }

/* Status buttons that match status pills */
.status-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    transition: all 0.15s ease;
}

.status-button:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.status-button--active {
    border-color: transparent;
    color: #15803d;
    background: #dcfce7;
}

.status-button--active[data-status="progress"] {
    color: #c2410c;
    background: #ffedd5;
}

.status-button--active[data-status="ready"] {
    color: #0369a1;
    background: #e0f2fe;
}

.status-button--active[data-status="completed"] {
    color: #475569;
    background: #e2e8f0;
}


.composition-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.15);
    font-size: 0.85rem;
    color: #475569;
}

.composition-grid {
    display: grid;
    gap: 0.85rem;
}

.composition-item {
    padding: 0.95rem 1.1rem;
    border-radius: 18px;
    background: rgba(249, 250, 251, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.composition-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.composition-item p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.components-list {
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(148, 163, 184, 0.4);
}

.components-list li {
    font-size: 0.85rem;
    color: #475569;
    margin: 0.2rem 0;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 200ms ease, box-shadow 200ms ease;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: white;
    box-shadow: 0 15px 30px -20px #6366f1;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #0f172a;
    background: white;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 50;
}

.modal-panel {
    width: min(760px, 100%);
    border-radius: 28px;
    background: white;
    padding: 2rem;
    box-shadow: 0 25px 65px -35px rgba(15, 23, 42, 0.9);
    animation: modalIn 240ms ease;
}

.modal.hidden {
    display: none;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast {
    border-radius: 18px;
    padding: 0.85rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    box-shadow: 0 25px 55px -30px rgba(15, 23, 42, 0.8);
    animation: toastIn 200ms ease forwards;
}

.toast-success {
    background: linear-gradient(135deg, #22c55e, #4ade80);
}

.toast-danger {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.toast-info {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure all interactive elements work properly */
button, [onclick], [data-filter], .btn-primary, .btn-secondary, .filter-chip {
    pointer-events: auto !important;
    cursor: pointer !important;
    user-select: none !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Ensure text selection works on content */
p, h1, h2, h3, h4, h5, h6, span, div, article, section {
    pointer-events: auto;
    user-select: text;
}

/* Fix modal overlay issues */
.modal.hidden {
    display: none !important;
    pointer-events: none !important;
}

.modal:not(.hidden) {
    pointer-events: auto !important;
}

/* Override any potential Tailwind conflicts */
* {
    box-sizing: border-box;
}

/* Force clickable behavior */
[onclick] {
    cursor: pointer !important;
    pointer-events: auto !important;
}

[data-filter] {
    cursor: pointer !important;
    pointer-events: auto !important;
}
