@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #f3f4f6;
    --accent-color: #3b82f6;
    --text-main: #111827;
    --text-muted: #6b7280;
    --bg-app: #f9fafb;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Header & Toolbar */
.header-toolbar {
    background: var(--card-bg);
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.mall-info strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.btn-group {
    display: flex;
    gap: 12px;
}

button {
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

.btn-diag {
    background: var(--secondary-color);
    color: var(--text-main);
    padding: 8px 16px;
    font-size: 13px;
}

.btn-diag:hover {
    background: #e5e7eb;
}

.btn-logout {
    color: #ef4444;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

/* Search Box */
.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-search {
    background: var(--text-main);
    color: white;
    padding: 0 24px;
    border-radius: 12px;
}

.btn-search:hover {
    background: #000;
}

/* Product Items */
.search-results {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.product-item:last-child {
    border-bottom: none;
}

.product-item:hover {
    background: #f8fafc;
}

.product-item.active {
    background: #f0f7ff;
    border-left: 4px solid var(--primary-color);
}

.product-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 16px;
}

.product-info .name {
    font-weight: 600;
    margin-bottom: 4px;
}

.product-info .code {
    font-size: 12px;
    color: var(--text-muted);
}

/* Form Styles */
.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    background: #fafafa;
}

input:focus, select:focus, textarea:focus {
    background: #fff;
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-submit:disabled {
    background: #9ca3af;
    cursor: wait;
}