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

:root {
    --color-primary: #1a1a2e;
    --color-primary-hover: #252542;
    --color-accent: #00d68f;
    --color-accent-hover: #00b377;
    --color-bg: #ffffff;
    --color-surface: #f8f9fa;
    --color-text: #1a1a2e;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8;
    --color-border: #e2e8f0;
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    margin: 0;
}

.font-display {
    font-family: var(--font-heading);
}

.text-navy {
    color: var(--color-primary);
}

.text-muted {
    color: var(--color-text-muted);
}

.bg-navy {
    background-color: var(--color-primary);
}

.bg-accent {
    background-color: var(--color-accent);
}

.btn-primary-custom {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

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

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent), #00b377);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0, 214, 143, 0.25);
    transition: all 0.2s;
}

.btn-accent:hover {
    transform: scale(0.97);
    color: white;
}

.rounded-2xl {
    border-radius: 16px;
}

.rounded-xl {
    border-radius: 12px;
}

.shadow-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card-hover {
    transition: all 0.3s;
}

.card-hover:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

.animate-fade-in {
    animation: fade-in 0.4s ease-out;
}

/* Stagger children animations */
.stagger-children > * {
    opacity: 0;
    animation: fade-in 0.5s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.5s; }

/* Hover lift effect */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Active press effect */
.active-press:active {
    transform: scale(0.95);
}

/* Pulse animation (for live indicators) */
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* Scale in animation */
@keyframes scale-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-scale-in {
    animation: scale-in 0.3s ease-out;
}

/* Page transition */
@keyframes page-enter {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-page-enter {
    animation: page-enter 0.4s ease-out;
}

/* Slide up */
@keyframes slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slide-up {
    animation: slide-up 0.3s ease-out;
}

/* ===== TYPOGRAPHY SCALE (design_guidelines.json) ===== */
h1, .h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2, .h2 {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3, .h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
}

p, .p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.text-small {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ===== BUTTON STYLES ===== */
.btn-listio {
    height: 48px;
    padding: 0 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 12px;
    border: none;
    transition: all 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-listio:active {
    transform: scale(0.95);
}

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

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

.btn-listio-accent {
    background: linear-gradient(135deg, var(--color-accent), #00b377);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 214, 143, 0.25);
}

.btn-listio-accent:hover {
    transform: scale(0.97);
    color: white;
}

/* ===== CARD STYLES ===== */
.card-listio {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: all 0.3s;
}

.card-listio:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* ===== INPUT STYLES ===== */
.input-listio {
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: #f8f9fa;
    padding: 0 16px;
    font-size: 15px;
    transition: all 0.2s;
    width: 100%;
    outline: none;
}

.input-listio:focus {
    background: white;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.1);
}

.textarea-listio {
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: #f8f9fa;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.2s;
    width: 100%;
    outline: none;
    font-family: var(--font-body);
}

.textarea-listio:focus {
    background: white;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.1);
}

/* ===== PAGE TRANSITION ===== */
.page-enter {
    animation: page-enter 0.4s ease-out;
}

.badge-active {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-processing {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-sold {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-to-ship {
    background-color: #ffe4e6;
    color: #9f1239;
}

.badge-completed {
    background-color: #e0e7ff;
    color: #3730a3;
}
