/* PIMray - Stylesheet */

/* ===================================
   CSS Variables
   =================================== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;

    --success-color: #16a34a;
    --warning-color: #ca8a04;
    --danger-color: #dc2626;

    --bg-color: #f8fafc;
    --bg-dark: #1e293b;
    --bg-card: #ffffff;

    --text-color: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border-color: #e2e8f0;
    --border-radius: 8px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --header-height: 64px;

    --transition: 0.2s ease;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

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

a:hover {
    text-decoration: underline;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

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

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

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-dark);
}

.btn-block {
    width: 100%;
}

.btn-logout {
    width: 100%;
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.btn-logout:hover {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===================================
   Forms
   =================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: white;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Messages */
.error-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--border-radius);
    color: var(--danger-color);
    font-size: 14px;
}

.success-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--border-radius);
    color: var(--success-color);
    font-size: 14px;
}

/* ===================================
   Login Page
   =================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #334155 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    font-size: 14px;
    color: var(--text-muted);
}

.login-info {
    text-align: center;
    margin-top: 24px;
    color: var(--text-light);
    font-size: 12px;
}

/* ===================================
   App Layout
   =================================== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--bg-dark);
    color: white;
    display: flex;
    flex-direction: column;
    transition: width var(--transition);
    z-index: 100;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-light);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    opacity: 0.7;
}

.sidebar-toggle:hover {
    opacity: 1;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
}

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

.nav-icon {
    width: 24px;
    text-align: center;
    font-size: 18px;
}

.nav-section-title {
    display: block;
    padding: 20px 20px 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.user-info {
    margin-bottom: 12px;
}

.user-name {
    display: block;
    font-weight: 500;
    font-size: 14px;
}

.user-role {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* Sidebar collapsed */
.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}

.sidebar-collapsed .nav-text,
.sidebar-collapsed .nav-section-title,
.sidebar-collapsed .logo,
.sidebar-collapsed .user-info {
    display: none;
}

.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition);
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text-color);
}

.search-box input {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    width: 250px;
}

.content-area {
    padding: 24px;
}

/* ===================================
   Dashboard
   =================================== */
.dashboard-welcome {
    margin-bottom: 32px;
}

.dashboard-welcome h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

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

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

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

.dashboard-actions h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.action-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

.action-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    border-radius: 50%;
    font-size: 20px;
}

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

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

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

    .mobile-menu-btn {
        display: flex;
    }

    .search-box input {
        width: 150px;
    }

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

@media (max-width: 480px) {
    .login-box {
        padding: 24px;
    }

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

    .search-box {
        display: none;
    }
}

/* ===================================
   Cards
   =================================== */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

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

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* ===================================
   Data Tables
   =================================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background-color: var(--bg-color);
}

.data-table tbody tr:hover {
    background-color: #f8fafc;
}

.data-table .inactive-row {
    opacity: 0.6;
}

.data-table .loading-cell,
.data-table .error-cell {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.data-table .error-cell {
    color: var(--danger-color);
}

.actions-cell {
    white-space: nowrap;
}

/* Icon Buttons */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.btn-icon:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.btn-icon-danger:hover {
    background-color: #fef2f2;
    border-color: var(--danger-color);
    color: var(--danger-color);
}

/* ===================================
   Badges
   =================================== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-info {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.badge-success {
    background-color: #dcfce7;
    color: #16a34a;
}

.badge-warning {
    background-color: #fef3c7;
    color: #ca8a04;
}

.badge-danger {
    background-color: #fee2e2;
    color: #dc2626;
}

.badge-default {
    background-color: var(--bg-color);
    color: var(--text-muted);
}

/* Status Dots */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

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

.status-inactive {
    background-color: var(--text-light);
}

/* ===================================
   Modals
   =================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-sm {
    max-width: 400px;
}

.modal-lg {
    max-width: 700px;
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

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

.modal-close:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Upload Dropzone */
.upload-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 16px;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--primary-color);
    background: #eff6ff;
}

.upload-dropzone.paste-success {
    border-color: var(--success-color, #22c55e);
    background: #f0fdf4;
    animation: paste-flash 0.5s ease;
}

@keyframes paste-flash {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.upload-dropzone kbd {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    font-family: monospace;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    box-shadow: 0 1px 0 #cbd5e1;
}

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

.upload-dropzone i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
}

/* Alerts */
.alert-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    padding: 12px 16px;
    border-radius: var(--border-radius);
}

/* ===================================
   Form Hints
   =================================== */
.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===================================
   Button Variants
   =================================== */
.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

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

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

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

/* ===================================
   Settings Page
   =================================== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

@media (max-width: 480px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Info List */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-size: 14px;
    color: var(--text-muted);
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

/* ===================================
   Filter Bar
   =================================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

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

.filter-input,
.filter-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: white;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ===================================
   Product Grid
   =================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.product-image {
    height: 180px;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.no-image {
    color: var(--text-light);
    font-size: 14px;
}

.product-info {
    padding: 16px;
}

.product-sku {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin: 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-type {
    font-size: 12px;
    color: var(--text-muted);
}

/* Placeholders */
.loading-placeholder,
.error-placeholder,
.empty-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.error-placeholder {
    color: var(--danger-color);
}

/* ===================================
   Pagination
   =================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled):not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

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

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

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .product-image {
        height: 120px;
    }
}

/* ===================================
   Product Detail Page
   =================================== */
.back-link {
    color: var(--text-muted);
    font-size: 14px;
    margin-right: 16px;
}

.back-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

.product-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Collapsible Cards */
.card-header.collapsible {
    cursor: pointer;
    user-select: none;
}

.card-header .collapse-icon {
    transition: transform var(--transition);
}

.card.collapsed .card-body {
    display: none;
}

.card.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

/* Category Checkboxes */
.category-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Changelog */
.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.changelog-item {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.changelog-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.changelog-field {
    font-size: 13px;
    font-weight: 500;
    font-family: monospace;
}

.changelog-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Versions */
.versions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.version-item {
    padding: 8px 12px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    transition: all 0.15s ease;
}

.version-item:hover {
    background-color: #e0e7ff;
    transform: translateX(2px);
}

.version-item.current {
    border: 1px solid var(--primary-color);
    background-color: #eff6ff;
}

.version-item.current::after {
    content: '(aktuell)';
    font-size: 10px;
    color: var(--primary-color);
    margin-left: 6px;
}

.version-label {
    font-size: 13px;
    font-weight: 500;
}

.version-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* Version Snapshot Table */
.version-snapshot .table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.version-snapshot .table th,
.version-snapshot .table td {
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.version-snapshot .table th {
    background-color: var(--bg-color);
    font-weight: 500;
}

.version-snapshot .table-sm th,
.version-snapshot .table-sm td {
    padding: 4px 8px;
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.media-item {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.media-item.primary {
    border: 2px solid var(--primary-color);
}

.media-preview {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.media-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.media-icon {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-muted);
}

.media-info {
    padding: 8px;
}

.media-title {
    font-size: 12px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity var(--transition);
}

.media-item:hover .media-actions {
    opacity: 1;
}

/* Save Bar */
.save-bar {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    padding: 16px 24px;
    background: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.save-bar-actions {
    display: flex;
    gap: 12px;
}

/* Small placeholder */
.empty-placeholder.small {
    padding: 20px;
    font-size: 13px;
}

/* Button sizes */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .save-bar {
        left: 0;
    }
}

/* ===================================
   Search Enhancements
   =================================== */
.filter-group-search {
    flex: 2;
    min-width: 250px;
}

.search-wrapper {
    position: relative;
}

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

.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow-md);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: var(--bg-color);
}

.autocomplete-sku {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-muted);
    min-width: 80px;
}

.autocomplete-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-color);
}

.autocomplete-name mark {
    background-color: #fef08a;
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

.autocomplete-type {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.autocomplete-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Search Info Bar */
.search-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 16px;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--border-radius);
}

.search-info-text {
    font-size: 14px;
    color: #1e40af;
}

.search-clear-btn {
    padding: 6px 12px;
    font-size: 12px;
    background: white;
    border: 1px solid #93c5fd;
    border-radius: var(--border-radius);
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.search-clear-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Highlight in product cards */
.product-name mark {
    background-color: #fef08a;
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

/* Global Search in Header */
.global-search-wrapper {
    position: relative;
}

.global-search-autocomplete {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 200;
    display: none;
    margin-top: 4px;
}

.global-autocomplete-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition);
}

.global-autocomplete-item:hover {
    background-color: var(--bg-color);
}

.global-ac-sku {
    font-family: monospace;
    font-size: 11px;
    color: var(--text-muted);
}

.global-ac-name {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.global-autocomplete-more {
    padding: 12px 16px;
    text-align: center;
    color: var(--primary-color);
    font-size: 13px;
    cursor: pointer;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.global-autocomplete-more:hover {
    background-color: #dbeafe;
}

.global-autocomplete-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* ===================================
   Image Type Manager
   =================================== */
.image-type-manager {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.image-type-upload-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.image-type-upload-bar .drag-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.image-type-section {
    background: #f8fafc;
    border-radius: var(--border-radius);
    padding: 16px;
}

.image-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.image-type-header h4 {
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-type-header .count {
    color: var(--text-muted);
    font-weight: normal;
}

.image-type-header .type-icon {
    font-size: 16px;
}

.image-type-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.image-type-content .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.image-type-content .media-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    cursor: grab;
}

.image-type-content .media-item:active {
    cursor: grabbing;
}

.image-type-content .media-preview {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.image-type-content .media-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-type-content .media-info {
    padding: 8px;
    font-size: 12px;
}

.image-type-content .media-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-type-content .media-actions {
    display: flex;
    gap: 4px;
    padding: 8px;
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
}

.image-type-content .btn-icon {
    background: #f3f4f6;
    border: 1px solid var(--border-color);
    cursor: pointer;
    padding: 4px 8px;
    color: #374151;
    font-size: 14px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.15s;
}

.image-type-content .btn-icon:hover {
    color: var(--primary-color);
    background: #dbeafe;
    border-color: var(--primary-color);
}

.image-type-content .btn-icon.delete-btn:hover {
    color: white;
    background: var(--danger-color);
    border-color: var(--danger-color);
}

.image-type-content .main-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.image-type-content .badge {
    display: inline-block;
    background: #e5e7eb;
    color: #374151;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

.image-type-content .drag-handle {
    cursor: grab;
    color: #6b7280;
    padding: 4px 6px;
    font-size: 14px;
    letter-spacing: -3px;
    user-select: none;
    background: #f3f4f6;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.image-type-content .drag-handle:hover {
    color: var(--text-color);
    background: #e5e7eb;
}

.image-type-content .drag-handle:active {
    cursor: grabbing;
    background: #d1d5db;
}

/* Upload Dropzone */
.upload-dropzone .upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
}

.media-item-ghost {
    opacity: 0.5;
    background: #dbeafe !important;
    border: 2px dashed var(--primary-color) !important;
}

.media-item-chosen {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.media-item-drag {
    opacity: 1 !important;
}

.media-item-fallback {
    opacity: 0.9 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transform: rotate(2deg);
}

.sortable-list {
    min-height: 60px;
    position: relative;
}

.sortable-list:empty {
    min-height: 80px;
}

.sortable-list.drag-active {
    background: #dbeafe;
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    min-height: 100px;
}

.image-type-section .empty-hint {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}

.image-type-section.is-empty .sortable-list {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    background: #fafafa;
}

.image-type-section.is-empty .sortable-list.drag-active {
    border-color: var(--primary-color);
    background: #dbeafe;
}

body.is-dragging .empty-hint {
    display: none;
}

/* Selected Files List im Upload Dialog */
.selected-files-list {
    margin-bottom: 16px;
}

.selected-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: var(--border-radius);
    margin-bottom: 4px;
}

.selected-file-item .file-name {
    flex: 1;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-file-item .file-size {
    font-size: 12px;
    color: var(--text-muted);
}

.selected-file-item .remove-file-btn {
    color: var(--text-muted);
}

.selected-file-item .remove-file-btn:hover {
    color: var(--danger-color);
}

/* Edit Media Preview */
.edit-media-preview {
    text-align: center;
    margin-bottom: 20px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: var(--border-radius);
}

.edit-media-preview img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

/* ===================================
   Pictogram Picker
   =================================== */
.pictogram-section {
    margin-top: 20px;
}

.selected-pictogram {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
}

.selected-pictogram img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.selected-pictogram .picto-name {
    flex: 1;
}

/* ===================================
   Extended Attribute Types
   =================================== */
.range-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-input .input-group {
    display: flex;
    align-items: center;
    flex: 1;
}

.range-input .input-suffix {
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.range-input input {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

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

.range-preview,
.prefix-preview {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.prefix-number-input {
    display: flex;
    gap: 8px;
}

.prefix-number-input .prefix-select {
    width: 80px;
}

.multiselect-checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.multiselect-checkbox-list .checkbox-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 4px;
}

.multiselect-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.multiselect-tags .tag {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.multiselect-tags .tag.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.multirelation-input .selected-products {
    margin-bottom: 12px;
}

.multirelation-input .selected-product {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
}

.multirelation-input .search-results {
    position: absolute;
    z-index: 100;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
}

.multirelation-input .search-result-item {
    padding: 8px 12px;
    cursor: pointer;
}

.multirelation-input .search-result-item:hover {
    background: #f5f5f5;
}

.multirelation-input .product-search {
    position: relative;
}

/* ===================================
   Language Switch
   =================================== */
.language-switch {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.lang-tab {
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.lang-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.lang-tab .default-badge {
    color: #f59e0b;
}

.lang-tab .missing-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #fbbf24;
    border-radius: 50%;
    margin-left: 4px;
}

.fallback-hint {
    font-size: 12px;
    color: #f59e0b;
    margin-top: 4px;
}

/* ===================================
   Admin Languages Page
   =================================== */
.language-list {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.language-item:last-child {
    border-bottom: none;
}

.language-item:hover {
    background: #fafafa;
}

.language-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.language-code {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    min-width: 40px;
    text-align: center;
}

.language-code.inactive {
    background: #9ca3af;
}

.language-names {
    display: flex;
    flex-direction: column;
}

.language-name {
    font-weight: 500;
}

.language-native {
    font-size: 13px;
    color: var(--text-muted);
}

.language-badges {
    display: flex;
    gap: 8px;
    margin-left: 16px;
}

.badge-inactive {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.language-actions {
    display: flex;
    gap: 8px;
}

.language-handle {
    cursor: grab;
    color: var(--text-muted);
    padding: 4px 8px;
}

.language-handle:hover {
    color: var(--text-color);
}

/* ===================================
   Admin Pictograms Page
   =================================== */
.pictogram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pictogram-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    text-align: center;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.pictogram-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.pictogram-card.inactive {
    opacity: 0.5;
}

.pictogram-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
}

.pictogram-name {
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pictogram-category {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.pictogram-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.pictogram-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* ===================================
   Info Boxes
   =================================== */
.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 20px;
}

.info-box h4 {
    margin: 0 0 8px;
    color: #1e40af;
}

.info-box p {
    margin: 0;
    color: #3b82f6;
    font-size: 14px;
}

/* ===================================
   Upload Zone
   =================================== */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 20px;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background: #f8fafc;
}

.upload-zone.dragover {
    border-color: var(--primary-color);
    background: #eff6ff;
}

.upload-preview {
    max-width: 120px;
    max-height: 120px;
    margin: 10px auto;
    display: block;
}

/* ===================================
   Language Tabs
   =================================== */
.lang-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.lang-tabs .lang-tab {
    border-radius: 4px 4px 0 0;
}

.lang-tabs .lang-tab.active {
    background: white;
    border-bottom-color: white;
    position: relative;
    top: 1px;
}

.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

/* ===================================
   Stats Row
   =================================== */
.stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stats-row .stat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    flex: 1;
}

.stats-row .stat-card h4 {
    margin: 0 0 4px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
}

.stats-row .stat-card .value {
    font-size: 24px;
    font-weight: 600;
}

.stats-row .stat-card .subtext {
    font-size: 12px;
    color: var(--text-muted);
}

/* AI Assistant */
.ai-assistant-modal .modal-lg {
    max-width: 700px;
}

.ai-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.ai-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

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

.ai-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.ai-tab-content {
    display: none;
}

.ai-tab-content.active {
    display: block;
}

.ai-section {
    margin-bottom: 20px;
}

.ai-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
}

.ai-attribute-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px;
}

.ai-attribute-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    cursor: pointer;
}

.ai-attribute-item:hover {
    background: #f5f5f5;
}

.ai-attribute-item input[type="checkbox"] {
    flex-shrink: 0;
}

.ai-attribute-item .attr-name {
    flex: 1;
    font-weight: 500;
}

.ai-attribute-item .attr-value {
    color: var(--text-muted);
    font-size: 0.85em;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-prompt-editor {
    margin-top: 10px;
}

.ai-result {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: var(--border-radius);
    padding: 15px;
}

.ai-result-text {
    white-space: pre-wrap;
    line-height: 1.6;
    margin-bottom: 15px;
}

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

.ai-translate-result {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-radius: var(--border-radius);
    padding: 15px;
}

.ai-source-preview {
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px;
}

.ai-source-text {
    white-space: pre-wrap;
    font-size: 0.9em;
    color: var(--text-muted);
    max-height: 100px;
    overflow-y: auto;
}

.ai-assistant-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

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

/* Highlighted field after translation saved */
.field-highlight {
    animation: field-saved 2s ease;
}

@keyframes field-saved {
    0% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.5); }
    100% { box-shadow: none; }
}

/* Generation Selector */
.generation-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.generation-selector.generation-empty {
    justify-content: space-between;
}

.generation-select-wrapper {
    min-width: 200px;
}

.generation-dropdown {
    font-weight: 500;
}

.generation-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
}

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

.generation-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.lock-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.lock-toggle input {
    display: none;
}

.lock-icon {
    font-size: 1.2em;
    padding: 5px;
    border-radius: var(--border-radius);
    transition: background 0.2s;
}

.lock-toggle:hover .lock-icon {
    background: #e2e8f0;
}

.generation-locked-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 0.9em;
}

.badge-success {
    background: #22c55e;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Bulk Actions */
.bulk-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.bulk-selection {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bulk-count {
    font-weight: 600;
    color: var(--primary-color);
}

.bulk-modal .modal-lg {
    max-width: 800px;
}

.bulk-step h4 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.bulk-preview-header {
    background: #f8fafc;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.bulk-preview-table-wrapper {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

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

.bulk-preview-table th,
.bulk-preview-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.bulk-preview-table th {
    background: #f8fafc;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.bulk-preview-table tr.no-change {
    opacity: 0.5;
}

.bulk-preview-table tr:hover {
    background: #f8fafc;
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: toastSlideUp 0.3s ease;
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
