:root {
    --sidebar-width: 230px;
    --primary: #2f6f4f;
    --primary-dark: #234f38;
    --bg: #f4f6f5;
    --card-bg: #ffffff;
    --border: #e4e7e6;
    --text-muted: #6b7570;
}

body {
    background: var(--bg);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1e2621;
}

.app-wrapper { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width);
    background: var(--primary-dark);
    color: #fff;
    min-height: 100vh;
    position: sticky;
    top: 0;
    padding: 1rem 0;
}
.sidebar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 0.5rem 1.25rem 1.5rem;
    letter-spacing: 0.5px;
}
.sidebar .nav-link {
    color: rgba(255,255,255,0.75);
    padding: 0.65rem 1.25rem;
    border-left: 3px solid transparent;
}
.sidebar .nav-link i { width: 20px; margin-right: 8px; }
.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-left-color: #ffd166;
}

.app-content { flex: 1; min-width: 0; }

.topbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
}
.quick-search { width: 320px; }

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.stat-card .icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: #fff;
}
.stat-card .value { font-size: 1.6rem; font-weight: 700; }
.stat-card .label { color: var(--text-muted); font-size: 0.85rem; }

.card {
    border: 1px solid var(--border);
    border-radius: 10px;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.login-card {
    background: #fff;
    border-radius: 14px;
    padding: 2.5rem;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.product-thumb {
    width: 48px; height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.image-drop-zone {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}
.image-drop-zone.dragover { border-color: var(--primary); background: #f0f7f3; }

.image-preview-item {
    position: relative;
    width: 90px; height: 90px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-item .remove-btn {
    position: absolute; top: 2px; right: 2px;
    background: rgba(220,53,69,0.9); color: #fff;
    border: none; border-radius: 50%;
    width: 20px; height: 20px; font-size: 12px; line-height: 1;
    cursor: pointer;
}
.image-preview-item .main-badge {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(47,111,79,0.85); color: #fff;
    font-size: 10px; text-align: center; padding: 2px 0;
}
