.publisher-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.publisher-content{background:#fff;border-radius:16px;padding:2rem;max-width:700px;width:100%;max-height:90vh;overflow-y:auto;position:relative;box-shadow:0 20px 60px #0000004d}.close-button{position:absolute;top:1rem;right:1rem;background:#f8f9fa;border:none;width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:1.25rem;color:#495057;transition:all .3s ease;display:flex;align-items:center;justify-content:center}.publisher-content h3{margin:0 0 1.5rem;color:#2c3e50;font-size:1.5rem}.publisher-content h4{margin:0 0 .75rem;color:#495057;font-size:1rem}.not-connected{text-align:center;padding:2rem}.not-connected h3{color:#3b5998;margin-bottom:1rem}.not-connected p{color:#6c757d;margin-bottom:1.5rem}.content-preview-box{background:#f8f9fa;border:2px solid #e1e8ed;border-radius:12px;padding:1.5rem;margin-bottom:1.5rem}.preview-image-container{margin-bottom:1rem;display:flex;justify-content:center}.preview-image{max-width:100%;max-height:200px;border-radius:8px;box-shadow:0 4px 8px #0000001a}.preview-text{background:#fff;border:1px solid #dee2e6;border-radius:8px;padding:1rem;max-height:200px;overflow-y:auto;font-size:.875rem;line-height:1.6;color:#2c3e50;margin-bottom:.75rem;white-space:pre-wrap}.preview-meta{display:flex;gap:1rem;font-size:.75rem;color:#6c757d;flex-wrap:wrap}.pages-section{margin-bottom:1.5rem}.pages-list{border:2px solid #e1e8ed;border-radius:8px;padding:1rem;max-height:200px;overflow-y:auto}.page-checkbox{display:flex;align-items:center;padding:.75rem;border-radius:6px;cursor:pointer;transition:background .3s ease;margin-bottom:.5rem}.page-checkbox:hover{background:#f8f9fa}.page-checkbox input[type=checkbox]{margin-right:.75rem;cursor:pointer;width:18px;height:18px}.page-checkbox span{font-size:.875rem;color:#2c3e50;font-weight:500}.schedule-section{margin-bottom:1.5rem}.schedule-checkbox{display:flex;align-items:center;cursor:pointer;margin-bottom:.75rem}.schedule-checkbox input[type=checkbox]{margin-right:.75rem;cursor:pointer;width:18px;height:18px}.schedule-checkbox span{font-size:.875rem;color:#2c3e50;font-weight:500}.datetime-input{width:100%;padding:.75rem;border:2px solid #e1e8ed;border-radius:8px;font-size:.875rem}.datetime-input:focus{outline:none;border-color:#667eea}.error-box{background:#fee;border:2px solid #fcc;border-radius:8px;padding:1rem;margin-bottom:1rem;color:#c33;font-size:.875rem}.success-box{background:#d4edda;border:2px solid #c3e6cb;border-radius:8px;padding:1rem;margin-bottom:1rem;color:#155724;font-size:.875rem}.duplicates-warning-box{background:#fff3cd;border:2px solid #ffeaa7;border-radius:12px;padding:1.5rem;margin-bottom:1.5rem;color:#856404}.warning-header{font-size:1rem;margin-bottom:1rem;color:#856404}.warning-content p{margin-bottom:1rem;font-size:.875rem}.duplicates-list{list-style:none;padding:0;margin:0 0 1.5rem}.duplicate-item{background:#fff;border:1px solid #ffeaa7;border-radius:8px;padding:1rem;margin-bottom:.75rem}.duplicate-info{display:flex;flex-direction:column;gap:.5rem}.duplicate-info strong{color:#2c3e50;font-size:.875rem}.similarity-badge{display:inline-block;padding:.25rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600;width:fit-content}.similarity-badge.exact{background:#ffebee;color:#c62828;border:1px solid #ffcdd2}.similarity-badge.content{background:#fff3e0;color:#ef6c00;border:1px solid #ffcc02}.duplicate-time,.duplicate-status{font-size:.75rem;color:#6c757d}.duplicate-actions{display:flex;gap:.75rem;justify-content:flex-end}.btn-force-publish{background:#ff6b35;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .3s ease}.btn-force-publish:hover{background:#e55a2b}.btn-cancel{background:#6c757d;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .3s ease}.btn-cancel:hover{background:#5a6268}.publisher-actions{display:flex;gap:1rem;justify-content:flex-end}.btn{padding:.75rem 1.5rem;border:none;border-radius:8px;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .3s ease}.btn-primary{background:#3b5998;color:#fff}.btn-primary:hover:not(:disabled){background:#2d4373}@media (max-width: 768px){.publisher-modal{padding:.5rem}.publisher-content{padding:1.5rem}.publisher-actions{flex-direction:column-reverse}.btn{width:100%}}.image-manager{background:#fff;border-radius:16px;padding:2rem;box-shadow:0 4px 12px #0000001a;max-width:600px;margin:0 auto}.image-manager-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;position:relative}.image-manager-header h3{margin:0;color:#2c3e50;font-size:1.5rem}.subtitle{color:#7f8c8d;font-size:.875rem;margin:.5rem 0 0}.close-button{position:absolute;top:-.5rem;right:-.5rem;background:#f8f9fa;border:none;width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:1.25rem;color:#495057;transition:all .3s ease;display:flex;align-items:center;justify-content:center}.close-button:hover{background:#e9ecef;transform:rotate(90deg)}.stats-section{display:flex;gap:2rem;margin-bottom:1.5rem;padding:1rem;background:#f8f9fa;border-radius:8px}.stat-item{display:flex;flex-direction:column;gap:.25rem}.stat-label{font-size:.75rem;color:#6c757d;font-weight:500}.stat-value{font-size:1rem;color:#2c3e50;font-weight:600}.upload-zone{border:2px dashed #dee2e6;border-radius:12px;padding:3rem 2rem;text-align:center;cursor:pointer;transition:all .3s ease;margin-bottom:1.5rem;background:#fafbfc}.upload-zone:hover{border-color:#667eea;background:#f0f4ff}.upload-zone.dragover{border-color:#667eea;background:#e3f2fd;transform:scale(1.02)}.spinner{width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid #667eea;border-radius:50%;animation:spin 1s linear infinite}.upload-placeholder{display:flex;flex-direction:column;align-items:center;gap:1rem}.upload-icon{font-size:3rem;color:#adb5bd}.upload-placeholder h4{margin:0;color:#495057;font-size:1.25rem}.upload-placeholder p{margin:0;color:#6c757d;font-size:.875rem}.upload-info{display:flex;gap:1rem;font-size:.75rem;color:#adb5bd}.upload-info span{background:#e9ecef;padding:.25rem .5rem;border-radius:4px}.error-message{background:#fee;border:2px solid #fcc;border-radius:8px;padding:1rem;margin-bottom:1.5rem;color:#c33;font-size:.875rem}.image-preview{margin-bottom:1.5rem}.image-preview h4{margin:0 0 1rem;color:#2c3e50;font-size:1rem}.preview-container{border:2px solid #e1e8ed;border-radius:12px;padding:1rem;background:#f8f9fa;margin-bottom:1rem;display:flex;justify-content:center}.preview-image{max-width:100%;max-height:300px;border-radius:8px;box-shadow:0 4px 8px #0000001a}.image-info{background:#f8f9fa;border-radius:8px;padding:1rem;margin-bottom:1rem}.image-info p{margin:.5rem 0;font-size:.875rem;color:#495057}.image-info p:first-child{margin-top:0}.image-info p:last-child{margin-bottom:0}.assign-section{display:flex;justify-content:center}.btn{padding:.75rem 2rem;border:none;border-radius:8px;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:.5rem}.existing-images-section{margin-bottom:2rem;border:1px solid #e1e8ed;border-radius:12px;overflow:hidden}.section-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;background:#f8f9fa;border-bottom:1px solid #e1e8ed}.section-header h4{margin:0;color:#2c3e50;font-size:1.125rem}.bulk-actions{display:flex;gap:.5rem;align-items:center}.btn-sm{padding:.375rem .75rem;font-size:.75rem}.btn-secondary{background:#6c757d;color:#fff}.btn-secondary:hover:not(:disabled){background:#5a6268}.btn-danger{background:#dc3545;color:#fff}.btn-danger:hover:not(:disabled){background:#c82333}.loading-images{display:flex;flex-direction:column;align-items:center;padding:2rem;color:#6c757d}.images-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem;padding:1.5rem;background:#fff}.image-item{border:2px solid #e1e8ed;border-radius:8px;padding:.75rem;background:#fafbfc;transition:all .3s ease;position:relative}.image-item:hover{border-color:#667eea;transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.image-item.selected{border-color:#667eea;background:#f0f4ff}.image-checkbox{position:absolute;top:.5rem;left:.5rem;z-index:2}.image-checkbox input[type=checkbox]{width:18px;height:18px;cursor:pointer}.image-preview{margin-bottom:.75rem;text-align:center}.image-preview img{width:100%;height:120px;object-fit:cover;border-radius:6px;background:#f8f9fa}.image-info{margin-bottom:.75rem}.filename{font-size:.75rem;font-weight:600;color:#2c3e50;margin:0 0 .25rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.upload-date{font-size:.625rem;color:#6c757d;margin:0}.image-actions{display:flex;justify-content:center;gap:.5rem}.image-actions .btn{padding:.25rem .5rem;font-size:.75rem;min-width:auto}.tips-section{margin-top:2rem;background:#f8f9fa;border-radius:8px;padding:1rem}.tips-section summary{cursor:pointer;font-weight:600;color:#495057;-webkit-user-select:none;user-select:none;padding:.5rem 0}.tips-section ul{margin-top:1rem;padding-left:1.5rem}.tips-section li{color:#495057;margin-bottom:.5rem;line-height:1.6;font-size:.875rem}@media (max-width: 768px){.image-manager{padding:1.5rem;margin:1rem}.stats-section{flex-direction:column;gap:1rem}.upload-zone{padding:2rem 1rem}.upload-info{flex-direction:column;gap:.5rem}.preview-image{max-height:200px}}.image-bank{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000001a;margin-bottom:1.5rem}.image-bank-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.image-bank-header h3{margin:0;font-size:1.25rem;font-weight:600;color:#1f2937}.image-bank-subtitle{margin:.25rem 0 0;font-size:.875rem;color:#6b7280}.upload-toggle-btn{padding:.5rem 1rem;background:#3b82f6;color:#fff;border:none;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s}.upload-toggle-btn:hover{background:#2563eb;transform:translateY(-1px);box-shadow:0 4px 6px #3b82f64d}.upload-zone{border:2px dashed #d1d5db;border-radius:8px;padding:2rem;text-align:center;background:#f9fafb;cursor:pointer;transition:all .2s;margin-bottom:1.5rem}.upload-zone:hover{border-color:#3b82f6;background:#eff6ff}.upload-zone-content{display:flex;flex-direction:column;align-items:center;gap:.5rem}.upload-icon{font-size:3rem}.upload-text{font-size:1rem;font-weight:500;color:#374151;margin:0}.upload-hint{font-size:.875rem;color:#6b7280;margin:0}.uploading-state{display:flex;flex-direction:column;align-items:center;gap:1rem}.image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:1rem}.image-card{position:relative;border:2px solid #e5e7eb;border-radius:8px;overflow:hidden;cursor:pointer;transition:all .2s;background:#fff}.image-card:hover{border-color:#3b82f6;box-shadow:0 4px 12px #3b82f633;transform:translateY(-2px)}.image-card.selected{border-color:#10b981;box-shadow:0 4px 12px #10b9814d}.image-card.selected-for-delete{border-color:#ef4444;box-shadow:0 4px 12px #ef44444d;opacity:.8}.image-wrapper{position:relative;width:100%;height:150px;overflow:hidden;background:#f3f4f6}.product-image{width:100%;height:100%;object-fit:cover}.selected-badge{position:absolute;top:.5rem;right:.5rem;background:#10b981;color:#fff;padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600;box-shadow:0 2px 4px #0003}.image-info{padding:.75rem;background:#fff}.image-filename{margin:0 0 .25rem;font-size:.875rem;font-weight:500;color:#374151;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-date{margin:0;font-size:.75rem;color:#9ca3af}.delete-image-btn{position:absolute;top:.5rem;left:.5rem;background:#ef4444e6;color:#fff;border:none;border-radius:50%;width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;transition:all .2s;font-size:1rem}.image-card:hover .delete-image-btn{opacity:1}.delete-image-btn:hover{background:#dc2626;transform:scale(1.1)}.no-images{text-align:center;padding:3rem 1rem}.no-images-icon{font-size:4rem;margin-bottom:1rem;opacity:.5}.no-images p{color:#6b7280;margin-bottom:1.5rem}.upload-first-btn{padding:.75rem 1.5rem;background:#3b82f6;color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:500;cursor:pointer;transition:all .2s}.upload-first-btn:hover{background:#2563eb;transform:translateY(-1px);box-shadow:0 4px 6px #3b82f64d}.image-bank-loading{text-align:center;padding:3rem 1rem}.spinner{border:3px solid #f3f4f6;border-top:3px solid #3b82f6;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite;margin:0 auto 1rem}@media (max-width: 768px){.image-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:.75rem}.image-wrapper{height:120px}.upload-zone{padding:1.5rem 1rem}.upload-icon{font-size:2rem}.delete-image-btn{opacity:1}}.content-generator{max-width:1600px;margin:0 auto;padding:2rem}.generator-header{text-align:center;margin-bottom:2rem}.generator-header h2{font-size:2rem;margin-bottom:.5rem;color:#2c3e50}.generator-grid{display:grid;grid-template-columns:400px 1fr;gap:2rem;margin-bottom:2rem}@media (max-width: 1024px){.generator-grid{grid-template-columns:1fr}}.config-panel{background:#fff;border-radius:16px;padding:2rem;box-shadow:0 4px 12px #0000001a;height:fit-content;position:sticky;top:2rem}.form-section{margin-bottom:1.5rem}.form-label{display:flex;justify-content:space-between;align-items:center;font-weight:600;color:#2c3e50;margin-bottom:.5rem;font-size:.875rem}.form-label input[type=checkbox]{margin-right:.5rem}.selected-badge{background:#667eea;color:#fff;padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600}.search-input,.form-select{width:100%;padding:.75rem;border:2px solid #e1e8ed;border-radius:8px;font-size:.875rem;transition:border-color .3s ease}.search-input{margin-bottom:.75rem}.filter-row{display:flex;gap:.5rem;margin-bottom:.75rem}.country-filter{flex:0 0 auto;width:200px;margin-bottom:0}.filter-row .search-input{flex:1;margin-bottom:0}.modal-actions{display:flex;justify-content:flex-end;gap:.75rem;padding:1rem 1.5rem;border-top:1px solid #e5e7eb;background:#f9fafb}.search-input:focus,.form-select:focus{outline:none;border-color:#667eea}.form-select{cursor:pointer;background:#fff}.product-preview{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:1.5rem;border-radius:12px;margin-top:1rem}.product-preview h4{margin:0 0 .5rem;font-size:1.125rem}.product-meta{font-size:.875rem;opacity:.9;margin-bottom:.5rem}.product-price{font-size:1.25rem;font-weight:700;margin-bottom:.75rem}.price-old{font-size:.875rem;opacity:.7;text-decoration:line-through;margin-left:.5rem}.product-desc{font-size:.875rem;line-height:1.5;opacity:.95;margin:0}.custom-prompt-input{width:100%;padding:.75rem;border:2px solid #e1e8ed;border-radius:8px;font-size:.875rem;font-family:Monaco,Courier New,monospace;margin-top:.5rem;resize:vertical}.custom-prompt-input:focus{outline:none;border-color:#667eea}.action-buttons{display:flex;flex-direction:column;gap:.75rem;margin-top:1.5rem}.btn{padding:.875rem 1.5rem;border:none;border-radius:8px;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;gap:.5rem}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 16px #667eea4d}.btn-secondary{background:#f8f9fa;color:#495057;border:2px solid #dee2e6}.btn-secondary:hover:not(:disabled){background:#e9ecef}.btn-success{background:#27ae60;color:#fff}.btn-success:hover:not(:disabled){background:#229954}.btn-publish{background:#3b5998;color:#fff}.btn-publish:hover:not(:disabled){background:#2d4373}.btn-ghost{background:transparent;color:#667eea;border:2px solid #667eea}.btn-ghost:hover:not(:disabled){background:#667eea;color:#fff}.history-list{max-height:400px;overflow-y:auto;margin-top:.75rem;border:2px solid #e1e8ed;border-radius:8px;padding:.5rem}.history-item{background:#f8f9fa;border:1px solid #dee2e6;border-radius:8px;padding:.75rem;margin-bottom:.5rem;cursor:pointer;transition:all .3s ease}.history-item:hover{background:#e9ecef;border-color:#667eea;transform:translate(4px)}.history-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.history-type{font-size:.75rem;font-weight:600;color:#495057}.history-status{font-size:.75rem;padding:.25rem .5rem;border-radius:12px;font-weight:600}.status-draft{background:#ffc107;color:#856404}.status-approved{background:#28a745;color:#fff}.status-published{background:#17a2b8;color:#fff}.history-preview{font-size:.875rem;color:#6c757d;margin:.5rem 0;line-height:1.4}.history-date{font-size:.75rem;color:#adb5bd;margin:0}.preview-panel{background:#fff;border-radius:16px;padding:2rem;box-shadow:0 4px 12px #0000001a;min-height:600px;display:flex;flex-direction:column}.empty-preview,.ready-state,.generating-state{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:3rem}.empty-icon,.ready-icon{font-size:4rem;margin-bottom:1rem}.empty-preview h3,.ready-state h3{color:#2c3e50;margin-bottom:.5rem}.empty-preview p,.ready-state p{color:#7f8c8d}.hint{font-size:.875rem;color:#95a5a6!important;margin-top:.5rem}.spinner{width:50px;height:50px;border:4px solid #f3f3f3;border-top:4px solid #667eea;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:1rem}.generating-state h3{color:#2c3e50;margin-bottom:.5rem}.generating-state p{color:#7f8c8d}.error-message{background:#fee;border:2px solid #fcc;border-radius:8px;padding:1rem;margin-bottom:1rem;color:#c33}.content-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;border-bottom:2px solid #e1e8ed}.content-header h3{margin:0;color:#2c3e50}.content-meta{display:flex;gap:.5rem}.meta-tag{background:#e3f2fd;color:#1976d2;padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600}.meta-tag.angle{background:#fff3cd;color:#856404}.image-preview-section{margin-bottom:1.5rem;padding:1rem;background:#f8f9fa;border-radius:8px;border:2px solid #e1e8ed}.image-preview-section h4{margin:0 0 1rem;color:#2c3e50;font-size:.875rem}.image-preview-container{display:flex;justify-content:center;background:#fff;border-radius:8px;padding:1rem}.content-image{max-width:100%;max-height:300px;border-radius:8px;box-shadow:0 4px 8px #0000001a}.image-help{margin-top:.75rem;text-align:center;font-size:.875rem;color:#27ae60;font-weight:500}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.modal-content{background:#fff;border-radius:16px;max-width:90vw;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0000004d}.content-editor{flex:1;display:flex;flex-direction:column;margin-bottom:1rem}.content-textarea{flex:1;width:100%;padding:1rem;border:2px solid #e1e8ed;border-radius:8px;font-size:.875rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.6;resize:vertical;min-height:400px}.content-textarea:focus{outline:none;border-color:#667eea}.editor-stats{display:flex;gap:1.5rem;margin-top:.5rem;font-size:.75rem;color:#7f8c8d}.editor-stats .image-indicator{color:#27ae60;font-weight:600;background:#d5f4e6;padding:.25rem .75rem;border-radius:12px}.content-actions{display:flex;gap:.75rem;flex-wrap:wrap}.help-section{background:#f8f9fa;border-radius:12px;padding:1.5rem;margin-top:2rem}.help-section summary{cursor:pointer;font-weight:600;color:#495057;-webkit-user-select:none;user-select:none}.help-section ul{margin-top:1rem;padding-left:1.5rem}.help-section li{color:#495057;margin-bottom:.5rem;line-height:1.6}@media (max-width: 1024px){.content-generator{padding:1rem}.config-panel{position:static}.action-buttons,.content-actions{flex-direction:column}.btn{width:100%}}.calendar-container{background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a;overflow:hidden}.calendar-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.calendar-header h3{margin:0;font-size:1.25rem;font-weight:600}.header-actions{display:flex;align-items:center;gap:.5rem}.btn-refresh{background:#fff3;border:1px solid rgba(255,255,255,.3);color:#fff;padding:.5rem 1rem;border-radius:6px;cursor:pointer;font-size:.875rem;transition:all .2s}.btn-refresh:hover{background:#ffffff4d}.empty-state{padding:3rem;text-align:center;color:#666}.empty-state h4{margin:.5rem 0;color:#333}.calendar-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;padding:1.5rem;min-height:400px}.publications-list{display:flex;flex-direction:column;gap:1rem;max-height:600px;overflow-y:auto}.publication-card{background:#fff;border:2px solid #e0e0e0;border-radius:8px;padding:1rem;cursor:pointer;transition:all .2s}.publication-card:hover{border-color:#667eea;transform:translateY(-2px);box-shadow:0 4px 12px #667eea26}.publication-card.selected{border-color:#667eea;background:#f8f9ff;box-shadow:0 4px 12px #667eea33}.publication-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.platform-badge{background:#667eea;color:#fff;padding:.25rem .75rem;border-radius:4px;font-size:.75rem;font-weight:600}.status-badge{background:#ffc107;color:#333;padding:.25rem .75rem;border-radius:4px;font-size:.75rem;font-weight:600;text-transform:uppercase}.publication-content{display:flex;align-items:flex-start;margin-bottom:.75rem}.publication-text{flex:1}.publication-time{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.time-info{display:flex;flex-direction:column}.date-info{font-size:.875rem;color:#333;font-weight:600;margin-bottom:.25rem}.time-detail{font-size:.875rem;color:#666}.status-time{font-size:.875rem;font-weight:600;text-align:right}.time-remaining{padding:.5rem;background:#f0f0f0;border-radius:4px;font-size:.875rem;color:#667eea;font-weight:600;margin-bottom:.75rem;text-align:center}.publication-preview{font-size:.875rem;color:#666;line-height:1.4;margin-bottom:.5rem}.publication-meta{font-size:.75rem;color:#999}.publication-details{background:#fff;border:2px solid #667eea;border-radius:8px;overflow:hidden;max-height:600px;overflow-y:auto}.details-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;background:#667eea;color:#fff}.details-header h4{margin:0;font-size:1rem;font-weight:600}.btn-close{background:transparent;border:none;color:#fff;font-size:1.5rem;cursor:pointer;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background .2s}.btn-close:hover{background:#fff3}.details-content{padding:1.5rem}.detail-section{margin-bottom:1.5rem}.detail-section label{display:block;font-weight:600;color:#333;margin-bottom:.5rem;font-size:.875rem}.detail-value{color:#666;padding:.75rem;background:#f8f9fa;border-radius:6px;font-size:.875rem}.content-preview{background:#f8f9fa;padding:1rem;border-radius:6px;border-left:3px solid #667eea;font-size:.875rem;line-height:1.6;color:#333;white-space:pre-wrap;max-height:200px;overflow-y:auto}.image-preview-large{margin-top:.5rem}.details-actions{padding:1rem 1.5rem;background:#f8f9fa;border-top:1px solid #e0e0e0;display:flex;gap:1rem}.btn-cancel{flex:1;background:#dc3545;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:6px;font-weight:600;cursor:pointer;transition:all .2s}.btn-cancel:hover{background:#c82333;transform:translateY(-1px);box-shadow:0 2px 8px #dc35454d}.spinner{width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid #667eea;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (max-width: 768px){.calendar-grid{grid-template-columns:1fr}}.bulk-import-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:9999;padding:2rem;animation:fadeIn .2s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.bulk-import-content{background:#fff;border-radius:12px;box-shadow:0 20px 40px #0000004d;width:100%;max-width:800px;max-height:90vh;overflow:hidden;display:flex;flex-direction:column}.bulk-import-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem 2rem;border-bottom:1px solid #e5e7eb;background:#f9fafb}.bulk-import-header h2{margin:0;color:#1f2937;font-size:1.5rem;font-weight:600}.close-button{background:none;border:none;font-size:1.5rem;color:#6b7280;cursor:pointer;padding:.5rem;border-radius:6px;transition:all .2s}.close-button:hover{background:#e5e7eb;color:#374151}.bulk-import-body{flex:1;overflow-y:auto;padding:2rem}.file-selector{margin-bottom:2rem}.drop-zone{border:2px dashed #d1d5db;border-radius:8px;padding:3rem 2rem;text-align:center;cursor:pointer;transition:all .3s;background:#fafafa}.drop-zone:hover{border-color:#3b82f6;background:#f0f9ff}.drop-zone.dragover{border-color:#3b82f6;background:#eff6ff;transform:scale(1.02)}.drop-zone-content{pointer-events:none}.drop-icon{font-size:3rem;margin-bottom:1rem}.drop-zone p{margin:.5rem 0;color:#6b7280}.drop-hint{font-size:.875rem;color:#9ca3af}.products-preview{margin-bottom:2rem;padding:1.5rem;background:#f8fafc;border-radius:8px;border:1px solid #e2e8f0}.products-preview h3{margin:0 0 1rem;color:#1e293b;font-size:1.125rem}.preview-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1.5rem}.stat{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:#fff;border-radius:6px;border:1px solid #e2e8f0}.stat-label{font-weight:500;color:#64748b}.stat-value{font-weight:600;color:#1e293b}.preview-list{max-height:200px;overflow-y:auto}.preview-item{padding:.75rem;background:#fff;border-radius:6px;margin-bottom:.5rem;border:1px solid #e2e8f0}.preview-name{font-weight:600;color:#1e293b;margin-bottom:.25rem}.preview-details{font-size:.875rem;color:#64748b}.preview-more{text-align:center;padding:.75rem;color:#64748b;font-style:italic}.import-options{margin-bottom:2rem;padding:1.5rem;background:#f8fafc;border-radius:8px;border:1px solid #e2e8f0}.import-options h3{margin:0 0 1rem;color:#1e293b;font-size:1.125rem}.options-grid{display:flex;flex-direction:column;gap:1rem}.option-item{display:flex;align-items:center;gap:.75rem;cursor:pointer}.option-item input[type=checkbox]{width:1.125rem;height:1.125rem;accent-color:#3b82f6}.option-item input[type=checkbox]:disabled{opacity:.5;cursor:not-allowed}.option-item span{color:#374151;font-size:.875rem}.import-result{margin-bottom:2rem;padding:1.5rem;border-radius:8px;border:1px solid}.import-result.success{background:#f0fdf4;border-color:#bbf7d0}.import-result.error{background:#fef2f2;border-color:#fecaca}.import-result h3{margin:0 0 1rem;font-size:1.125rem}.import-result.success h3{color:#166534}.import-result.error h3{color:#dc2626}.result-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:1rem;margin-bottom:1rem}.summary-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:#fff;border-radius:6px;border:1px solid #e5e7eb}.summary-item span{font-size:.875rem;color:#6b7280}.summary-item strong{font-size:1.125rem;font-weight:600}.summary-item .success{color:#16a34a}.summary-item .info{color:#3b82f6}.summary-item .warning{color:#d97706}.summary-item .error{color:#dc2626}.result-errors{margin-top:1rem}.result-errors h4{margin:0 0 .5rem;color:#dc2626;font-size:1rem}.result-errors ul{margin:0;padding-left:1.5rem;color:#6b7280;font-size:.875rem}.result-errors li{margin-bottom:.25rem}.bulk-import-footer{display:flex;justify-content:flex-end;gap:1rem;padding:1.5rem 2rem;border-top:1px solid #e5e7eb;background:#f9fafb}.cancel-button{padding:.75rem 1.5rem;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#374151;font-weight:500;cursor:pointer;transition:all .2s}.cancel-button:hover{background:#f9fafb;border-color:#9ca3af}.cancel-button:disabled{opacity:.5;cursor:not-allowed}.import-button{padding:.75rem 1.5rem;border:none;border-radius:6px;background:#3b82f6;color:#fff;font-weight:600;cursor:pointer;transition:all .2s}.import-button:hover{background:#2563eb}.import-button:disabled{background:#9ca3af;cursor:not-allowed}@media (max-width: 768px){.bulk-import-modal{padding:1rem}.bulk-import-content{max-height:95vh}.bulk-import-header,.bulk-import-body,.bulk-import-footer{padding:1rem}.drop-zone{padding:2rem 1rem}.preview-stats,.result-summary{grid-template-columns:1fr}.bulk-import-footer{flex-direction:column}}.product-manager{max-width:1400px;margin:0 auto;padding:2rem}.product-manager-header{text-align:center;margin-bottom:2rem}.product-manager-header h2{font-size:2rem;margin-bottom:.5rem;color:#2c3e50}.subtitle{color:#7f8c8d;font-size:1rem}.view-tabs{display:flex;gap:1rem;justify-content:center;margin-top:1.5rem}.tab-button{padding:.75rem 2rem;border:2px solid #e1e8ed;background:#fff;border-radius:8px;font-size:.875rem;font-weight:600;color:#495057;cursor:pointer;transition:all .3s ease}.tab-button:hover{border-color:#667eea;color:#667eea}.tab-button.active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-color:#667eea;box-shadow:0 4px 12px #667eea4d}.import-section{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:16px;padding:3rem;margin-bottom:2rem}.empty-state{text-align:center;color:#fff}.empty-icon{font-size:4rem;margin-bottom:1rem}.empty-state h3{font-size:1.5rem;margin-bottom:.5rem}.empty-state p{opacity:.9;margin-bottom:2rem}.button-group{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}.import-button{padding:.75rem 2rem;font-size:1rem;font-weight:600;border:none;border-radius:8px;cursor:pointer;transition:all .3s ease;display:inline-flex;align-items:center;gap:.5rem}.import-button.primary{background:#fff;color:#667eea}.import-button.primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 16px #0003}.import-button.secondary{background:#f8f9fa;color:#495057;padding:.5rem 1rem;font-size:.875rem}.import-button.secondary:hover:not(:disabled){background:#e9ecef}.import-button.danger{background:#dc3545;color:#fff;padding:.5rem 1rem;font-size:.875rem}.import-button.danger:hover:not(:disabled){background:#c82333}.import-button:disabled{opacity:.6;cursor:not-allowed}.header-actions{display:flex;gap:.5rem;flex-wrap:wrap}.import-progress{margin-top:2rem;background:#fff3;padding:1.5rem;border-radius:8px}.progress-bar{height:8px;background:#ffffff4d;border-radius:4px;overflow:hidden;margin-bottom:.5rem}.progress-fill{height:100%;background:#fff;transition:width .3s ease;border-radius:4px}.progress-text{color:#fff;font-weight:600;margin:0}.import-result{margin-top:2rem;background:#fff;color:#2c3e50;padding:1.5rem;border-radius:8px;text-align:left}.import-result.success{border-left:4px solid #27ae60}.import-result.warning{border-left:4px solid #f39c12}.import-result.info{border-left:4px solid #3498db}.import-result h4{margin-top:0;margin-bottom:.5rem}.errors-details{margin-top:1rem;padding:1rem;background:#fff3cd;border-radius:4px}.errors-details summary{cursor:pointer;font-weight:600;color:#856404}.errors-details ul{margin-top:.5rem;padding-left:1.5rem}.errors-details li{font-size:.875rem;color:#856404;margin-bottom:.25rem}.debug-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem;margin-bottom:1rem}.debug-item{background:#f8f9fa;padding:.75rem;border-radius:6px;display:flex;flex-direction:column;gap:.25rem}.debug-label{font-size:.75rem;color:#6c757d;text-transform:uppercase;letter-spacing:.5px}.debug-value{font-size:1.5rem;font-weight:700;color:#2c3e50}.debug-warning{background:#fff3cd;border:1px solid #ffc107;padding:1rem;border-radius:6px;margin-top:1rem}.debug-warning strong{display:block;margin-bottom:.5rem;color:#856404}.debug-warning ul{margin:0;padding-left:1.5rem}.debug-warning li{font-size:.875rem;color:#856404;margin-bottom:.25rem}.import-result details{margin-top:1rem}.import-result summary{cursor:pointer;font-weight:600;padding:.5rem;background:#f8f9fa;border-radius:4px}.import-result pre{background:#f8f9fa;padding:1rem;border-radius:4px;overflow-x:auto;font-size:.75rem;margin-top:.5rem}.simple-stats{background:#fff;border-radius:8px;padding:1rem;margin-bottom:2rem;box-shadow:0 1px 3px #0000001a}.stats-row{display:flex;justify-content:space-around;align-items:center}.stat-item{text-align:center;padding:.5rem}.stat-number{display:block;font-size:2rem;font-weight:700;color:#2563eb;margin-bottom:.25rem}.stat-text{display:block;font-size:.9rem;color:#6b7280;font-weight:500}.products-section{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 2px 8px #0000001a}.products-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.products-header h3{margin:0;color:#2c3e50}.filters{display:flex;gap:1rem;margin-bottom:1.5rem;flex-wrap:wrap}.search-input,.filter-select{padding:.75rem;border:2px solid #e1e8ed;border-radius:8px;font-size:.875rem;transition:border-color .3s ease}.search-input{flex:1;min-width:250px}.search-input:focus,.filter-select:focus{outline:none;border-color:#667eea}.filter-select{min-width:180px;cursor:pointer}.clear-filters{padding:.75rem 1rem;background:#f8f9fa;border:2px solid #dee2e6;border-radius:8px;cursor:pointer;font-size:.875rem;color:#495057;transition:all .3s ease}.clear-filters:hover{background:#e9ecef}.products-list{margin-top:1.5rem}.results-count{color:#7f8c8d;margin-bottom:1rem;font-size:.875rem}.no-results{text-align:center;padding:3rem;color:#95a5a6}.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1.5rem}.product-card{background:#f8f9fa;border:2px solid #e9ecef;border-radius:12px;padding:1.5rem;transition:all .3s ease;cursor:pointer}.product-card:hover{border-color:#667eea;box-shadow:0 4px 12px #667eea26;transform:translateY(-2px)}.product-header{display:flex;justify-content:space-between;align-items:start;margin-bottom:.75rem}.product-header h4{margin:0;font-size:1.125rem;color:#2c3e50;flex:1}.product-badge{background:#667eea;color:#fff;padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600;white-space:nowrap}.product-category{color:#7f8c8d;font-size:.875rem;margin-bottom:.75rem}.product-description{color:#495057;font-size:.875rem;line-height:1.5;margin-bottom:1rem}.product-footer{display:flex;justify-content:space-between;align-items:center;padding-top:1rem;border-top:1px solid #dee2e6}.product-price{display:flex;flex-direction:column;gap:.25rem}.price-new{font-size:1.25rem;font-weight:700;color:#27ae60}.price-old{font-size:.875rem;color:#95a5a6;text-decoration:line-through}.product-types{font-size:.75rem;color:#7f8c8d;background:#e9ecef;padding:.25rem .75rem;border-radius:12px}@media (max-width: 768px){.product-manager{padding:1rem}.stats-grid{grid-template-columns:repeat(2,1fr)}.filters{flex-direction:column}.search-input,.filter-select{width:100%}.products-grid{grid-template-columns:1fr}.products-header{flex-direction:column;align-items:flex-start;gap:1rem}}.product-card.discontinued{opacity:.7;background:#f8f9fa;border-color:#dc3545}.product-card.discontinued:hover{border-color:#dc3545;box-shadow:0 4px 12px #dc354526}.product-badges{display:flex;flex-direction:column;gap:.5rem;align-items:flex-end}.discontinued-badge{background:#dc3545;color:#fff;padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600;white-space:nowrap}.discontinued-toggle{padding:.5rem 1rem;border:none;border-radius:6px;font-size:.75rem;font-weight:600;cursor:pointer;transition:all .3s ease;margin-top:.5rem;width:100%}.discontinued-toggle.discontinue{background:#dc3545;color:#fff}.discontinued-toggle.discontinue:hover{background:#c82333}.discontinued-toggle.reactivate{background:#28a745;color:#fff}.discontinued-toggle.reactivate:hover{background:#218838}@media (max-width: 768px){.stats-row{flex-wrap:wrap;gap:1rem}.stat-item{flex:1;min-width:120px}}@media (max-width: 480px){.stats-row{flex-direction:column;gap:.5rem}.stat-item{flex:none}}
