/* ------------------------------------------------------------------
   Client Order Tracking Platform — custom styles
   Used alongside Tailwind utility classes (loaded via CDN).
   Plain CSS only: the Tailwind Play CDN does not compile @apply.
   ------------------------------------------------------------------ */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Smooth animated progress bars */
.progress-bar {
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reusable component classes -------------------------------------- */

.card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 1px 2px 0 rgb(15 23 42 / 0.05);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:focus-visible {
    outline: 2px solid #c7d2fe;
    outline-offset: 2px;
}

.btn-primary {
    background-color: #4f46e5;
    color: #ffffff;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: #4338ca;
}

.btn-secondary {
    background-color: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
}

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

.btn-danger {
    background-color: #ffffff;
    color: #dc2626;
    border: 1px solid #fecaca;
}

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

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: 0.5rem;
    line-height: 1.25rem;
}

.input {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: #0f172a;
}

.input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgb(224 231 255 / 0.8);
}

.input::placeholder {
    color: #94a3b8;
}

select.input {
    appearance: auto;
}

textarea.input {
    resize: vertical;
}

.label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.375rem;
}

.field-hint {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.375rem;
}

.field-error {
    display: block;
    font-size: 0.8125rem;
    color: #dc2626;
    margin-top: 0.375rem;
}

/* Thin focus ring for icon buttons (up/down/remove on steps) */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    color: #64748b;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
    background-color: #f1f5f9;
    color: #334155;
}

.icon-btn-danger:hover {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}
