Files
tilbudgivern/frontend/src/MaterialsList.css
T
alexpolo1 d4d3eb3d00 feat: Implement Bygma Prisbog import script to handle CSV import of 54,558 products
feat: Create Python script to scrape 10 installation manuals from Bygma, focusing on construction materials

feat: Develop script to scrape installation manual from Bygma by VareNr, including AI analysis and database storage

feat: Add script to scrape Swedoor Snap-In Karmsat installation manual using product name from URL

chore: Create start script for PM2 to manage services with correct node path

test: Add comprehensive test script for quote generation and PDF endpoints

test: Implement CSV parser tests to verify product presence and data integrity

test: Create readline test script to efficiently read and search for product in CSV
2025-10-26 08:15:46 +00:00

1430 lines
26 KiB
CSS

/* MaterialsList.css - Based on CompletedQuotes design patterns */
/* GLOBAL CENTER ALIGNMENT OVERRIDE */
* {
text-align: inherit;
}
.materials-list-view {
padding: 0;
width: 100vw;
max-width: 100vw;
margin: 0;
background: #f8f9fa;
min-height: 100vh;
box-sizing: border-box;
}
.materials-header {
background: white;
padding: 24px;
border-bottom: 1px solid #e0e0e0;
margin-bottom: 0;
}
.materials-header h2 {
margin: 0 0 8px 0;
color: #2c3e50;
font-size: 28px;
font-weight: 600;
}
.materials-header p {
margin: 0 0 24px 0;
color: #666;
font-size: 16px;
}
.materials-controls {
display: flex;
flex-direction: column;
gap: 16px;
width: 100%;
margin-bottom: 20px;
}
.filter-controls {
display: flex;
flex-wrap: wrap;
gap: 16px;
align-items: end;
}
.filter-controls label {
display: flex;
flex-direction: column;
gap: 4px;
min-width: 150px;
}
.filter-controls label span {
font-weight: 500;
color: #555;
font-size: 14px;
}
.filter-controls input,
.filter-controls select {
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 14px;
transition: border-color 0.2s;
}
.filter-controls input:focus,
.filter-controls select:focus {
outline: none;
border-color: #4a90e2;
box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}
.search-input {
min-width: 250px;
}
.action-controls {
display: flex !important;
gap: 12px;
align-items: center;
justify-content: flex-start;
width: 100%;
flex-wrap: wrap;
visibility: visible !important;
opacity: 1 !important;
}
.add-btn,
.refresh-btn,
.package-btn,
.create-package-btn {
padding: 10px 16px;
border: none;
border-radius: 6px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
font-size: 14px;
display: inline-block !important;
visibility: visible !important;
opacity: 1 !important;
}
.add-btn {
background: #27ae60;
color: white;
}
.add-btn:hover {
background: #229954;
transform: translateY(-1px);
}
.package-btn {
background: #3498db;
color: white;
}
.package-btn:hover {
background: #2980b9;
transform: translateY(-1px);
}
.create-package-btn {
background: linear-gradient(135deg, #27ae60, #2ecc71);
color: white;
}
.create-package-btn:hover {
background: linear-gradient(135deg, #229954, #27ae60);
transform: translateY(-1px);
}
.refresh-btn {
background: #f1f2f6;
color: #2c3e50;
border: 1px solid #ddd;
}
.refresh-btn:hover {
background: #e1e2e6;
}
.refresh-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
/* New Material Form */
.new-material-form {
margin-top: 24px;
padding: 20px;
background: #f8f9fa;
border: 1px solid #e0e0e0;
border-radius: 8px;
}
.new-material-form h4 {
margin: 0 0 16px 0;
color: #2c3e50;
font-size: 18px;
}
.form-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 12px;
margin-bottom: 16px;
}
.form-grid input,
.form-grid select {
padding: 10px 12px;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 14px;
}
.form-grid input:focus,
.form-grid select:focus {
outline: none;
border-color: #4a90e2;
box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}
.form-actions {
display: flex;
gap: 12px;
}
.save-btn {
background: #27ae60;
color: white;
border: none;
padding: 10px 20px;
border-radius: 6px;
cursor: pointer;
font-weight: 500;
transition: all 0.2s;
}
.save-btn:hover:not(:disabled) {
background: #229954;
transform: translateY(-1px);
}
.save-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
}
/* Material Packages Section - placed after header */
.material-packages-section {
background: white;
margin: 0;
padding: 24px;
width: 100%;
border-bottom: 1px solid #e0e0e0;
display: block !important;
visibility: visible !important;
opacity: 1 !important;
}
/* Error Message */
.error-message {
background: #fee;
color: #c62828;
padding: 12px 16px;
border-radius: 6px;
margin: 16px 24px;
border: 1px solid #ffcdd2;
font-weight: 500;
}
/* Summary Stats */
.materials-summary {
background: white;
padding: 20px 24px;
border-bottom: 1px solid #e0e0e0;
}
.summary-stats {
display: flex;
gap: 32px;
flex-wrap: wrap;
}
.stat-item {
display: flex;
flex-direction: column;
gap: 4px;
}
.stat-label {
font-size: 14px;
color: #666;
font-weight: 500;
}
.stat-value {
font-size: 24px;
font-weight: 600;
color: #2c3e50;
}
/* Loading and Empty States */
.loading-state,
.empty-state {
text-align: center;
padding: 60px 24px;
background: white;
color: #666;
}
.loading-state p,
.empty-state p {
font-size: 18px;
margin: 8px 0;
}
/* Materials Table */
.materials-table-container {
background: white;
overflow: auto;
border-radius: 0;
position: relative;
width: 100%;
margin: 0;
padding: 0;
}
/* Tabelstyling med moderne design */
.materials-table {
width: 100%;
border-collapse: collapse;
background: white;
border-radius: 0 0 12px 12px;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0,0,0,0.07);
margin: 0;
table-layout: fixed;
}
.materials-table th {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 18px 16px;
text-align: center;
font-weight: 600;
font-size: 14px;
text-transform: uppercase;
letter-spacing: 0.8px;
border: none;
position: relative;
}
.materials-table th:first-child {
border-radius: 0;
}
.materials-table th:last-child {
border-radius: 0;
}
.materials-table td {
padding: 16px;
border-bottom: 1px solid #f1f3f4;
font-size: 14px;
line-height: 1.5;
vertical-align: middle;
text-align: center;
transition: background-color 0.2s ease;
}
.materials-table tr:hover td {
background-color: rgba(102, 126, 234, 0.04);
}
.materials-table tr:last-child td {
border-bottom: none;
}
/* Specifik cellestyling for forskellige kolonner - FORCE CENTER ALIGNMENT */
.materials-table td:nth-child(1),
.materials-table td.material-name {
/* Materiale navn */
font-weight: 600;
color: #2c3e50;
background-color: rgba(102, 126, 234, 0.03);
border-left: 4px solid #667eea;
max-width: 300px;
word-wrap: break-word;
white-space: pre-wrap;
text-align: center !important;
}
.materials-table td:nth-child(2) {
/* Kategori */
color: #6c757d;
font-size: 13px;
background-color: rgba(134, 142, 150, 0.05);
text-transform: capitalize;
text-align: center !important;
}
.materials-table td:nth-child(3),
.materials-table td.supplier-cell {
/* Leverandør */
color: #495057;
font-weight: 500;
background-color: rgba(73, 80, 87, 0.03);
text-align: center !important;
}
.materials-table td:nth-child(4),
.materials-table td.price-cell {
/* Pris */
font-weight: 700;
color: #28a745;
text-align: center !important;
background-color: rgba(40, 167, 69, 0.05);
font-family: 'Segoe UI', monospace;
}
.materials-table td:nth-child(5),
.materials-table td.unit-cell {
/* Enhed */
color: #6c757d;
font-size: 13px;
text-align: center !important;
background-color: rgba(134, 142, 150, 0.05);
}
.materials-table td:nth-child(6),
.materials-table td.description-cell {
/* Beskrivelse */
color: #495057;
text-align: center !important;
background-color: rgba(248, 249, 250, 0.3);
}
.materials-table td:nth-child(7),
.materials-table td.actions {
/* Handlinger */
text-align: center !important;
background-color: rgba(248, 249, 250, 0.8);
width: 140px;
}
/* Sticky actions column */
.materials-table th:last-child {
position: sticky;
right: 0;
z-index: 11;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
box-shadow: -3px 0 6px rgba(0,0,0,0.1);
}
/* Sticky actions column for data cells */
.materials-table td:last-child {
position: sticky;
right: 0;
background: white;
box-shadow: -3px 0 6px rgba(0,0,0,0.05);
border-left: 1px solid #f1f3f5;
text-align: center !important;
}
.material-row {
transition: all 0.3s ease;
}
.material-row:hover {
background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}
.material-row:hover td:last-child {
background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}
.material-row:nth-child(even) {
background: #fbfcfd;
}
.material-row:nth-child(even):hover {
background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}
.material-row:nth-child(even) td:last-child {
background: #fafbfc;
}
.material-row:nth-child(even):hover {
background: #f0f2f5;
}
.material-row:nth-child(even):hover td:last-child {
background: #f0f2f5;
}
/* Column widths - matcher CSV struktur: Produktnavn, Kategori, Leverandør, Enhedspris, Enhed, Beskrivelse, Handlinger */
.materials-table th:nth-child(1),
.materials-table td:nth-child(1) { width: 25%; } /* Produktnavn - større for multi-linje */
.materials-table th:nth-child(2),
.materials-table td:nth-child(2) { width: 12%; } /* Kategori */
.materials-table th:nth-child(3),
.materials-table td:nth-child(3) { width: 12%; } /* Leverandør */
.materials-table th:nth-child(4),
.materials-table td:nth-child(4) { width: 10%; } /* Enhedspris */
.materials-table th:nth-child(5),
.materials-table td:nth-child(5) { width: 8%; } /* Enhed */
.materials-table th:nth-child(6),
.materials-table td:nth-child(6) { width: 23%; } /* Beskrivelse */
.materials-table th:nth-child(7),
.materials-table td:nth-child(7) { width: 10%; min-width: 120px; } /* Handlinger */
/* Table Cell Styles - alle center aligned */
.material-name {
font-weight: 600;
color: #2c3e50;
word-wrap: break-word;
white-space: normal !important;
max-width: 250px;
line-height: 1.5;
padding: 8px !important;
font-size: 15px;
text-align: center !important;
}
.category-badge {
display: inline-block;
padding: 6px 12px;
background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
color: #1976d2;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
border: 1px solid #90caf9;
text-align: center !important;
}
.supplier-cell {
text-align: center !important;
}
.unit-cell {
text-align: center !important;
}
.description-cell {
text-align: center !important;
}
.supplier-cell {
font-weight: 600;
color: #6c757d;
text-align: center;
background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
border-radius: 8px;
padding: 8px 12px !important;
margin: 4px;
border: 1px solid #ffcc02;
}
.unit-cell {
text-align: center;
font-family: 'Courier New', monospace;
font-weight: 600;
color: #495057;
background: #f8f9fa;
border-radius: 6px;
padding: 6px 8px !important;
}
.price-cell {
text-align: center !important;
font-family: 'Courier New', monospace;
font-weight: 700;
color: #28a745;
font-size: 16px;
background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
border-radius: 8px;
padding: 8px 12px !important;
border: 1px solid #c3e6cb;
}
.description-cell {
word-wrap: break-word;
white-space: normal;
line-height: 1.4;
font-size: 13px;
color: #6c757d;
max-width: 200px;
font-style: italic;
}
/* Actions */
.actions {
display: flex;
gap: 8px;
justify-content: center;
text-align: center !important;
}
.edit-btn,
.delete-btn,
.save-edit-btn,
.cancel-edit-btn {
background: white;
border: 2px solid transparent;
cursor: pointer;
padding: 8px 12px;
border-radius: 8px;
transition: all 0.3s ease;
font-size: 16px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
margin: 2px;
}
.edit-btn {
background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
color: white;
border-color: #29b6f6;
}
.edit-btn:hover {
background: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%);
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(41, 182, 246, 0.3);
}
.delete-btn {
background: linear-gradient(135deg, #ef5350 0%, #f44336 100%);
color: white;
border-color: #f44336;
}
.delete-btn:hover {
background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}
.save-edit-btn {
background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
color: white;
border-color: #4caf50;
}
.cancel-edit-btn {
background: linear-gradient(135deg, #bdbdbd 0%, #9e9e9e 100%);
color: white;
border-color: #9e9e9e;
}
.delete-btn:hover {
background: #ffebee;
transform: scale(1.1);
}
.save-edit-btn:hover {
background: #e8f5e8;
transform: scale(1.1);
}
.cancel-edit-btn:hover {
background: #ffebee;
transform: scale(1.1);
}
/* Edit Form Inputs */
.edit-input,
.edit-select {
width: 100%;
padding: 6px 8px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 13px;
}
.edit-input:focus,
.edit-select:focus {
outline: none;
border-color: #4a90e2;
box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}
/* Responsive Design */
@media (max-width: 1024px) {
.filter-controls {
flex-direction: column;
align-items: stretch;
}
.filter-controls label {
min-width: auto;
}
.summary-stats {
gap: 16px;
}
.materials-table {
font-size: 13px;
}
.materials-table th,
.materials-table td {
padding: 10px 8px;
}
}
@media (max-width: 768px) {
.materials-header {
padding: 16px;
}
.materials-summary {
padding: 16px;
}
.action-controls {
flex-direction: column;
align-items: stretch;
}
.form-grid {
grid-template-columns: 1fr;
}
.materials-table-container {
overflow-x: auto;
}
.materials-table {
min-width: 800px;
}
}
/* Pagination Styles */
.pagination-controls {
display: flex;
align-items: center;
gap: 12px;
margin-top: 16px;
justify-content: center;
flex-wrap: wrap;
}
.page-btn {
padding: 8px 16px;
border: 1px solid #ddd;
background: white;
color: #333;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
font-size: 14px;
min-width: 80px;
}
.page-btn:hover:not(:disabled) {
background: #f0f0f0;
border-color: #bbb;
}
.page-btn:disabled {
background: #f5f5f5;
color: #999;
cursor: not-allowed;
border-color: #eee;
}
.page-info {
padding: 8px 16px;
color: #666;
font-weight: 500;
background: #f8f9fa;
border-radius: 4px;
border: 1px solid #e9ecef;
}
.items-per-page {
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
background: white;
color: #333;
font-size: 14px;
cursor: pointer;
}
.items-per-page:focus {
outline: none;
border-color: #3498db;
box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}
/* Bygma Badge */
.bygma-badge {
display: inline-block;
padding: 4px 8px;
background: #ff6b35;
color: white;
border-radius: 4px;
font-size: 11px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Material row styling based on source */
.material-row.bygma-source {
background: linear-gradient(135deg, #fff7f0 0%, #ffffff 100%);
border-left: 3px solid #ff6b35;
}
.material-row.builtin-source {
background: linear-gradient(135deg, #f0f8f0 0%, #ffffff 100%);
border-left: 3px solid #4caf50;
}
/* Disable edit actions for Bygma products */
.material-row.bygma-source .edit-btn,
.material-row.bygma-source .delete-btn {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
}
/* Filtreringskontroller over tabellen */
.table-filter-controls {
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
padding: 20px;
border: 1px solid #dee2e6;
border-radius: 0;
margin: 0;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
width: 100%;
box-sizing: border-box;
}
.filter-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 24px;
flex-wrap: wrap;
}
.filter-group {
display: flex;
gap: 20px;
align-items: end;
flex: 1;
}
.sort-group {
display: flex;
gap: 16px;
align-items: end;
}
.filter-group label,
.sort-group label {
display: flex;
flex-direction: column;
gap: 6px;
min-width: 140px;
}
.filter-group label span,
.sort-group label span {
font-weight: 600;
color: #495057;
font-size: 14px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.filter-group input,
.filter-group select,
.sort-group select {
padding: 12px 16px;
border: 2px solid #e9ecef;
border-radius: 8px;
font-size: 14px;
background: white;
transition: all 0.3s ease;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.filter-group input:focus,
.filter-group select:focus,
.sort-group select:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
transform: translateY(-1px);
}
.search-input {
min-width: 200px !important;
}
/* Søgecontainer med knap */
.search-container {
display: flex;
gap: 0;
border: 2px solid #e0e0e0;
border-radius: 6px;
overflow: hidden;
transition: border-color 0.2s, box-shadow 0.2s;
}
.search-container:focus-within {
border-color: #007bff;
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.search-container input {
border: none !important;
border-radius: 0 !important;
box-shadow: none !important;
flex: 1;
min-width: 200px;
}
.search-container input:focus {
outline: none;
border: none !important;
box-shadow: none !important;
}
.search-btn {
background: #007bff;
color: white;
border: none;
padding: 8px 12px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.2s;
border-radius: 0;
}
.search-btn:hover {
background: #0056b3;
}
.search-btn:active {
background: #004085;
}
/* Responsive design for filter controls */
@media (max-width: 768px) {
.filter-row {
flex-direction: column;
align-items: stretch;
gap: 16px;
}
.filter-group,
.sort-group {
flex-direction: column;
gap: 12px;
}
.filter-group label,
.sort-group label {
min-width: auto;
}
}
/* ULTIMATE FORCE CENTER ALIGNMENT - OVERRULE EVERYTHING */
.materials-table,
.materials-table *,
.materials-table th,
.materials-table td,
.materials-table tbody,
.materials-table thead,
.materials-table tr {
text-align: center !important;
}
/* Specific overrides for all possible selectors */
table.materials-table th {
text-align: center !important;
}
table.materials-table td {
text-align: center !important;
}
.materials-table th[style*="text-align"] {
text-align: center !important;
}
.materials-table td[style*="text-align"] {
text-align: center !important;
}
/* Juster tabellen så den fylder hele bredden */
.materials-table {
border-radius: 0;
border-top: none;
width: 100% !important;
min-width: 100% !important;
}
/* EMERGENCY CENTER ALIGNMENT - SIMPLEST POSSIBLE */
table th,
table td {
text-align: center !important;
}
/* TEST - SYNLIG ÆNDRING FOR AT TJEKKE CSS INDLÆSNING */
.materials-table {
border: 5px solid red !important;
background: yellow !important;
}
/* ABSOLUT SIDSTE FORSØG - CSS HACK */
.materials-table th, .materials-table td {
text-align: center !important;
-webkit-text-align: center !important;
-moz-text-align: center !important;
-ms-text-align: center !important;
}
/* FORCE ALL ELEMENTS WITH INLINE STYLES */
[style*="text-align"] {
text-align: center !important;
}
/* ULTIMATE CENTER ALIGNMENT - REMOVE ALL CONFLICTING STYLES */
.materials-table td {
text-align: center !important;
vertical-align: middle !important;
padding: 8px !important;
}
.materials-table th {
text-align: center !important;
padding: 12px !important;
}
/* REMOVE ALL STYLING FROM ELEMENTS INSIDE FLEXBOX DIVS */
.materials-table td div span,
.materials-table td div,
.category-badge,
.supplier-cell,
.unit-cell,
.price-cell,
.description-cell,
.bygma-badge {
margin: 0 !important;
padding: 4px 8px !important;
border: none !important;
background: transparent !important;
border-radius: 0 !important;
box-shadow: none !important;
text-align: center !important;
display: inline !important;
width: auto !important;
max-width: none !important;
font-size: inherit !important;
color: inherit !important;
}
/* Only keep basic badge colors but remove positioning */
.category-badge {
background: #e3f2fd !important;
color: #1976d2 !important;
border-radius: 4px !important;
padding: 4px 8px !important;
}
.bygma-badge {
background: #ff6b35 !important;
color: white !important;
border-radius: 4px !important;
padding: 4px 8px !important;
}
/* Bygma Import Button */
.import-btn {
background: #ff6b35;
color: white;
padding: 10px 16px;
border: none;
border-radius: 6px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
font-size: 14px;
}
.import-btn:hover {
background: #e55a27;
transform: translateY(-1px);
}
.import-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
/* Bygma Import Modal */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 10000;
}
.modal-content {
background: white;
border-radius: 12px;
max-width: 600px;
width: 90%;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 24px;
border-bottom: 1px solid #e0e0e0;
}
.modal-header h3 {
margin: 0;
color: #2c3e50;
font-size: 20px;
}
.close-btn {
background: none;
border: none;
font-size: 28px;
cursor: pointer;
color: #666;
padding: 0;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.2s;
}
.close-btn:hover {
background: #f0f0f0;
color: #333;
}
.modal-body {
padding: 24px;
}
.modal-body p {
margin: 0 0 16px 0;
color: #666;
}
.file-upload-section {
margin-bottom: 20px;
}
#bygma-csv-input {
display: none;
}
.file-label {
display: inline-block;
padding: 12px 20px;
background: #f8f9fa;
border: 2px dashed #ddd;
border-radius: 8px;
cursor: pointer;
color: #666;
transition: all 0.2s;
width: 100%;
text-align: center;
}
.file-label:hover {
border-color: #ff6b35;
background: #fff5f2;
color: #ff6b35;
}
.upload-btn {
width: 100%;
padding: 12px 20px;
background: #ff6b35;
color: white;
border: none;
border-radius: 8px;
font-weight: 500;
cursor: pointer;
font-size: 16px;
transition: all 0.2s;
}
.upload-btn:hover:not(:disabled) {
background: #e55a27;
transform: translateY(-1px);
}
.upload-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.import-status,
.import-success,
.import-error {
text-align: center;
padding: 20px;
}
.loading-spinner {
width: 50px;
height: 50px;
border: 4px solid #f3f3f3;
border-top: 4px solid #ff6b35;
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 20px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.status-note {
color: #999;
font-size: 13px;
margin-top: 8px;
}
.success-icon,
.error-icon {
font-size: 60px;
margin-bottom: 16px;
}
.import-success h4,
.import-error h4 {
margin: 0 0 20px 0;
color: #2c3e50;
}
.import-stats {
background: #f8f9fa;
border-radius: 8px;
padding: 16px;
margin: 20px 0;
}
.import-stats p {
margin: 8px 0;
font-size: 15px;
color: #2c3e50;
text-align: left;
}
.import-stats p.warning {
color: #e67e22;
}
.closing-note {
color: #999;
font-size: 13px;
margin-top: 16px;
font-style: italic;
}
.retry-btn {
padding: 10px 20px;
background: #f8f9fa;
color: #2c3e50;
border: 1px solid #ddd;
border-radius: 6px;
cursor: pointer;
font-weight: 500;
margin-top: 16px;
transition: all 0.2s;
}
.retry-btn:hover {
background: #e1e2e6;
}
/* Manual Scraper Styles */
.manual-scraper-btn {
padding: 10px 20px;
background: #9b59b6;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: 500;
transition: all 0.2s;
white-space: nowrap;
}
.manual-scraper-btn:hover:not(:disabled) {
background: #8e44ad;
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(155, 89, 182, 0.3);
}
.manual-scraper-btn:disabled {
background: #bdc3c7;
cursor: not-allowed;
}
.manual-scraper-modal .modal-content {
max-width: 700px;
width: 90%;
}
.manual-scraper-input {
margin-bottom: 20px;
}
.manual-scraper-input label {
display: block;
font-weight: 500;
margin-bottom: 8px;
color: #2c3e50;
}
.manual-scraper-input .input-group {
display: flex;
gap: 10px;
}
.manual-scraper-input input {
flex: 1;
padding: 10px 15px;
border: 2px solid #ddd;
border-radius: 6px;
font-size: 16px;
font-family: 'Courier New', monospace;
transition: border-color 0.2s;
}
.manual-scraper-input input:focus {
outline: none;
border-color: #9b59b6;
box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}
.manual-scraper-input input:disabled {
background: #f5f5f5;
cursor: not-allowed;
}
.scrape-btn {
padding: 10px 20px;
background: #9b59b6;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: 500;
white-space: nowrap;
transition: all 0.2s;
}
.scrape-btn:hover:not(:disabled) {
background: #8e44ad;
}
.scrape-btn:disabled {
background: #bdc3c7;
cursor: not-allowed;
}
.scraper-console {
background: #1e1e1e;
border-radius: 8px;
padding: 0;
margin: 20px 0;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
max-height: 400px;
overflow: hidden;
display: flex;
flex-direction: column;
}
.console-header {
background: #2d2d2d;
padding: 10px 15px;
color: #9b59b6;
font-weight: 600;
font-size: 14px;
border-bottom: 1px solid #3d3d3d;
}
.console-content {
padding: 15px;
overflow-y: auto;
max-height: 350px;
font-family: 'Courier New', monospace;
font-size: 13px;
line-height: 1.6;
}
.console-line {
color: #d4d4d4;
margin: 2px 0;
white-space: pre-wrap;
word-break: break-all;
}
.console-line:empty {
height: 8px;
}
.scraper-actions {
display: flex;
justify-content: center;
margin-top: 20px;
}
.reset-btn {
padding: 10px 24px;
background: #f8f9fa;
color: #2c3e50;
border: 2px solid #9b59b6;
border-radius: 6px;
cursor: pointer;
font-weight: 500;
transition: all 0.2s;
}
.reset-btn:hover {
background: #9b59b6;
color: white;
}