/* Lagerspegling Dashboard Styles */

/* CSS Variables for Consistent Theming */
:root {
    /* Primary Colors */
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #dbeafe;

    /* Secondary Colors */
    --secondary-color: #64748b;
    --secondary-light: #f1f5f9;
    --secondary-hover: #e2e8f0;

    /* Status Colors */
    --success-color: #10b981;
    --success-light: #dcfce7;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --danger-color: #ef4444;
    --danger-light: #fef2f2;

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    width: 92%;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.header p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Tab Navigation */
.tabs {
    display: flex;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.tab-button {
    flex: 1;
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s ease;
}

.tab-button.active {
    background: #3b82f6;
    color: white;
}

.tab-button:hover:not(.active) {
    background: #f1f5f9;
    color: #1e293b;
}

/* Tab Content */
.tab-content {
    display: none;
}

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

/* Summary Cards */
.summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: none;
}

.card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
}

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

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

/* Actions */
.actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.btn {
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    min-height: 40px;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-light);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-small {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.75rem;
    min-height: 32px;
}

/* Messages */
.message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.message-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.message-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Supplier Management */
.suppliers-header {
    margin-bottom: 2rem;
}

.suppliers-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suppliers-header-buttons {
    display: flex;
    gap: 1rem;
}


.suppliers-header h2 {
    margin: 0;
    color: #0f172a;
}

.suppliers-header p {
    color: #64748b;
    margin: 0.5rem 0 0 0;
}

.suppliers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.supplier-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.supplier-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.supplier-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.supplier-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    text-transform: capitalize;
}

.supplier-type {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.supplier-type.api {
    background: #dbeafe;
    color: #1e40af;
}

.supplier-type.ftp {
    background: #fef3c7;
    color: #92400e;
}

.supplier-info {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.sync-enabled {
    color: #059669;
    font-weight: 500;
}

.sync-disabled {
    color: #dc2626;
    font-weight: 500;
}

.supplier-sync-control {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.sync-toggle-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}

.sync-toggle {
    width: auto !important;
    margin: 0 !important;
    cursor: pointer;
}

.sync-toggle-text {
    user-select: none;
}

.supplier-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.supplier-stat {
    text-align: center;
}

.supplier-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.supplier-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* EAN Management */
.ean-management-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.ean-management-header h2 {
    margin: 0;
    color: #0f172a;
}

/* Delete button styling */
.supplier-delete-btn {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    border-radius: 4px !important;
    margin-left: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.supplier-delete-btn:hover {
    opacity: 1;
    transform: scale(1.05);
}

.supplier-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
}

.supplier-item-header .supplier-name {
    flex: 1;
}

.supplier-item-header .supplier-type {
    margin-right: 0.5rem;
}

.ean-management-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 2rem;
}

.ean-section h3 {
    color: #0f172a;
    margin-bottom: 1rem;
}

.add-ean-form {
    margin-bottom: 1.5rem;
}

.add-ean-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.ean-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
}

.ean-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.ean-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #0f172a;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.ean-actions {
    display: flex;
    gap: 0.5rem;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f4f6;
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

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

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-synced {
    background: #dcfce7;
    color: #166534;
}

.status-out_of_stock {
    background: #fef2f2;
    color: #991b1b;
}

.status-error {
    background: #fef2f2;
    color: #991b1b;
}

/* Stock Values */
.stock-value {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.stock-high {
    background: #dcfce7;
    color: #166534;
}

.stock-low {
    background: #fef3c7;
    color: #92400e;
}

.stock-zero {
    background: #fef2f2;
    color: #991b1b;
}

/* Desktop-Focused Design */

/* ===== PROFESSIONAL SUPPLIER PAGE DESIGN ===== */

/* Command Center - Top Section */
.supplier-command-center {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.command-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
}

.command-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-back {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-2px);
}

.supplier-identity .supplier-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    text-transform: capitalize;
}

.supplier-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.status-indicator {
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

.status-indicator.online {
    color: #10b981;
}

.status-indicator.offline {
    color: #ef4444;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.command-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.last-sync-info {
    text-align: right;
}

.sync-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.sync-time {
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-primary-action {
    background: #10b981;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.btn-primary-action:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-settings {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-settings:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.btn-settings:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.95);
}

/* Stats Dashboard */
.supplier-stats-dashboard {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat-item.success {
    border-left: 4px solid #10b981;
}

.stat-item.error {
    border-left: 4px solid #ef4444;
}

.stat-item.warning {
    border-left: 4px solid #f59e0b;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Main Workspace */
.supplier-workspace {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.workspace-left,
.workspace-right {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.section-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Inventory Controls */
.inventory-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-box {
    flex: 2;
}

.search-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-group {
    flex: 1;
}

.filter-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

/* Inventory Grid - Fixed double scroll issue */
.inventory-grid {
    max-height: 600px;
    overflow-y: auto;
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    background: var(--gray-50);
}

/* Action Cards */
.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: left;
    min-height: 100px;
}

.action-card.primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.action-card.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.action-card.secondary {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.action-card.secondary:hover {
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.action-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.action-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.action-desc {
    font-size: 1rem;
    opacity: 0.9;
}

/* Bulk Operations */
.bulk-operations {
    margin-bottom: var(--space-xl);
}

.bulk-operations h3 {
    color: var(--gray-700);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    font-weight: 600;
}

.bulk-ean-form {
    background: var(--gray-50);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    margin-bottom: var(--space-xl);
}

.bulk-textarea {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 120px;
    margin-bottom: var(--space-md);
    transition: border-color var(--transition-normal);
    background: var(--white);
}

.bulk-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.checkbox-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-normal);
}

.checkbox-option:hover {
    background-color: var(--gray-100);
}

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

.checkbox-text {
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
    user-select: none;
}

/* Button Group for Consistent Sizing */
.button-group {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.btn-bulk-add {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.btn-bulk-add:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Ensure all buttons in bulk controls are same height */
.bulk-controls .btn {
    min-height: 40px;
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Quick Actions */
.quick-actions h3 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.quick-action-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-action-item {
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    font-size: 0.875rem;
    color: #374151;
    transition: all 0.2s ease;
}

.quick-action-item:hover {
    background: #f9fafb;
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Settings Modal (Optimized) */
.settings-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.settings-section:last-child { border-bottom: none; margin-bottom: 0; }

.settings-section h4, .section-header h2 {
    color: #374151;
    margin-bottom: 1rem;
    font-weight: 600;
}

.settings-info {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.info-row:last-child { margin-bottom: 0; }

.info-label { font-weight: 500; color: #6b7280; }
.info-value { font-weight: 600; color: #111827; text-transform: capitalize; }

.schedule-form, .data-management {
    display: flex;
    gap: 1rem;
}

.schedule-form { flex-direction: column; }
.data-management { flex-wrap: wrap; }
.data-management .btn { flex: 1; min-width: 120px; }

/* Update EAN Cards for Better Density */
.ean-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.ean-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.ean-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

/* ===== BULK EAN MANAGEMENT ===== */

.bulk-ean-form {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.bulk-ean-controls {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.bulk-ean-input-container {
    flex: 1;
}

.bulk-ean-input-container label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.bulk-ean-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    resize: vertical;
    min-height: 120px;
}

.bulk-ean-options {
    margin-top: 0.75rem;
}

.bulk-ean-help {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    font-size: 0.875rem;
}

.bulk-ean-help ul {
    margin: 0.5rem 0 0 1rem;
    padding: 0;
}

.current-eans-section {
    margin-top: 2rem;
}

.current-eans-section h4 {
    color: #0f172a;
    margin-bottom: 1rem;
}

.ean-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f1f5f9;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.ean-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

/* ===== MODAL STYLES ===== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    margin: 0;
    color: var(--gray-900);
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.modal-body {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 1.5rem;
}

/* ===== FORM STYLES ===== */

.form-section {
    margin-bottom: 2rem;
}

.form-section h4 {
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: var(--white);
    transition: all var(--transition-normal);
    min-height: 40px;
}

.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(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--gray-300);
}

.form-group small {
    display: block;
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0;
}

/* Add this to web/style.css - Schedule Section Styling */

.schedule-section {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.schedule-section h3 {
    color: #0f172a;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.schedule-controls {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 1rem;
    align-items: center;
}

.schedule-controls .form-group {
    margin-bottom: 0;
}

.schedule-controls select {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.875rem;
}

.schedule-info {
    color: #64748b;
    font-size: 0.875rem;
}

.schedule-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}


/* ===== IMPORT EANS MODAL ===== */

.import-step {
    margin-bottom: 1.5rem;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-height: 400px;
    overflow-y: auto;
    padding: var(--space-lg);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
}

.brand-item {
    padding: var(--space-lg);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--white);
    min-height: 80px;
    display: flex;
    align-items: center;
}

.brand-item:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.brand-item.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.brand-item label {
    display: flex !important;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
    font-weight: 500 !important;
    font-size: 1rem;
    margin: 0;
    width: 100%;
    color: var(--gray-800);
}

.brand-item input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    cursor: pointer;
    flex-shrink: 0;
}

.import-summary {
    padding: 1rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
}

/* ===== EAN STOCK CARDS ===== */

.ean-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.form-control {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
}

.ean-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f1f5f9;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.ean-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    /* Removed max-height and overflow-y to fix double scroll */
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.ean-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.ean-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.ean-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.stock-indicator {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.product-name {
    font-weight: 500;
    color: #1e293b;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.3;
}

.ean-header .btn {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
    border-radius: 4px !important;
    margin-left: auto;
    flex-shrink: 0;
}

.ean-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ean-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.875rem;
    background: #f8fafc;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.stock-info {
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.ean-card.in-stock .stock-info {
    background: #dcfce7;
    color: #166534;
}

.ean-card.out-of-stock .stock-info {
    background: #fef2f2;
    color: #991b1b;
}

.ean-card.unknown .stock-info {
    background: #f1f5f9;
    color: #64748b;
}

.last-checked {
    font-size: 0.75rem;
    color: #64748b;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

/* Custom Checkbox Styling */
.checkbox-container {
    margin: var(--space-sm) 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 5px;
    width: 6px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkbox-input:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-input:checked + .checkbox-custom::after {
    opacity: 1;
}

.checkbox-input:hover + .checkbox-custom {
    border-color: var(--primary-color);
}

.checkbox-input:focus + .checkbox-custom {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.checkbox-text {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-help {
    margin-top: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    padding: var(--space-sm);
    background: var(--warning-light);
    border: 1px solid var(--warning-color);
    border-radius: var(--radius-sm);
}


