/* =====================================================
   Lumixa LMS - Bitpan Minimalist Theme
   Modern, Clean, Geometric Design
   ===================================================== */

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

/* === CSS Variables === */
:root {
    /* Colors - Minimalist Black & White with subtle accents */
    --bp-black: #0a0a0a;
    --bp-dark: #1a1a1a;
    --bp-gray-900: #262626;
    --bp-gray-800: #404040;
    --bp-gray-700: #525252;
    --bp-gray-600: #737373;
    --bp-gray-500: #a3a3a3;
    --bp-gray-400: #d4d4d4;
    --bp-gray-300: #e5e5e5;
    --bp-gray-200: #f0f0f0;
    --bp-gray-100: #f5f5f5;
    --bp-gray-50: #fafafa;
    --bp-white: #ffffff;

    /* Semantic Colors */
    --bp-primary: #0a0a0a;
    --bp-primary-hover: #262626;
    --bp-secondary: #737373;
    --bp-success: #4d9e6b;
    --bp-success-light: #eaf3ee;
    --bp-warning: #ca8a04;
    --bp-warning-light: #fef9c3;
    --bp-danger: #dc2626;
    --bp-danger-light: #fee2e2;
    --bp-info: #0284c7;
    --bp-info-light: #e0f2fe;

    /* Background & Surface */
    --bp-bg: #fafafa;
    --bp-surface: #ffffff;
    --bp-surface-hover: #f5f5f5;
    --bp-border: #e5e5e5;
    --bp-border-light: #f0f0f0;

    /* Text */
    --bp-text: #0a0a0a;
    --bp-text-secondary: #525252;
    --bp-text-muted: #a3a3a3;
    --bp-text-light: #d4d4d4;

    /* Spacing */
    --bp-space-xs: 4px;
    --bp-space-sm: 8px;
    --bp-space-md: 16px;
    --bp-space-lg: 24px;
    --bp-space-xl: 32px;
    --bp-space-2xl: 48px;

    /* Typography */
    --bp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bp-font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    --bp-text-xs: 11px;
    --bp-text-sm: 13px;
    --bp-text-base: 14px;
    --bp-text-lg: 16px;
    --bp-text-xl: 18px;
    --bp-text-2xl: 24px;
    --bp-text-3xl: 30px;

    /* Layout */
    --bp-sidebar-width: 260px;
    --bp-sidebar-collapsed: 72px;
    --bp-header-height: 64px;

    /* Effects */
    --bp-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --bp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --bp-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.03);
    --bp-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.04), 0 4px 6px rgba(0, 0, 0, 0.02);
    --bp-radius-sm: 6px;
    --bp-radius-md: 8px;
    --bp-radius-lg: 12px;
    --bp-radius-xl: 16px;
    --bp-transition: 0.15s ease;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--bp-font);
    background: var(--bp-bg);
    color: var(--bp-text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--bp-primary);
    text-decoration: none;
    transition: color var(--bp-transition);
}

a:hover {
    color: var(--bp-primary-hover);
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--bp-text);
}

h1 { font-size: var(--bp-text-3xl); }
h2 { font-size: var(--bp-text-2xl); }
h3 { font-size: var(--bp-text-xl); }
h4 { font-size: var(--bp-text-lg); }

/* === Layout === */
.bp-layout {
    display: flex;
    min-height: 100vh;
}

/* === Sidebar === */
.bp-sidebar {
    width: var(--bp-sidebar-width);
    background: var(--bp-white);
    border-right: 1px solid var(--bp-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: transform var(--bp-transition), width var(--bp-transition);
}

.bp-sidebar-header {
    padding: var(--bp-space-lg);
    border-bottom: 1px solid var(--bp-border-light);
}

.bp-logo {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
    color: var(--bp-text);
    font-weight: 600;
    font-size: var(--bp-text-lg);
    letter-spacing: -0.3px;
}

.bp-logo:hover {
    text-decoration: none;
    color: var(--bp-text);
}

.bp-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--bp-black);
    border-radius: var(--bp-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bp-white);
    font-size: 16px;
}

/* Navigation */
.bp-nav {
    flex: 1;
    padding: var(--bp-space-md) 0;
    overflow-y: auto;
}

.bp-nav::-webkit-scrollbar {
    width: 4px;
}

.bp-nav::-webkit-scrollbar-thumb {
    background: var(--bp-gray-300);
    border-radius: 2px;
}

.bp-nav-section {
    margin-bottom: var(--bp-space-md);
}

.bp-nav-title {
    padding: var(--bp-space-sm) var(--bp-space-lg);
    font-size: var(--bp-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bp-text-muted);
}

.bp-nav-list {
    list-style: none;
}

.bp-nav-item {
    margin: 2px var(--bp-space-sm);
}

.bp-nav-link {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
    padding: 10px var(--bp-space-md);
    border-radius: var(--bp-radius-md);
    color: var(--bp-text-secondary);
    font-weight: 500;
    transition: all var(--bp-transition);
}

.bp-nav-link:hover {
    background: var(--bp-gray-100);
    color: var(--bp-text);
    text-decoration: none;
}

.bp-nav-link.active {
    background: var(--bp-black);
    color: var(--bp-white);
}

.bp-nav-link.active:hover {
    background: var(--bp-gray-900);
    color: var(--bp-white);
}

.bp-nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0.85;
}

.bp-nav-link.active .bp-nav-icon {
    opacity: 1;
}

/* Collapsible Menu */
.bp-nav-group {
    margin: 2px var(--bp-space-sm);
}

.bp-nav-toggle {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
    width: 100%;
    padding: 10px var(--bp-space-md);
    background: transparent;
    border: none;
    border-radius: var(--bp-radius-md);
    color: var(--bp-text-secondary);
    font-size: var(--bp-text-base);
    font-weight: 500;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: all var(--bp-transition);
}

.bp-nav-toggle:hover {
    background: var(--bp-gray-100);
    color: var(--bp-text);
}

.bp-nav-toggle:focus {
    outline: none;
}

.bp-nav-toggle-text {
    flex: 1;
}

.bp-nav-arrow {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--bp-transition);
    opacity: 0.5;
}

.bp-nav-group.open .bp-nav-arrow {
    transform: rotate(180deg);
    opacity: 0.8;
}

.bp-nav-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.bp-nav-group.open .bp-nav-submenu {
    max-height: 500px;
}

.bp-nav-submenu .bp-nav-link {
    padding: 8px var(--bp-space-md) 8px 48px;
    font-size: var(--bp-text-sm);
    position: relative;
}

.bp-nav-submenu .bp-nav-link::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--bp-gray-400);
    transition: background var(--bp-transition);
}

.bp-nav-submenu .bp-nav-link:hover::before,
.bp-nav-submenu .bp-nav-link.active::before {
    background: currentColor;
}

.bp-nav-submenu .bp-nav-link-nested {
    padding-left: 62px;
}

.bp-nav-submenu .bp-nav-link-nested::before {
    left: 42px;
    width: 3px;
    height: 3px;
}

/* Sidebar Footer */
.bp-sidebar-footer {
    padding: var(--bp-space-md);
    border-top: 1px solid var(--bp-border-light);
}

.bp-user-menu {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
    padding: var(--bp-space-sm);
    border-radius: var(--bp-radius-md);
    transition: background var(--bp-transition);
}

.bp-user-menu:hover {
    background: var(--bp-gray-100);
}

.bp-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--bp-radius-md);
    background: var(--bp-gray-900);
    color: var(--bp-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--bp-text-sm);
    font-weight: 600;
}

.bp-user-info {
    flex: 1;
    min-width: 0;
}

.bp-user-name {
    font-weight: 500;
    font-size: var(--bp-text-sm);
    color: var(--bp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bp-user-role {
    font-size: var(--bp-text-xs);
    color: var(--bp-text-muted);
}

/* === Main Content === */
.bp-main {
    flex: 1;
    margin-left: var(--bp-sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.bp-header {
    background: var(--bp-white);
    border-bottom: 1px solid var(--bp-border);
    padding: 0 var(--bp-space-xl);
    height: var(--bp-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.bp-header-left {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
}

.bp-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--bp-radius-md);
    border: 1px solid var(--bp-border);
    background: var(--bp-white);
    color: var(--bp-text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all var(--bp-transition);
}

.bp-mobile-toggle:hover {
    background: var(--bp-gray-100);
}

.bp-page-title {
    font-size: var(--bp-text-xl);
    font-weight: 600;
    color: var(--bp-text);
}

.bp-header-right {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
}

/* Header Actions */
.bp-header-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--bp-radius-md);
    border: 1px solid var(--bp-border);
    background: var(--bp-white);
    color: var(--bp-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--bp-transition);
}

.bp-header-btn:hover {
    background: var(--bp-gray-100);
    color: var(--bp-text);
    border-color: var(--bp-gray-300);
}

/* Language Dropdown */
.bp-lang-dropdown {
    position: relative;
}

.bp-lang-toggle {
    display: flex;
    align-items: center;
    gap: var(--bp-space-sm);
    padding: 8px 12px;
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-md);
    cursor: pointer;
    font-size: var(--bp-text-sm);
    color: var(--bp-text);
    transition: all var(--bp-transition);
    font-family: inherit;
}

.bp-lang-toggle:hover {
    background: var(--bp-gray-50);
    border-color: var(--bp-gray-300);
}

.bp-lang-flag {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.bp-lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-md);
    box-shadow: var(--bp-shadow-lg);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--bp-transition);
    z-index: 100;
}

.bp-lang-dropdown:hover .bp-lang-menu,
.bp-lang-dropdown.open .bp-lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bp-lang-option {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
    padding: 10px var(--bp-space-md);
    color: var(--bp-text);
    transition: background var(--bp-transition);
}

.bp-lang-option:hover {
    background: var(--bp-gray-50);
    text-decoration: none;
}

.bp-lang-option.active {
    background: var(--bp-gray-100);
    font-weight: 500;
}

/* User Dropdown */
.bp-user-dropdown {
    position: relative;
}

.bp-user-toggle {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
    padding: 6px 12px 6px 6px;
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    cursor: pointer;
    transition: all var(--bp-transition);
}

.bp-user-toggle:hover {
    background: var(--bp-gray-50);
    border-color: var(--bp-gray-300);
}

.bp-user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-md);
    box-shadow: var(--bp-shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--bp-transition);
    z-index: 100;
}

.bp-user-dropdown:hover .bp-user-dropdown-menu,
.bp-user-dropdown.open .bp-user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Generic Dropdown */
.bp-dropdown {
    position: relative;
    display: inline-block;
}

.bp-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-md);
    box-shadow: var(--bp-shadow-lg);
    min-width: 200px;
    padding: 4px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--bp-transition);
    z-index: 100;
}

.bp-dropdown.open .bp-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bp-dropdown-menu li a {
    display: block;
    padding: 8px 16px;
    color: var(--bp-text);
    font-size: var(--bp-text-sm);
    text-decoration: none;
    transition: background var(--bp-transition);
}

.bp-dropdown-menu li a:hover {
    background: var(--bp-gray-50);
}

.bp-dropdown-header {
    padding: var(--bp-space-md);
    border-bottom: 1px solid var(--bp-border-light);
}

.bp-dropdown-header-name {
    font-weight: 600;
    font-size: var(--bp-text-sm);
}

.bp-dropdown-header-email {
    font-size: var(--bp-text-xs);
    color: var(--bp-text-muted);
}

.bp-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
    padding: 10px var(--bp-space-md);
    color: var(--bp-text);
    font-size: var(--bp-text-sm);
    transition: background var(--bp-transition);
}

.bp-dropdown-item:hover {
    background: var(--bp-gray-50);
    text-decoration: none;
}

.bp-dropdown-item.danger {
    color: var(--bp-danger);
}

.bp-dropdown-item.danger:hover {
    background: var(--bp-danger-light);
}

.bp-dropdown-divider {
    height: 1px;
    background: var(--bp-border-light);
    margin: 4px 0;
}

/* Content Area */
.bp-content {
    flex: 1;
    padding: var(--bp-space-xl);
}

/* Page Header */
.bp-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--bp-space-xl);
    flex-wrap: wrap;
    gap: var(--bp-space-md);
}

.bp-page-header-title {
    font-size: var(--bp-text-2xl);
    font-weight: 600;
}

.bp-page-header-actions {
    display: flex;
    gap: var(--bp-space-sm);
}

/* Footer */
.bp-footer {
    padding: var(--bp-space-lg) var(--bp-space-xl);
    border-top: 1px solid var(--bp-border);
    font-size: var(--bp-text-sm);
    color: var(--bp-text-muted);
    display: flex;
    justify-content: space-between;
}

/* === Cards === */
.bp-card {
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    box-shadow: var(--bp-shadow-xs);
    margin-bottom: var(--bp-space-lg);
    overflow: hidden;
}

.bp-card-header {
    padding: var(--bp-space-lg);
    border-bottom: 1px solid var(--bp-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bp-card-title {
    font-size: var(--bp-text-lg);
    font-weight: 600;
}

.bp-card-body {
    padding: var(--bp-space-lg);
}

.bp-card-footer {
    padding: var(--bp-space-md) var(--bp-space-lg);
    background: var(--bp-gray-50);
    border-top: 1px solid var(--bp-border-light);
}

/* === Buttons === */
.bp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--bp-space-sm);
    padding: 10px var(--bp-space-lg);
    border: none;
    border-radius: var(--bp-radius-md);
    font-family: inherit;
    font-size: var(--bp-text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--bp-transition);
    white-space: nowrap;
}

.bp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.bp-btn-primary:hover:not(:disabled) {
    background: var(--bp-gray-800);
}

.bp-btn-secondary {
    background: var(--bp-white);
    color: var(--bp-text);
    border: 1px solid var(--bp-border);
}

.bp-btn-secondary:hover:not(:disabled) {
    background: var(--bp-gray-50);
    border-color: var(--bp-gray-300);
}

.bp-btn-outline {
    background: transparent;
    color: var(--bp-text);
    border: 1px solid var(--bp-border);
}

.bp-btn-outline:hover:not(:disabled) {
    background: var(--bp-gray-100);
    border-color: var(--bp-gray-400);
}

.bp-btn-success {
    background: var(--bp-success);
    color: var(--bp-white);
}

.bp-btn-success:hover:not(:disabled) {
    background: #3d8a5b;
}

.bp-btn-danger {
    background: var(--bp-danger);
    color: var(--bp-white);
}

.bp-btn-danger:hover:not(:disabled) {
    background: #b91c1c;
}

.bp-btn-warning {
    background: var(--bp-warning);
    color: var(--bp-white);
}

.bp-btn-sm {
    padding: 6px 12px;
    font-size: var(--bp-text-xs);
}

.bp-btn-lg {
    padding: 14px var(--bp-space-xl);
    font-size: var(--bp-text-base);
}

.bp-btn-block {
    width: 100%;
}

.bp-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
}

.bp-btn-icon.bp-btn-sm {
    width: 30px;
    height: 30px;
}

/* === Forms === */
.bp-form-group {
    margin-bottom: var(--bp-space-lg);
}

.bp-label {
    display: block;
    font-size: var(--bp-text-sm);
    font-weight: 500;
    color: var(--bp-text);
    margin-bottom: var(--bp-space-sm);
}

.bp-input,
.bp-select,
.bp-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-md);
    font-family: inherit;
    font-size: var(--bp-text-base);
    color: var(--bp-text);
    background: var(--bp-white);
    transition: all var(--bp-transition);
}

.bp-input:hover,
.bp-select:hover,
.bp-textarea:hover {
    border-color: var(--bp-gray-400);
}

.bp-input:focus,
.bp-select:focus,
.bp-textarea:focus {
    outline: none;
    border-color: var(--bp-black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

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

.bp-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23525252' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.bp-textarea {
    min-height: 100px;
    resize: vertical;
}

.bp-input-error,
.bp-select-error,
.bp-textarea-error {
    border-color: var(--bp-danger);
}

.bp-input-error:focus,
.bp-select-error:focus,
.bp-textarea-error:focus {
    border-color: var(--bp-danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.bp-error-text {
    font-size: var(--bp-text-sm);
    color: var(--bp-danger);
    margin-top: var(--bp-space-xs);
}

.bp-help-text {
    font-size: var(--bp-text-sm);
    color: var(--bp-text-muted);
    margin-top: var(--bp-space-xs);
}

/* Checkbox & Radio */
.bp-checkbox,
.bp-radio {
    display: flex;
    align-items: center;
    gap: var(--bp-space-sm);
    cursor: pointer;
    font-size: var(--bp-text-base);
}

.bp-checkbox input,
.bp-radio input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--bp-black);
}

/* Form Row */
.bp-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--bp-space-lg);
}

.bp-form-actions {
    display: flex;
    gap: var(--bp-space-sm);
    margin-top: var(--bp-space-xl);
}

/* === Tables === */
.bp-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
}

.bp-table {
    width: 100%;
    border-collapse: collapse;
}

.bp-table th,
.bp-table td {
    padding: 14px var(--bp-space-md);
    text-align: left;
    border-bottom: 1px solid var(--bp-border-light);
}

.bp-table th {
    background: var(--bp-gray-50);
    font-weight: 600;
    font-size: var(--bp-text-sm);
    color: var(--bp-text-secondary);
    white-space: nowrap;
}

.bp-table td {
    font-size: var(--bp-text-sm);
}

.bp-table tbody tr:hover {
    background: var(--bp-gray-50);
}

.bp-table tbody tr:last-child td {
    border-bottom: none;
}

.bp-table-actions {
    display: flex;
    gap: var(--bp-space-xs);
}

/* === Badges === */
.bp-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: var(--bp-text-xs);
    font-weight: 500;
}

.bp-badge-default {
    background: var(--bp-gray-100);
    color: var(--bp-text-secondary);
}

.bp-badge-success {
    background: var(--bp-success-light);
    color: var(--bp-success);
}

.bp-badge-warning {
    background: var(--bp-warning-light);
    color: var(--bp-warning);
}

.bp-badge-danger {
    background: var(--bp-danger-light);
    color: var(--bp-danger);
}

.bp-badge-info {
    background: var(--bp-info-light);
    color: var(--bp-info);
}

.bp-badge-dark {
    background: var(--bp-gray-900);
    color: var(--bp-white);
}

/* Type badges */
.bp-badge-raw {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
}

.bp-badge-consumable {
    background: rgba(202, 138, 4, 0.1);
    color: #ca8a04;
}

.bp-badge-finished {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.bp-badge-part {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
}

/* Document type badges */
.bp-badge-type-receipt {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
}

.bp-badge-type-issue {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.bp-badge-type-transfer {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
}

.bp-badge-type-stocktake {
    background: rgba(202, 138, 4, 0.1);
    color: #ca8a04;
}

.bp-badge-type-adjustment {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

/* Item type badges */
.bp-badge-type-material {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
}

.bp-badge-type-component {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
}

.bp-badge-type-part {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.bp-badge-type-consumable {
    background: rgba(202, 138, 4, 0.1);
    color: #ca8a04;
}

.bp-badge-type-packaging {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.bp-badge-type-fasteners {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.bp-badge-type-product {
    background: rgba(234, 88, 12, 0.1);
    color: #ea580c;
}

/* === Alerts === */
.bp-alert {
    padding: var(--bp-space-md) var(--bp-space-lg);
    border-radius: var(--bp-radius-md);
    margin-bottom: var(--bp-space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--bp-space-md);
}

.bp-alert-content {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
}

.bp-alert-icon {
    font-size: 18px;
}

.bp-alert-success {
    background: var(--bp-success-light);
    border: 1px solid rgba(22, 163, 74, 0.2);
    color: #166534;
}

.bp-alert-danger {
    background: var(--bp-danger-light);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #991b1b;
}

.bp-alert-warning {
    background: var(--bp-warning-light);
    border: 1px solid rgba(202, 138, 4, 0.2);
    color: #854d0e;
}

.bp-alert-info {
    background: var(--bp-info-light);
    border: 1px solid rgba(2, 132, 199, 0.2);
    color: #075985;
}

.bp-alert-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
    padding: 4px;
    line-height: 1;
}

.bp-alert-close:hover {
    opacity: 1;
}

/* === Stats/Dashboard Cards === */
.bp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--bp-space-lg);
    margin-bottom: var(--bp-space-xl);
}

.bp-stat-card {
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    padding: var(--bp-space-lg);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--bp-transition);
}

.bp-stat-card:hover {
    box-shadow: var(--bp-shadow-md);
}

.bp-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--bp-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: var(--bp-space-md);
    background: var(--bp-gray-100);
    color: var(--bp-text);
}

.bp-stat-value {
    font-size: var(--bp-text-3xl);
    font-weight: 700;
    color: var(--bp-text);
    line-height: 1;
    margin-bottom: var(--bp-space-xs);
}

.bp-stat-label {
    font-size: var(--bp-text-sm);
    color: var(--bp-text-muted);
}

.bp-stat-link {
    margin-top: var(--bp-space-md);
    font-size: var(--bp-text-sm);
    color: var(--bp-text-secondary);
}

.bp-stat-link:hover {
    color: var(--bp-text);
}

/* === Filters === */
.bp-filters {
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    padding: var(--bp-space-lg);
    margin-bottom: var(--bp-space-lg);
}

.bp-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bp-space-md);
    align-items: flex-end;
}

.bp-filter-group {
    flex: 1;
    min-width: 160px;
}

.bp-filter-group.filter-search {
    flex: 2;
    min-width: 200px;
}

.bp-filter-group.filter-actions {
    flex: 0 0 auto;
    min-width: auto;
    display: flex;
    gap: var(--bp-space-sm);
}

.bp-filter-label {
    display: block;
    font-size: var(--bp-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bp-text-muted);
    margin-bottom: var(--bp-space-sm);
}

.bp-search-wrapper {
    position: relative;
}

.bp-search-wrapper .bp-input {
    padding-left: 40px;
}

.bp-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bp-text-muted);
    pointer-events: none;
}

/* === Pagination === */
.bp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--bp-space-xs);
    margin-top: var(--bp-space-xl);
}

.bp-pagination-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-md);
    background: var(--bp-white);
    color: var(--bp-text);
    font-size: var(--bp-text-sm);
    cursor: pointer;
    transition: all var(--bp-transition);
    text-decoration: none;
}

.bp-pagination-btn:hover {
    background: var(--bp-gray-50);
    border-color: var(--bp-gray-300);
    text-decoration: none;
}

.bp-pagination-btn.active {
    background: var(--bp-black);
    border-color: var(--bp-black);
    color: var(--bp-white);
}

.bp-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === Image Preview === */
.bp-img-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--bp-radius-md);
    border: 1px solid var(--bp-border);
    cursor: pointer;
    transition: transform var(--bp-transition);
}

.bp-img-thumb:hover {
    transform: scale(1.05);
}

.bp-image-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.bp-image-modal.open {
    display: flex;
}

.bp-image-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.bp-image-content {
    position: relative;
    background: var(--bp-white);
    padding: var(--bp-space-md);
    border-radius: var(--bp-radius-lg);
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
}

.bp-image-content img {
    max-width: 85vw;
    max-height: 80vh;
    display: block;
}

.bp-image-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bp-black);
    color: var(--bp-white);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Auth Pages === */
.bp-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--bp-space-lg);
    background: var(--bp-gray-50);
}

.bp-auth-container {
    width: 100%;
    max-width: 400px;
}

.bp-auth-card {
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-xl);
    box-shadow: var(--bp-shadow-lg);
    overflow: hidden;
}

.bp-auth-header {
    padding: var(--bp-space-2xl) var(--bp-space-xl) var(--bp-space-lg);
    text-align: center;
}

.bp-auth-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--bp-space-md);
    margin-bottom: var(--bp-space-lg);
}

.bp-auth-title {
    font-size: var(--bp-text-2xl);
    font-weight: 600;
    margin-bottom: var(--bp-space-xs);
}

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

.bp-auth-body {
    padding: 0 var(--bp-space-xl) var(--bp-space-2xl);
}

.bp-auth-footer {
    padding: var(--bp-space-md) var(--bp-space-xl);
    background: var(--bp-gray-50);
    text-align: center;
    font-size: var(--bp-text-sm);
    color: var(--bp-text-muted);
}

/* === Empty State === */
.bp-empty-state {
    text-align: center;
    padding: var(--bp-space-2xl);
}

.bp-empty-icon {
    font-size: 48px;
    color: var(--bp-gray-400);
    margin-bottom: var(--bp-space-lg);
}

.bp-empty-title {
    font-size: var(--bp-text-lg);
    font-weight: 600;
    margin-bottom: var(--bp-space-sm);
}

.bp-empty-text {
    color: var(--bp-text-muted);
    margin-bottom: var(--bp-space-lg);
}

/* === Loading Spinner === */
.bp-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--bp-border);
    border-top-color: var(--bp-black);
    border-radius: 50%;
    animation: bp-spin 0.6s linear infinite;
}

@keyframes bp-spin {
    to { transform: rotate(360deg); }
}

/* === Utilities === */
.bp-text-muted { color: var(--bp-text-muted); }
.bp-text-success { color: var(--bp-success); }
.bp-text-warning { color: var(--bp-warning); }
.bp-text-danger { color: var(--bp-danger); }
.bp-text-center { text-align: center; }
.bp-text-right { text-align: right; }

.bp-mb-0 { margin-bottom: 0; }
.bp-mb-sm { margin-bottom: var(--bp-space-sm); }
.bp-mb-md { margin-bottom: var(--bp-space-md); }
.bp-mb-lg { margin-bottom: var(--bp-space-lg); }
.bp-mb-xl { margin-bottom: var(--bp-space-xl); }

.bp-mt-0 { margin-top: 0; }
.bp-mt-sm { margin-top: var(--bp-space-sm); }
.bp-mt-md { margin-top: var(--bp-space-md); }
.bp-mt-lg { margin-top: var(--bp-space-lg); }

.bp-flex { display: flex; }
.bp-flex-center { display: flex; align-items: center; justify-content: center; }
.bp-flex-between { display: flex; align-items: center; justify-content: space-between; }
.bp-gap-sm { gap: var(--bp-space-sm); }
.bp-gap-md { gap: var(--bp-space-md); }

.bp-hidden { display: none; }

/* === Responsive === */
@media (max-width: 1200px) {
    .bp-sidebar {
        transform: translateX(-100%);
    }

    body.bp-sidebar-open .bp-sidebar {
        transform: translateX(0);
    }

    .bp-main {
        margin-left: 0;
    }

    .bp-mobile-toggle {
        display: flex;
    }

    .bp-sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: all var(--bp-transition);
    }

    body.bp-sidebar-open .bp-sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }

    body.bp-sidebar-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .bp-header {
        padding: 0 var(--bp-space-md);
    }

    .bp-content {
        padding: var(--bp-space-md);
    }

    .bp-page-title {
        font-size: var(--bp-text-lg);
    }

    .bp-stats-grid {
        grid-template-columns: 1fr;
    }

    .bp-filters-row {
        flex-direction: column;
    }

    .bp-filter-group {
        width: 100%;
        min-width: 100%;
    }

    .bp-form-row {
        grid-template-columns: 1fr;
    }

    .bp-form-actions {
        flex-direction: column;
    }

    .bp-btn {
        width: 100%;
    }

    .bp-table th,
    .bp-table td {
        padding: 10px var(--bp-space-sm);
    }
}

@media (max-width: 576px) {
    .bp-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bp-page-header-actions {
        width: 100%;
    }

    .bp-page-header-actions .bp-btn {
        flex: 1;
    }

    .bp-header-right {
        gap: var(--bp-space-sm);
    }

    .bp-user-toggle span:not(.bp-user-avatar) {
        display: none;
    }
}

/* === Grid System === */
.bp-grid {
    display: grid;
    gap: var(--bp-space-lg);
}

.bp-grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.bp-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.bp-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.bp-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.bp-grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.bp-grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

.bp-col-span-1 { grid-column: span 1; }
.bp-col-span-2 { grid-column: span 2; }
.bp-col-span-3 { grid-column: span 3; }
.bp-col-span-4 { grid-column: span 4; }
.bp-col-span-5 { grid-column: span 5; }
.bp-col-span-6 { grid-column: span 6; }
.bp-col-span-full { grid-column: 1 / -1; }

/* === Tabs === */
.bp-tabs {
    display: flex;
    border-bottom: 1px solid var(--bp-border);
    margin-bottom: var(--bp-space-lg);
}

.bp-tab {
    padding: var(--bp-space-md) var(--bp-space-lg);
    border: none;
    background: transparent;
    color: var(--bp-text-secondary);
    font-size: var(--bp-text-sm);
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--bp-transition);
    font-family: inherit;
}

.bp-tab:hover {
    color: var(--bp-text);
}

.bp-tab.bp-tab-active,
.bp-tab-active {
    color: var(--bp-text);
    border-bottom-color: var(--bp-black);
}

.bp-tab-content {
    display: block;
}

.bp-tab-pane {
    display: none;
}

.bp-tab-pane.bp-active,
.bp-tab-pane.bp-tab-pane-active,
.bp-tab-content.bp-tab-pane-active {
    display: block;
}

/* === Progress === */
.bp-progress {
    height: 8px;
    background: var(--bp-gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.bp-progress-bar {
    height: 100%;
    background: var(--bp-black);
    transition: width 0.3s ease;
}

.bp-progress-bar-success { background: var(--bp-success); }
.bp-progress-bar-warning { background: var(--bp-warning); }
.bp-progress-bar-danger { background: var(--bp-danger); }
.bp-progress-bar-info { background: var(--bp-info); }

/* === Modal === */
.bp-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--bp-space-lg);
}

.bp-modal.open {
    display: flex;
}

.bp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.bp-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    z-index: 1;
}

.bp-modal-dialog.bp-modal-lg {
    max-width: 720px;
}

.bp-modal-content {
    background: var(--bp-white);
    border-radius: var(--bp-radius-lg);
    box-shadow: var(--bp-shadow-lg);
    width: 100%;
    max-height: 90vh;
    overflow: auto;
}

.bp-modal-header {
    padding: var(--bp-space-lg);
    border-bottom: 1px solid var(--bp-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bp-modal-title {
    font-size: var(--bp-text-lg);
    font-weight: 600;
}

.bp-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: var(--bp-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bp-radius-md);
}

.bp-modal-close:hover {
    background: var(--bp-gray-100);
    color: var(--bp-text);
}

.bp-modal-body {
    padding: var(--bp-space-lg);
}

.bp-modal-footer {
    padding: var(--bp-space-md) var(--bp-space-lg);
    border-top: 1px solid var(--bp-border-light);
    display: flex;
    justify-content: flex-end;
    gap: var(--bp-space-sm);
}

/* === Button Groups === */
.bp-btn-group {
    display: inline-flex;
}

.bp-btn-group .bp-btn {
    border-radius: 0;
}

.bp-btn-group .bp-btn:first-child {
    border-radius: var(--bp-radius-md) 0 0 var(--bp-radius-md);
}

.bp-btn-group .bp-btn:last-child {
    border-radius: 0 var(--bp-radius-md) var(--bp-radius-md) 0;
}

.bp-btn-group .bp-btn:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.2);
}

/* === Input Groups === */
.bp-input-group {
    display: flex;
}

.bp-input-group .bp-input {
    border-radius: 0;
    flex: 1;
}

.bp-input-group .bp-input:first-child {
    border-radius: var(--bp-radius-md) 0 0 var(--bp-radius-md);
}

.bp-input-group .bp-input:last-child {
    border-radius: 0 var(--bp-radius-md) var(--bp-radius-md) 0;
}

.bp-input-group .bp-btn {
    border-radius: 0;
}

.bp-input-group .bp-btn:last-child {
    border-radius: 0 var(--bp-radius-md) var(--bp-radius-md) 0;
}

/* === Table Variants === */
.bp-table-hover tbody tr:hover {
    background: var(--bp-gray-50);
}

.bp-table-striped tbody tr:nth-child(odd) {
    background: var(--bp-gray-50);
}

.bp-table-borderless,
.bp-table-borderless th,
.bp-table-borderless td {
    border: none;
}

/* === Nav Tabs (Alternative) === */
.bp-nav-tabs {
    display: flex;
    border-bottom: 1px solid var(--bp-border);
    margin-bottom: var(--bp-space-lg);
    gap: var(--bp-space-xs);
}

.bp-nav-tab {
    padding: var(--bp-space-md) var(--bp-space-lg);
    color: var(--bp-text-secondary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--bp-transition);
}

.bp-nav-tab:hover {
    color: var(--bp-text);
    text-decoration: none;
}

.bp-nav-tab.active {
    color: var(--bp-text);
    border-bottom-color: var(--bp-black);
}

.bp-nav-item {
    list-style: none;
}

/* === Color Input === */
.bp-input-color {
    width: 48px;
    min-width: 48px;
    height: 42px;
    padding: 4px;
    cursor: pointer;
    border-radius: var(--bp-radius-md);
}

/* === Divider === */
.bp-divider {
    height: 1px;
    background: var(--bp-border);
    margin: var(--bp-space-lg) 0;
}

/* === Error Pages === */
.bp-error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bp-bg);
    padding: var(--bp-space-lg);
}

.bp-error-wrapper {
    text-align: center;
    max-width: 500px;
}

.bp-error-content {
    margin-bottom: var(--bp-space-xl);
}

.bp-error-code {
    display: flex;
    justify-content: center;
    gap: var(--bp-space-sm);
    margin-bottom: var(--bp-space-xl);
}

.bp-error-digit {
    font-size: 80px;
    font-weight: 700;
    color: var(--bp-black);
    line-height: 1;
}

.bp-error-title {
    font-size: var(--bp-text-2xl);
    font-weight: 600;
    margin-bottom: var(--bp-space-md);
}

.bp-error-text {
    color: var(--bp-text-muted);
    margin-bottom: var(--bp-space-xl);
}

.bp-error-actions {
    display: flex;
    gap: var(--bp-space-md);
    justify-content: center;
}

/* === Additional Utilities === */
.bp-border-top { border-top: 1px solid var(--bp-border); }
.bp-border-bottom { border-bottom: 1px solid var(--bp-border); }
.bp-border-left { border-left: 1px solid var(--bp-border); }
.bp-border-right { border-right: 1px solid var(--bp-border); }

.bp-pt-sm { padding-top: var(--bp-space-sm); }
.bp-pt-md { padding-top: var(--bp-space-md); }
.bp-pt-lg { padding-top: var(--bp-space-lg); }
.bp-pb-sm { padding-bottom: var(--bp-space-sm); }
.bp-pb-md { padding-bottom: var(--bp-space-md); }
.bp-pb-lg { padding-bottom: var(--bp-space-lg); }

.bp-pl-sm { padding-left: var(--bp-space-sm); }
.bp-pl-md { padding-left: var(--bp-space-md); }
.bp-pr-sm { padding-right: var(--bp-space-sm); }
.bp-pr-md { padding-right: var(--bp-space-md); }

.bp-me-sm { margin-right: var(--bp-space-sm); }
.bp-me-md { margin-right: var(--bp-space-md); }
.bp-ms-sm { margin-left: var(--bp-space-sm); }
.bp-ms-md { margin-left: var(--bp-space-md); }

.bp-items-center { align-items: center; }
.bp-items-start { align-items: flex-start; }
.bp-items-end { align-items: flex-end; }
.bp-justify-center { justify-content: center; }
.bp-justify-between { justify-content: space-between; }
.bp-justify-end { justify-content: flex-end; }
.bp-justify-start { justify-content: flex-start; }

.bp-flex-wrap { flex-wrap: wrap; }
.bp-flex-col { flex-direction: column; }
.bp-flex-1 { flex: 1; }
.bp-flex-shrink-0 { flex-shrink: 0; }

.bp-text-primary { color: var(--bp-primary); }
.bp-text-secondary { color: var(--bp-text-secondary); }
.bp-text-semibold { font-weight: 600; }
.bp-text-bold { font-weight: 700; }
.bp-text-sm { font-size: var(--bp-text-sm); }
.bp-text-xs { font-size: var(--bp-text-xs); }
.bp-text-lg { font-size: var(--bp-text-lg); }
.bp-uppercase { text-transform: uppercase; }
.bp-capitalize { text-transform: capitalize; }
.bp-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bp-w-full { width: 100%; }
.bp-h-full { height: 100%; }
.bp-min-w-0 { min-width: 0; }
.bp-overflow-auto { overflow: auto; }
.bp-overflow-hidden { overflow: hidden; }

.bp-rounded { border-radius: var(--bp-radius-md); }
.bp-rounded-lg { border-radius: var(--bp-radius-lg); }
.bp-rounded-full { border-radius: 9999px; }

.bp-bg-white { background: var(--bp-white); }
.bp-bg-gray-50 { background: var(--bp-gray-50); }
.bp-bg-gray-100 { background: var(--bp-gray-100); }

.bp-cursor-pointer { cursor: pointer; }

/* === Responsive Grid === */
@media (max-width: 992px) {
    .bp-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .bp-grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .bp-grid-cols-4,
    .bp-grid-cols-3,
    .bp-grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .bp-col-span-2,
    .bp-col-span-3,
    .bp-col-span-4 {
        grid-column: span 1;
    }

    .bp-tabs {
        flex-wrap: wrap;
    }

    .bp-error-digit {
        font-size: 60px;
    }
}

/* === Avatars === */
.bp-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--bp-radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bp-gray-100);
    flex-shrink: 0;
}

.bp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bp-avatar-sm {
    width: 36px;
    height: 36px;
}

.bp-avatar-lg {
    width: 64px;
    height: 64px;
}

.bp-avatar-xl {
    width: 360px;
    height: 360px;
    border-radius: var(--bp-radius-lg);
    border: 1px solid var(--bp-border);
}

.bp-avatar-placeholder {
    background: var(--bp-gray-100);
    color: var(--bp-gray-400);
    font-size: 18px;
}

.bp-avatar-placeholder.bp-avatar-xl {
    font-size: 48px;
}

/* === Image Utilities === */
.bp-img-fluid {
    max-width: 100%;
    height: auto;
}

/* === Stats Row (for show pages) === */
.bp-stats-row {
    display: flex;
    align-items: center;
    gap: var(--bp-space-xl);
}

.bp-stat-item {
    text-align: center;
    padding: var(--bp-space-md) var(--bp-space-lg);
}

.bp-stat-item h2 {
    font-size: var(--bp-text-3xl);
    font-weight: 700;
    margin-bottom: var(--bp-space-xs);
}

.bp-stat-item p {
    color: var(--bp-text-muted);
    font-size: var(--bp-text-sm);
}

/* === Additional Layout Utilities === */
.bp-mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.bp-mb-1 { margin-bottom: var(--bp-space-xs); }
.bp-mb-4 { margin-bottom: var(--bp-space-lg); }

.bp-no-padding {
    padding: 0 !important;
}

.bp-card-body.bp-no-padding {
    padding: 0;
}

.bp-gap-4 {
    gap: var(--bp-space-lg);
}

/* === 12-Column Grid === */
.bp-grid-cols-12 {
    grid-template-columns: repeat(12, 1fr);
}

.bp-col-span-8 { grid-column: span 8; }
.bp-col-span-7 { grid-column: span 7; }

@media (max-width: 992px) {
    .bp-grid-cols-12 {
        grid-template-columns: 1fr;
    }

    .bp-col-span-4,
    .bp-col-span-5,
    .bp-col-span-7,
    .bp-col-span-8 {
        grid-column: span 1;
    }

    .bp-stats-row {
        flex-wrap: wrap;
    }

    .bp-stat-item {
        flex: 1;
        min-width: 100px;
    }
}

/* === Stats Cards (horizontal layout) === */
.bp-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--bp-space-lg);
    margin-bottom: var(--bp-space-lg);
}

.bp-stats-cards .bp-card {
    margin-bottom: 0;
}

.bp-stat-row {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
}

.bp-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--bp-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.bp-stat-icon-primary {
    background: rgba(10, 10, 10, 0.1);
    color: var(--bp-black);
}

.bp-stat-icon-success {
    background: var(--bp-success-light);
    color: var(--bp-success);
}

.bp-stat-icon-warning {
    background: var(--bp-warning-light);
    color: var(--bp-warning);
}

.bp-stat-icon-danger {
    background: var(--bp-danger-light);
    color: var(--bp-danger);
}

.bp-stat-icon-info {
    background: var(--bp-info-light);
    color: var(--bp-info);
}

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

.bp-stat-content p {
    margin: 0;
    font-size: var(--bp-text-sm);
}

.bp-stat-content h4 {
    margin: 0;
    font-size: var(--bp-text-xl);
    font-weight: 700;
}

/* === Attribute Item === */
.bp-attribute-item {
    padding: var(--bp-space-md);
    background: var(--bp-gray-50);
    border-radius: var(--bp-radius-md);
}

.bp-attribute-item p {
    font-size: var(--bp-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bp-attribute-item h6 {
    font-size: var(--bp-text-base);
    font-weight: 600;
}

/* === Text Medium Utility === */
.bp-text-medium {
    font-weight: 500;
}

/* === Search Select Component === */
.bp-search-select {
    position: relative;
    width: 100%;
}

.bp-search-select > select {
    display: none !important;
}

.bp-ss-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-md);
    background: var(--bp-white);
    cursor: pointer;
    font-size: var(--bp-text-base);
    font-family: var(--bp-font);
    min-height: 40px;
    transition: border-color var(--bp-transition), box-shadow var(--bp-transition);
    user-select: none;
    gap: 8px;
}

.bp-ss-trigger:hover {
    border-color: var(--bp-gray-400);
}

.bp-search-select.bp-ss-open .bp-ss-trigger,
.bp-ss-trigger:focus {
    border-color: var(--bp-black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
    outline: none;
}

.bp-ss-trigger-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bp-ss-trigger-text .bp-ss-sku {
    display: inline-flex;
    padding: 1px 5px;
    background: var(--bp-gray-100);
    border: 1px solid var(--bp-gray-300);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--bp-font-mono);
    color: var(--bp-gray-700);
    white-space: nowrap;
    flex-shrink: 0;
}

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

.bp-ss-arrow {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--bp-gray-500);
    transition: transform 0.2s ease;
}

.bp-search-select.bp-ss-open .bp-ss-arrow {
    transform: rotate(180deg);
}

/* Dropdown panel */
.bp-ss-dropdown {
    position: fixed;
    z-index: 9999;
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    display: none;
    min-width: 280px;
    max-width: 480px;
    overflow: hidden;
}

.bp-search-select.bp-ss-open .bp-ss-dropdown {
    display: block;
    animation: bpSSFadeIn 0.15s ease;
}

@keyframes bpSSFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Search input */
.bp-ss-search {
    padding: 8px 10px;
    border-bottom: 1px solid var(--bp-border-light);
    background: var(--bp-gray-50);
}

.bp-ss-search-input {
    width: 100%;
    padding: 7px 10px 7px 32px;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-sm);
    font-size: var(--bp-text-sm);
    font-family: var(--bp-font);
    color: var(--bp-text);
    background: var(--bp-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 10px center;
    outline: none;
    transition: border-color var(--bp-transition);
}

.bp-ss-search-input:focus {
    border-color: var(--bp-black);
}

.bp-ss-search-input::placeholder {
    color: var(--bp-text-muted);
}

/* Options list */
.bp-ss-options {
    max-height: 260px;
    overflow-y: auto;
    padding: 4px;
    scrollbar-width: thin;
}

.bp-ss-options::-webkit-scrollbar {
    width: 5px;
}

.bp-ss-options::-webkit-scrollbar-track {
    background: transparent;
}

.bp-ss-options::-webkit-scrollbar-thumb {
    background: var(--bp-gray-300);
    border-radius: 10px;
}

/* Individual option */
.bp-ss-option {
    padding: 8px 10px;
    cursor: pointer;
    border-radius: var(--bp-radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.1s;
    margin-bottom: 1px;
    position: relative;
}

.bp-ss-option:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10px;
    right: 10px;
    height: 1px;
    background: var(--bp-border-light);
}

.bp-ss-option:hover {
    background: var(--bp-gray-50);
}

.bp-ss-option.bp-ss-highlighted {
    background: var(--bp-gray-100);
}

.bp-ss-option.bp-ss-selected {
    background: #f0fdf4;
}

.bp-ss-option.bp-ss-selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--bp-success);
    border-radius: 0 3px 3px 0;
}

.bp-ss-option-placeholder {
    color: var(--bp-text-muted);
    font-style: italic;
}

/* Option parts */
.bp-ss-sku {
    display: inline-flex;
    padding: 2px 6px;
    background: var(--bp-gray-100);
    border: 1px solid var(--bp-gray-300);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--bp-font-mono);
    color: var(--bp-gray-700);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.2px;
}

.bp-ss-name {
    flex: 1;
    font-size: var(--bp-text-sm);
    color: var(--bp-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bp-ss-meta {
    font-size: var(--bp-text-xs);
    color: var(--bp-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Empty state */
.bp-ss-empty {
    padding: 20px 10px;
    text-align: center;
    color: var(--bp-text-muted);
    font-size: var(--bp-text-sm);
}

/* Compact variant for table cells */
.bp-search-select.bp-ss-compact .bp-ss-trigger {
    padding: 4px 8px;
    min-height: 32px;
    font-size: var(--bp-text-sm);
    border-radius: var(--bp-radius-sm);
}

.bp-search-select.bp-ss-compact .bp-ss-trigger-text .bp-ss-sku {
    font-size: 10px;
    padding: 0 4px;
}

/* === Dark Mode (Optional) === */
@media (prefers-color-scheme: dark) {
    :root {
        /* Uncomment to enable auto dark mode */
        /* --bp-bg: #0a0a0a;
        --bp-surface: #171717;
        --bp-border: #262626;
        --bp-text: #fafafa;
        --bp-text-secondary: #a3a3a3; */
    }
}

/* =====================================================
   Admin Dashboard Styles
   ===================================================== */

.bp-admin-dashboard {
    max-width: 1400px;
    margin: 0 auto;
}

/* Section Styling */
.bp-section {
    margin-bottom: var(--bp-space-2xl);
}

.bp-section-title {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
    font-size: var(--bp-text-lg);
    font-weight: 600;
    color: var(--bp-text);
    margin-bottom: var(--bp-space-lg);
    padding-bottom: var(--bp-space-md);
    border-bottom: 1px solid var(--bp-border-light);
}

.bp-section-title i {
    color: var(--bp-text-muted);
    font-size: 20px;
}

.bp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--bp-space-lg);
}

.bp-section-header .bp-section-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Statistics Grid - 4 columns */
.bp-stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--bp-space-lg);
}

@media (max-width: 1200px) {
    .bp-stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bp-stats-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Stat Cards */
.bp-stat-card {
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    padding: var(--bp-space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--bp-space-md);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.bp-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bp-gray-300);
}

.bp-stat-card:hover {
    box-shadow: var(--bp-shadow-md);
    transform: translateY(-2px);
}

.bp-stat-card-primary::before { background: var(--bp-primary); }
.bp-stat-card-success::before { background: var(--bp-success); }
.bp-stat-card-warning::before { background: var(--bp-warning); }
.bp-stat-card-danger::before { background: var(--bp-danger); }
.bp-stat-card-info::before { background: var(--bp-info); }
.bp-stat-card-secondary::before { background: var(--bp-secondary); }

.bp-stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--bp-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--bp-gray-100);
    color: var(--bp-text);
}

.bp-stat-card-primary .bp-stat-card-icon {
    background: rgba(10, 10, 10, 0.08);
    color: var(--bp-primary);
}

.bp-stat-card-success .bp-stat-card-icon {
    background: var(--bp-success-light);
    color: var(--bp-success);
}

.bp-stat-card-warning .bp-stat-card-icon {
    background: var(--bp-warning-light);
    color: var(--bp-warning);
}

.bp-stat-card-info .bp-stat-card-icon {
    background: var(--bp-info-light);
    color: var(--bp-info);
}

.bp-stat-card-secondary .bp-stat-card-icon {
    background: rgba(115, 115, 115, 0.1);
    color: var(--bp-secondary);
}

.bp-stat-card-content {
    flex: 1;
}

.bp-stat-card-label {
    font-size: var(--bp-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bp-text-muted);
    margin-bottom: var(--bp-space-md);
}

.bp-stat-card-values {
    display: flex;
    gap: var(--bp-space-lg);
    flex-wrap: wrap;
}

.bp-stat-item-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bp-stat-number {
    font-size: var(--bp-text-2xl);
    font-weight: 700;
    line-height: 1;
    color: var(--bp-text);
}

.bp-stat-item-inline .bp-stat-label {
    font-size: var(--bp-text-xs);
    color: var(--bp-text-muted);
    margin-top: 2px;
}

.bp-stat-card-actions {
    display: flex;
    gap: var(--bp-space-sm);
    flex-wrap: wrap;
    padding-top: var(--bp-space-md);
    border-top: 1px solid var(--bp-border-light);
}

/* Admin Menu Grid */
.bp-admin-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--bp-space-lg);
}

@media (max-width: 1100px) {
    .bp-admin-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .bp-admin-menu-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin Menu Cards */
.bp-admin-menu-card {
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
}

.bp-admin-menu-card:hover {
    box-shadow: var(--bp-shadow-md);
    transform: translateY(-2px);
}

.bp-admin-menu-header {
    display: flex;
    align-items: flex-start;
    gap: var(--bp-space-md);
    padding: var(--bp-space-lg);
    background: var(--bp-gray-50);
}

.bp-admin-menu-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--bp-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.bp-admin-menu-primary .bp-admin-menu-icon {
    background: rgba(10, 10, 10, 0.08);
    color: var(--bp-primary);
}

.bp-admin-menu-success .bp-admin-menu-icon {
    background: var(--bp-success-light);
    color: var(--bp-success);
}

.bp-admin-menu-warning .bp-admin-menu-icon {
    background: var(--bp-warning-light);
    color: var(--bp-warning);
}

.bp-admin-menu-info .bp-admin-menu-icon {
    background: var(--bp-info-light);
    color: var(--bp-info);
}

.bp-admin-menu-purple .bp-admin-menu-icon {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
}

.bp-admin-menu-dark .bp-admin-menu-icon {
    background: rgba(10, 10, 10, 0.08);
    color: var(--bp-gray-700);
}

.bp-admin-menu-info h3,
.bp-admin-menu-info p {
    margin: 0;
}

.bp-admin-menu-header h3 {
    font-size: var(--bp-text-base);
    font-weight: 600;
    color: var(--bp-text);
    margin: 0 0 4px 0;
}

.bp-admin-menu-header p {
    font-size: var(--bp-text-sm);
    color: var(--bp-text-muted);
    margin: 0;
    line-height: 1.4;
}

.bp-admin-menu-body {
    padding: var(--bp-space-sm);
}

.bp-admin-menu-link {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
    padding: var(--bp-space-md);
    border-radius: var(--bp-radius-md);
    color: var(--bp-text-secondary);
    transition: all 0.15s ease;
}

.bp-admin-menu-link:hover {
    background: var(--bp-gray-50);
    color: var(--bp-text);
    text-decoration: none;
}

.bp-admin-menu-link i:first-child {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.bp-admin-menu-link span {
    flex: 1;
    font-weight: 500;
}

.bp-admin-menu-arrow {
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.bp-admin-menu-link:hover .bp-admin-menu-arrow {
    opacity: 0.5;
    transform: translateX(2px);
}

/* Bottom Grid: Quick Actions + Recent Activity */
.bp-admin-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--bp-space-xl);
    align-items: start;
}

@media (max-width: 1000px) {
    .bp-admin-bottom-grid {
        grid-template-columns: 1fr;
    }
}

/* Quick Actions */
.bp-admin-quick-actions {
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    padding: var(--bp-space-lg);
}

.bp-admin-quick-actions .bp-section-title {
    margin-bottom: var(--bp-space-lg);
    padding-bottom: var(--bp-space-md);
    border-bottom: 1px solid var(--bp-border-light);
}

.bp-quick-actions-list {
    display: flex;
    flex-direction: column;
    gap: var(--bp-space-md);
}

.bp-quick-action {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
    padding: var(--bp-space-md);
    border-radius: var(--bp-radius-md);
    background: var(--bp-gray-50);
    color: var(--bp-text);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.bp-quick-action:hover {
    text-decoration: none;
    transform: translateX(4px);
    border-color: var(--bp-border);
}

.bp-quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--bp-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.bp-quick-action-primary .bp-quick-action-icon {
    background: rgba(10, 10, 10, 0.08);
    color: var(--bp-primary);
}

.bp-quick-action-success .bp-quick-action-icon {
    background: var(--bp-success-light);
    color: var(--bp-success);
}

.bp-quick-action-info .bp-quick-action-icon {
    background: var(--bp-info-light);
    color: var(--bp-info);
}

.bp-quick-action-content {
    flex: 1;
    min-width: 0;
}

.bp-quick-action-title {
    display: block;
    font-weight: 600;
    font-size: var(--bp-text-sm);
    color: var(--bp-text);
}

.bp-quick-action-desc {
    display: block;
    font-size: var(--bp-text-xs);
    color: var(--bp-text-muted);
    margin-top: 2px;
}

.bp-quick-action-arrow {
    color: var(--bp-text-muted);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.bp-quick-action:hover .bp-quick-action-arrow {
    opacity: 1;
}

/* Recent Activity */
.bp-admin-recent-activity {
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    padding: var(--bp-space-lg);
}

.bp-admin-recent-activity .bp-section-header {
    padding-bottom: var(--bp-space-md);
    border-bottom: 1px solid var(--bp-border-light);
}

.bp-activity-table-wrapper {
    margin-top: var(--bp-space-md);
    overflow-x: auto;
}

.bp-activity-table-wrapper .bp-table {
    margin: 0;
}

.bp-activity-table-wrapper .bp-table th,
.bp-activity-table-wrapper .bp-table td {
    padding: var(--bp-space-md);
}

.bp-activity-user {
    font-weight: 500;
    color: var(--bp-text);
}

.bp-activity-entity {
    color: var(--bp-text-secondary);
}

.bp-activity-time {
    color: var(--bp-text-muted);
    font-size: var(--bp-text-sm);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bp-section-title {
        font-size: var(--bp-text-base);
    }

    .bp-stat-card-values {
        gap: var(--bp-space-md);
    }

    .bp-stat-number {
        font-size: var(--bp-text-xl);
    }

    .bp-admin-menu-header {
        padding: var(--bp-space-md);
    }

    .bp-admin-menu-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .bp-admin-bottom-grid {
        gap: var(--bp-space-lg);
    }
}

/* =====================================================
   Diagnostics Page Styles
   ===================================================== */

.bp-diagnostics-page {
    max-width: 1400px;
    margin: 0 auto;
}

/* Summary Cards */
.bp-diag-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--bp-space-lg);
    margin-bottom: var(--bp-space-xl);
}

@media (max-width: 1000px) {
    .bp-diag-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .bp-diag-summary {
        grid-template-columns: 1fr;
    }
}

.bp-diag-summary-card {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
    padding: var(--bp-space-lg);
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    transition: all 0.2s ease;
}

.bp-diag-summary-card:hover {
    box-shadow: var(--bp-shadow-md);
    transform: translateY(-2px);
}

.bp-diag-summary-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--bp-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.bp-diag-card-success .bp-diag-summary-icon {
    background: var(--bp-success-light);
    color: var(--bp-success);
}

.bp-diag-card-warning .bp-diag-summary-icon {
    background: var(--bp-warning-light);
    color: var(--bp-warning);
}

.bp-diag-card-danger .bp-diag-summary-icon {
    background: var(--bp-danger-light);
    color: var(--bp-danger);
}

.bp-diag-card-info .bp-diag-summary-icon {
    background: var(--bp-info-light);
    color: var(--bp-info);
}

.bp-diag-summary-content {
    flex: 1;
    min-width: 0;
}

.bp-diag-summary-label {
    display: block;
    font-size: var(--bp-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bp-text-muted);
    margin-bottom: 2px;
}

.bp-diag-summary-value {
    display: block;
    font-size: var(--bp-text-lg);
    font-weight: 700;
    color: var(--bp-text);
}

/* Diagnostics Row (2 columns) */
.bp-diag-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--bp-space-lg);
    margin-bottom: var(--bp-space-lg);
}

@media (max-width: 900px) {
    .bp-diag-row {
        grid-template-columns: 1fr;
    }
}

/* Diagnostics Card */
.bp-diag-card {
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    overflow: hidden;
}

.bp-diag-card-full {
    margin-bottom: var(--bp-space-lg);
}

.bp-diag-card-header {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
    padding: var(--bp-space-lg);
    background: var(--bp-gray-50);
    border-bottom: 1px solid var(--bp-border-light);
}

.bp-diag-card-header h3 {
    flex: 1;
    margin: 0;
    font-size: var(--bp-text-base);
    font-weight: 600;
}

.bp-diag-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--bp-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.bp-diag-icon-primary {
    background: rgba(10, 10, 10, 0.08);
    color: var(--bp-primary);
}

.bp-diag-icon-success {
    background: var(--bp-success-light);
    color: var(--bp-success);
}

.bp-diag-icon-warning {
    background: var(--bp-warning-light);
    color: var(--bp-warning);
}

.bp-diag-icon-danger {
    background: var(--bp-danger-light);
    color: var(--bp-danger);
}

.bp-diag-icon-info {
    background: var(--bp-info-light);
    color: var(--bp-info);
}

.bp-diag-icon-purple {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
}

.bp-diag-icon-dark {
    background: rgba(10, 10, 10, 0.08);
    color: var(--bp-gray-700);
}

.bp-diag-card-body {
    padding: var(--bp-space-lg);
}

.bp-diag-card-body-compact {
    padding: var(--bp-space-md);
}

/* Status Bar */
.bp-diag-status-bar {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
    padding: var(--bp-space-md) var(--bp-space-lg);
    border-radius: var(--bp-radius-md);
    font-weight: 500;
}

.bp-diag-status-success {
    background: var(--bp-success-light);
    color: #166534;
}

.bp-diag-status-warning {
    background: var(--bp-warning-light);
    color: #854d0e;
}

.bp-diag-status-danger {
    background: var(--bp-danger-light);
    color: #991b1b;
}

.bp-diag-status-bar i {
    font-size: 20px;
}

/* Info Grid */
.bp-diag-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--bp-space-md);
}

@media (max-width: 600px) {
    .bp-diag-info-grid {
        grid-template-columns: 1fr;
    }
}

.bp-diag-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--bp-space-sm) var(--bp-space-md);
    background: var(--bp-gray-50);
    border-radius: var(--bp-radius-md);
}

.bp-diag-info-label {
    font-size: var(--bp-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bp-text-muted);
}

.bp-diag-info-value {
    font-size: var(--bp-text-sm);
    font-weight: 500;
    color: var(--bp-text);
}

/* Directory List */
.bp-diag-dir-list {
    display: flex;
    flex-direction: column;
    gap: var(--bp-space-sm);
}

.bp-diag-dir-item {
    padding: var(--bp-space-md);
    background: var(--bp-gray-50);
    border-radius: var(--bp-radius-md);
}

.bp-diag-dir-main {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
}

.bp-diag-dir-status {
    width: 28px;
    height: 28px;
    border-radius: var(--bp-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.bp-diag-dir-ok {
    background: var(--bp-success-light);
    color: var(--bp-success);
}

.bp-diag-dir-error {
    background: var(--bp-danger-light);
    color: var(--bp-danger);
}

.bp-diag-dir-name {
    flex: 1;
    font-weight: 500;
    font-size: var(--bp-text-sm);
    word-break: break-all;
}

.bp-diag-dir-fix {
    display: block;
    margin-top: var(--bp-space-sm);
    padding: var(--bp-space-sm) var(--bp-space-md);
    background: var(--bp-gray-900);
    color: var(--bp-gray-100);
    border-radius: var(--bp-radius-sm);
    font-size: var(--bp-text-xs);
    font-family: var(--bp-font-mono);
    word-break: break-all;
    white-space: pre-wrap;
}

/* Migrations */
.bp-diag-migrations-pending h4 {
    margin: 0 0 var(--bp-space-md) 0;
    font-size: var(--bp-text-sm);
    font-weight: 600;
}

.bp-diag-migrations-list {
    margin: 0 0 var(--bp-space-lg) 0;
    padding-left: var(--bp-space-lg);
}

.bp-diag-migrations-list li {
    margin-bottom: var(--bp-space-sm);
}

.bp-diag-migrations-list code {
    font-size: var(--bp-text-xs);
    padding: 2px 6px;
    background: var(--bp-gray-100);
    border-radius: var(--bp-radius-sm);
}

/* Extensions Grid */
.bp-diag-ext-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--bp-space-md);
}

@media (max-width: 1100px) {
    .bp-diag-ext-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bp-diag-ext-grid {
        grid-template-columns: 1fr;
    }
}

.bp-diag-ext-item {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
    padding: var(--bp-space-md);
    border-radius: var(--bp-radius-md);
    min-width: 0;
}

.bp-diag-ext-ok {
    background: var(--bp-success-light);
}

.bp-diag-ext-error {
    background: var(--bp-danger-light);
}

.bp-diag-ext-warn {
    background: var(--bp-warning-light);
}

.bp-diag-ext-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--bp-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.5);
}

.bp-diag-ext-ok .bp-diag-ext-icon { color: var(--bp-success); }
.bp-diag-ext-error .bp-diag-ext-icon { color: var(--bp-danger); }
.bp-diag-ext-warn .bp-diag-ext-icon { color: var(--bp-warning); }

.bp-diag-ext-content {
    flex: 1;
    min-width: 0;
}

.bp-diag-ext-name {
    font-weight: 600;
    font-size: var(--bp-text-sm);
}

.bp-diag-ext-optional {
    font-weight: 400;
    color: var(--bp-text-muted);
    font-size: var(--bp-text-xs);
}

.bp-diag-ext-desc {
    font-size: var(--bp-text-xs);
    color: var(--bp-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tests */
.bp-diag-tests-placeholder {
    text-align: center;
    padding: var(--bp-space-2xl);
    color: var(--bp-text-muted);
}

.bp-diag-tests-placeholder i {
    font-size: 48px;
    opacity: 0.5;
    margin-bottom: var(--bp-space-md);
    display: block;
}

.bp-diag-tests-placeholder p {
    margin: 0;
}

.bp-diag-tests-loading {
    text-align: center;
    padding: var(--bp-space-xl);
}

.bp-diag-tests-loading p {
    margin: var(--bp-space-md) 0 0;
    color: var(--bp-text-muted);
}

.bp-diag-tests-list {
    display: flex;
    flex-direction: column;
    gap: var(--bp-space-sm);
}

.bp-diag-test-item {
    display: flex;
    align-items: center;
    gap: var(--bp-space-md);
    padding: var(--bp-space-md);
    border-radius: var(--bp-radius-md);
}

.bp-diag-test-ok {
    background: var(--bp-success-light);
}

.bp-diag-test-error {
    background: var(--bp-danger-light);
}

.bp-diag-test-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--bp-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.5);
}

.bp-diag-test-ok .bp-diag-test-icon { color: var(--bp-success); }
.bp-diag-test-error .bp-diag-test-icon { color: var(--bp-danger); }

.bp-diag-test-content {
    flex: 1;
    min-width: 0;
}

.bp-diag-test-name {
    font-weight: 600;
    font-size: var(--bp-text-sm);
    display: block;
}

.bp-diag-test-msg {
    font-size: var(--bp-text-xs);
    color: var(--bp-text-secondary);
}

.bp-diag-tests-result {
    display: flex;
    align-items: center;
    gap: var(--bp-space-sm);
    padding: var(--bp-space-md) var(--bp-space-lg);
    border-radius: var(--bp-radius-md);
    margin-top: var(--bp-space-lg);
    font-size: var(--bp-text-sm);
}

.bp-diag-tests-passed {
    background: var(--bp-success-light);
    color: #166534;
}

.bp-diag-tests-failed {
    background: var(--bp-danger-light);
    color: #991b1b;
}

/* Logs */
.bp-diag-logs {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: auto;
    font-size: 11px;
    font-family: var(--bp-font-mono);
    background: var(--bp-gray-900);
    color: var(--bp-gray-300);
    padding: var(--bp-space-md);
    border-radius: var(--bp-radius-md);
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    line-height: 1.6;
}

.bp-diag-logs .log-error { color: #ef4444; font-weight: 600; }
.bp-diag-logs .log-warning { color: #f59e0b; font-weight: 600; }
.bp-diag-logs .log-info { color: #06b6d4; font-weight: 600; }
.bp-diag-logs .log-debug { color: #64748b; }

.bp-diag-empty {
    text-align: center;
    padding: var(--bp-space-xl);
    color: var(--bp-text-muted);
}

.bp-diag-empty i {
    font-size: 40px;
    opacity: 0.4;
    display: block;
    margin-bottom: var(--bp-space-md);
}

.bp-diag-empty p {
    margin: 0;
}

/* Helper utilities */
.bp-flex-shrink-0 { flex-shrink: 0; }
.bp-min-w-0 { min-width: 0; }
.bp-flex-grow-1 { flex-grow: 1; }
.bp-mt-lg { margin-top: var(--bp-space-lg); }
.bp-mb-lg { margin-bottom: var(--bp-space-lg); }

/* =====================================================
   Catalog Page Styles
   ===================================================== */

.bp-catalog-page {
    max-width: 1400px;
    margin: 0 auto;
}

/* Page Header */
.bp-catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--bp-space-xl);
    padding-bottom: var(--bp-space-lg);
    border-bottom: 1px solid var(--bp-border-light);
}

.bp-catalog-header-info h1 {
    margin: 0 0 4px 0;
    font-size: var(--bp-text-2xl);
    font-weight: 700;
}

.bp-catalog-header-count {
    margin: 0;
    color: var(--bp-text-muted);
    font-size: var(--bp-text-sm);
}

/* Collection Banner */
.bp-catalog-collection-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--bp-space-lg);
    padding: var(--bp-space-lg);
    margin-bottom: var(--bp-space-xl);
    background: linear-gradient(135deg, var(--bp-primary) 0%, var(--bp-gray-800) 100%);
    border-radius: var(--bp-radius-lg);
    color: var(--bp-white);
}

.bp-catalog-collection-info {
    display: flex;
    align-items: center;
    gap: var(--bp-space-lg);
}

.bp-catalog-collection-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--bp-radius-md);
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.bp-catalog-collection-info h2 {
    margin: 0 0 4px 0;
    font-size: var(--bp-text-xl);
    font-weight: 600;
}

.bp-catalog-collection-info p {
    margin: 0;
    opacity: 0.8;
    font-size: var(--bp-text-sm);
}

/* Collapsible Filters */
.bp-catalog-filters {
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    margin-bottom: var(--bp-space-lg);
    overflow: hidden;
}

.bp-catalog-filters-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--bp-space-md) var(--bp-space-lg);
    background: var(--bp-gray-50);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: var(--bp-text-sm);
    font-weight: 600;
    color: var(--bp-text);
    transition: all 0.2s ease;
}

.bp-catalog-filters-toggle:hover {
    background: var(--bp-gray-100);
}

.bp-catalog-filters-toggle-left {
    display: flex;
    align-items: center;
    gap: var(--bp-space-sm);
}

.bp-catalog-filters-toggle-left i {
    font-size: 18px;
    color: var(--bp-text-secondary);
}

.bp-catalog-filters-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--bp-primary);
    color: var(--bp-white);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.bp-catalog-filters-arrow {
    font-size: 20px;
    color: var(--bp-text-muted);
    transition: transform 0.2s ease;
}

.bp-catalog-filters-toggle.bp-collapsed .bp-catalog-filters-arrow {
    transform: rotate(-90deg);
}

.bp-catalog-filters-content {
    padding: var(--bp-space-lg);
    border-top: 1px solid var(--bp-border-light);
}

.bp-catalog-filters-content.bp-collapsed {
    display: none;
}

.bp-catalog-filters-form {
    display: flex;
    flex-direction: column;
    gap: var(--bp-space-lg);
}

.bp-catalog-filters-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--bp-space-lg);
}

@media (max-width: 900px) {
    .bp-catalog-filters-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bp-catalog-filter-search {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .bp-catalog-filters-grid {
        grid-template-columns: 1fr;
    }
    .bp-catalog-filter-search {
        grid-column: span 1;
    }
}

.bp-catalog-filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--bp-space-sm);
}

.bp-catalog-filter-label {
    display: flex;
    align-items: center;
    gap: var(--bp-space-sm);
    font-size: var(--bp-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bp-text-muted);
}

.bp-catalog-filter-label i {
    font-size: 14px;
}

.bp-catalog-search-input {
    position: relative;
}

.bp-catalog-search-input .bp-input {
    padding-right: 40px;
}

.bp-catalog-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bp-gray-100);
    border-radius: var(--bp-radius-sm);
    color: var(--bp-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.bp-catalog-search-clear:hover {
    background: var(--bp-gray-200);
    color: var(--bp-text);
}

.bp-catalog-filters-actions {
    display: flex;
    gap: var(--bp-space-sm);
    padding-top: var(--bp-space-md);
    border-top: 1px solid var(--bp-border-light);
}

/* Active Filters Tags */
.bp-catalog-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--bp-space-sm);
    margin-bottom: var(--bp-space-lg);
    padding: var(--bp-space-md) var(--bp-space-lg);
    background: var(--bp-gray-50);
    border-radius: var(--bp-radius-md);
}

.bp-catalog-active-filters-label {
    font-size: var(--bp-text-sm);
    color: var(--bp-text-muted);
    margin-right: var(--bp-space-sm);
}

.bp-catalog-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: 20px;
    font-size: var(--bp-text-xs);
    color: var(--bp-text);
    text-decoration: none;
    transition: all 0.15s ease;
}

.bp-catalog-filter-tag:hover {
    background: var(--bp-danger-light);
    border-color: var(--bp-danger);
    color: var(--bp-danger);
    text-decoration: none;
}

.bp-catalog-filter-tag i:first-child {
    font-size: 12px;
    opacity: 0.7;
}

.bp-catalog-filter-tag i:last-child {
    font-size: 14px;
    opacity: 0.5;
}

.bp-catalog-filter-tag:hover i:last-child {
    opacity: 1;
}

.bp-catalog-clear-all {
    font-size: var(--bp-text-xs);
    color: var(--bp-danger);
    text-decoration: none;
    margin-left: auto;
}

.bp-catalog-clear-all:hover {
    text-decoration: underline;
}

/* Empty State */
.bp-catalog-empty {
    text-align: center;
    padding: var(--bp-space-2xl) var(--bp-space-xl);
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
}

.bp-catalog-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--bp-space-lg);
    border-radius: 50%;
    background: var(--bp-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bp-catalog-empty-icon i {
    font-size: 40px;
    color: var(--bp-text-muted);
}

.bp-catalog-empty h3 {
    margin: 0 0 var(--bp-space-sm) 0;
    font-size: var(--bp-text-lg);
    color: var(--bp-text);
}

.bp-catalog-empty p {
    margin: 0 0 var(--bp-space-lg) 0;
    color: var(--bp-text-muted);
}

/* Products List (2-Column Grid) */
.bp-catalog-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--bp-space-md);
}

@media (max-width: 1200px) {
    .bp-catalog-list {
        grid-template-columns: 1fr;
    }
}

/* Product Card - Horizontal Layout */
.bp-catalog-card {
    display: flex;
    flex-direction: column;
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
}

.bp-catalog-card:hover {
    box-shadow: var(--bp-shadow-md);
    border-color: var(--bp-gray-300);
}

.bp-catalog-card-horizontal {
    flex-direction: row;
}

/* Card Image - Left Side */
.bp-catalog-card-horizontal .bp-catalog-card-image {
    width: 160px;
    min-width: 160px;
    height: auto;
    min-height: 140px;
    background: var(--bp-gray-100);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bp-catalog-card-horizontal .bp-catalog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.bp-catalog-card-horizontal:hover .bp-catalog-card-image img {
    transform: scale(1.05);
}

.bp-catalog-card-no-image {
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--bp-space-sm);
    color: var(--bp-text-muted);
}

.bp-catalog-card-no-image i {
    font-size: 36px;
    opacity: 0.4;
}

/* Card Content - Right Side */
.bp-catalog-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bp-catalog-card-top {
    flex: 1;
    display: flex;
    padding: var(--bp-space-lg);
    gap: var(--bp-space-xl);
}

.bp-catalog-card-main {
    flex: 1;
    min-width: 0;
}

.bp-catalog-card-header {
    display: flex;
    align-items: center;
    gap: var(--bp-space-sm);
    margin-bottom: var(--bp-space-xs);
    flex-wrap: wrap;
}

.bp-catalog-card-code {
    font-size: var(--bp-text-lg);
    font-weight: 700;
    color: var(--bp-primary);
    text-decoration: none;
}

.bp-catalog-card-code:hover {
    color: var(--bp-info);
    text-decoration: none;
}

.bp-catalog-card-status {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: var(--bp-text-xs);
    font-weight: 600;
}

.bp-status-active {
    background: var(--bp-success);
    color: var(--bp-white);
}

.bp-status-inactive {
    background: var(--bp-gray-400);
    color: var(--bp-white);
}

.bp-catalog-card-variants {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: var(--bp-info-light);
    color: var(--bp-info);
    border-radius: var(--bp-radius-sm);
    font-size: var(--bp-text-xs);
    font-weight: 600;
}

.bp-catalog-card-name {
    margin: 0 0 var(--bp-space-sm) 0;
    font-size: var(--bp-text-base);
    font-weight: 400;
    color: var(--bp-text-secondary);
    line-height: 1.4;
}

.bp-catalog-card-name a {
    color: inherit;
    text-decoration: none;
}

.bp-catalog-card-name a:hover {
    color: var(--bp-primary);
}

.bp-catalog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bp-space-sm);
}

.bp-catalog-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--bp-text-xs);
    color: var(--bp-text-muted);
}

.bp-catalog-card-meta-item i {
    font-size: 14px;
}

.bp-catalog-card-collection {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--bp-primary);
    color: var(--bp-white);
    border-radius: var(--bp-radius-sm);
    font-size: var(--bp-text-xs);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease;
}

.bp-catalog-card-collection:hover {
    background: var(--bp-gray-800);
    text-decoration: none;
    color: var(--bp-white);
}

/* Pricing Section */
.bp-catalog-card-pricing {
    display: flex;
    flex-direction: column;
    gap: var(--bp-space-xs);
    min-width: 140px;
    text-align: right;
}

.bp-catalog-card-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: var(--bp-space-sm) var(--bp-space-md);
    background: var(--bp-success-light);
    border-radius: var(--bp-radius-md);
}

.bp-catalog-card-price-label {
    font-size: var(--bp-text-xs);
    color: var(--bp-success);
    font-weight: 500;
}

.bp-catalog-card-price-value {
    font-size: var(--bp-text-xl);
    font-weight: 700;
    color: var(--bp-success);
}

.bp-catalog-card-cost {
    display: flex;
    justify-content: flex-end;
    gap: var(--bp-space-sm);
    font-size: var(--bp-text-xs);
    color: var(--bp-text-muted);
    padding-right: var(--bp-space-md);
}

/* Card Footer */
.bp-catalog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--bp-space-sm);
    padding: var(--bp-space-sm) var(--bp-space-lg);
    background: var(--bp-gray-50);
    border-top: 1px solid var(--bp-border-light);
}

.bp-catalog-card-actions {
    display: flex;
    gap: var(--bp-space-sm);
}

.bp-btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive: Stack vertically on mobile */
@media (max-width: 700px) {
    .bp-catalog-card-horizontal {
        flex-direction: column;
    }

    .bp-catalog-card-horizontal .bp-catalog-card-image {
        width: 100%;
        min-width: 100%;
        height: 180px;
        min-height: 180px;
    }

    .bp-catalog-card-top {
        flex-direction: column;
        gap: var(--bp-space-md);
    }

    .bp-catalog-card-pricing {
        align-items: flex-start;
        text-align: left;
    }

    .bp-catalog-card-price {
        align-items: flex-start;
    }

    .bp-catalog-card-cost {
        justify-content: flex-start;
        padding-left: var(--bp-space-md);
        padding-right: 0;
    }

    .bp-catalog-card-footer {
        flex-wrap: wrap;
    }
}

/* Pagination */
.bp-catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--bp-space-xl);
    padding: var(--bp-space-lg);
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
}

@media (max-width: 700px) {
    .bp-catalog-pagination {
        flex-direction: column;
        gap: var(--bp-space-lg);
    }
}

.bp-catalog-pagination-info {
    font-size: var(--bp-text-sm);
    color: var(--bp-text-muted);
}

.bp-catalog-pagination-info strong {
    color: var(--bp-text);
}

.bp-catalog-pagination-nav {
    display: flex;
    align-items: center;
    gap: var(--bp-space-sm);
}

.bp-catalog-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: var(--bp-space-sm) var(--bp-space-md);
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-md);
    font-size: var(--bp-text-sm);
    font-weight: 500;
    color: var(--bp-text);
    text-decoration: none;
    transition: all 0.15s ease;
}

.bp-catalog-pagination-btn:hover:not(.bp-disabled) {
    background: var(--bp-gray-50);
    border-color: var(--bp-gray-300);
    text-decoration: none;
}

.bp-catalog-pagination-btn.bp-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.bp-catalog-pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bp-catalog-pagination-page {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-md);
    font-size: var(--bp-text-sm);
    font-weight: 500;
    color: var(--bp-text);
    text-decoration: none;
    transition: all 0.15s ease;
}

.bp-catalog-pagination-page:hover:not(.bp-active) {
    background: var(--bp-gray-50);
    text-decoration: none;
}

.bp-catalog-pagination-page.bp-active {
    background: var(--bp-primary);
    border-color: var(--bp-primary);
    color: var(--bp-white);
}

.bp-catalog-pagination-dots {
    padding: 0 var(--bp-space-sm);
    color: var(--bp-text-muted);
}

/* Detail Cards Additional Styles */
.bp-catalog-card-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: var(--bp-gray-100);
    color: var(--bp-text-secondary);
    border-radius: var(--bp-radius-sm);
    font-size: var(--bp-text-xs);
    font-weight: 500;
}

.bp-catalog-card-type i {
    font-size: 12px;
}

.bp-catalog-card-inactive {
    opacity: 0.7;
    border-color: var(--bp-gray-200);
}

.bp-catalog-card-inactive .bp-catalog-card-image img {
    filter: grayscale(30%);
}

.bp-catalog-card-materials {
    flex-wrap: wrap;
}

.bp-catalog-card-material-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.bp-catalog-card-material-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: var(--bp-info-light);
    color: var(--bp-info);
    border-radius: var(--bp-radius-sm);
    font-size: var(--bp-text-xs);
    font-weight: 500;
}

.bp-catalog-card-material-badge small {
    opacity: 0.8;
    font-weight: 400;
}

.bp-catalog-card-meta-secondary {
    color: var(--bp-text-muted);
    font-size: var(--bp-text-xs);
}

/* Spoiler / Collapsible card (details/summary) */
details.bp-card > summary {
    list-style: none;
}
details.bp-card > summary::-webkit-details-marker {
    display: none;
}
details.bp-card > summary .bp-spoiler-arrow {
    transition: transform 0.2s ease;
}
details.bp-card[open] > summary .bp-spoiler-arrow {
    transform: rotate(180deg);
}

/* Per-page selector */
.bp-per-page-selector {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.bp-per-page-selector .bp-per-page-label {
    font-size: 0.8rem;
    color: var(--bp-text-muted);
    white-space: nowrap;
}
.bp-per-page-selector .bp-per-page-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 6px;
    color: var(--bp-text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.2;
}
.bp-per-page-selector .bp-per-page-btn:hover {
    border-color: var(--bp-primary);
    color: var(--bp-primary);
}
.bp-per-page-selector .bp-per-page-btn.active {
    background: var(--bp-primary);
    border-color: var(--bp-primary);
    color: #fff;
}
