:root {
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --primary-color: #4f46e5;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --danger-color: #dc2626;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 15px;
}

.hero-section {
    text-align: center;
    margin-bottom: 30px;
}

.hero-section h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.hero-section h1 span {
    color: var(--primary-color);
}

.shortage-input-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.shortage-input-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: #475569;
}

.input-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.input-row input, .input-row select {
    flex: 1;
    min-width: 150px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
}

.input-row input[type="number"] {
    flex: 0 0 100px;
    min-width: 100px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.list-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.list-actions {
    display: flex;
    gap: 10px;
}

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

.shortage-card {
    background: var(--card-bg);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.shortage-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.card-info h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
}

.card-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.qty-badge {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 8px;
}

.supplier-badge {
    color: var(--primary-color);
    font-weight: 500;
}

.btn-delete {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    transition: opacity 0.2s;
}

.btn-delete:hover {
    opacity: 0.7;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f1f5f9;
    border-radius: var(--radius);
    color: #64748b;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
}

.btn-danger {
    background: #fee2e2;
    color: #b91c1c;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    .input-row {
        flex-direction: column;
    }
    .input-row input, .input-row select, .input-row button {
        width: 100%;
    }
    .list-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .list-actions {
        width: 100%;
    }
    .list-actions button {
        flex: 1;
    }
}
