/* =========================
   ICONS
========================= */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    vertical-align: middle;
}

/* =========================
   SYSTEM-WIDE TEXT COLOR DESIGN TOKENS
========================= */
:root {
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --text-disabled: #9CA3AF;
    --text-input: #111827;
}

html.dark,
body.theme-dark {
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-muted: #9CA3AF;
    --text-disabled: #6B7280;
    --text-input: #F9FAFB;
}

/* =========================
   BASE STYLES
========================= */
body {
    background-color: #f7f9fb;
    color: var(--text-primary);
}

/* =========================
   GRADIENTS
========================= */
.signature-gradient,
.btn-gradient,
.primary-gradient,
.signature-cta,
.cta-gradient {
    background: linear-gradient(135deg, #006c49 0%, #10b981 100%);
}

/* =========================
   PANELS & CARDS
========================= */
.panel {
    background: #fff;
    border-radius: 1.75rem;
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.05);
}

.metric-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.04);
}

.product-card {
    background: #fff;
    border-radius: 1.9rem;
    padding: 0.9rem;
    box-shadow: 0 10px 26px rgba(30, 41, 59, 0.05);
}

.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 1.5rem;
}

.order-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: #fff;
    border-radius: 1rem;
}

.order-card img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.8rem;
}

/* =========================
   FORMS
========================= */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #f2f4f6;
    border: 1px solid transparent;
    border-radius: 0.9rem;
    color: var(--text-input);
    transition: 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    color: var(--text-disabled);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

/* =========================
   BUTTONS & LINKS
========================= */
.action-btn {
    padding: 0.55rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.small-link {
    color: #006c49;
    font-weight: 700;
}

.small-link:hover {
    text-decoration: underline;
}

/* =========================
   LAYOUT
========================= */
.content-shell {
    margin-left: 0;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

@media (min-width: 1024px) {
    .content-shell {
        margin-left: 16rem;
    }
}

.app-sidebar nav a {
    font-weight: 600;
}

/* =========================
   STATES / ACTIVE
========================= */
.tab-btn.active {
    color: #191c1e;
    border-color: #006c49;
    font-weight: 700;
}

.inventory-filter.active {
    background: #fff;
    color: #006c49;
    box-shadow: 0 4px 10px rgba(30, 41, 59, 0.06);
}

.table-wrap table tbody tr:hover {
    background: rgba(242, 244, 246, 0.7);
}

.settings-tab-btn.active {
    background-color: #EC1760 !important;
    color: #ffffff !important;
}

.settings-tab-btn:not(.active) {
    color: #64748b !important;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.status-pill {
    display: inline-flex;
    padding: 0.28rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* =========================
   MODAL
========================= */
.modal-shell {
    display: none;
}

.modal-shell.show {
    display: flex;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1280px) {
    .products-grid-wrap {
        grid-template-columns: 1fr;
    }

    .current-order-panel {
        order: 3;
    }
}

/* ==========================================================================
   UNIVERSAL SKELETON LOADING ANIMATIONS
   ========================================================================== */
@keyframes skeleton-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.skeleton-shimmer {
    position: relative;
    overflow: hidden;
    background-color: #e2e8f0;
}

html.dark .skeleton-shimmer,
body.theme-dark .skeleton-shimmer {
    background-color: #1e293b;
}

.skeleton-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: skeleton-shimmer 1.5s infinite;
}

html.dark .skeleton-shimmer::after,
body.theme-dark .skeleton-shimmer::after {
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0) 100%
    );
}

.page-skeleton-overlay {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
}

.page-skeleton-overlay.skeleton-fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}