:root {
  --primary-color: #2c3e50; --secondary-color: #e67e22; --accent-color: #d35400;
  --light-color: #f4f6f9; --dark-color: #34495e; --success-color: #27ae60;
  --warning-color: #f39c12; --danger-color: #c0392b; --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); --transition: all 0.2s ease-in-out;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; background-color: var(--light-color); color: var(--dark-color); }
.app-container { display: flex; min-height: 100vh; }
.toggle-sidebar-btn { position: fixed; top: 16px; left: 16px; background-color: var(--secondary-color); border: none; border-radius: 50%; width: 36px; height: 36px; color: white; cursor: pointer; z-index: 1100; display: flex; align-items: center; justify-content: center; }
.sidebar { width: 240px; background-color: var(--primary-color); color: white; padding: 1.5rem 1rem; position: fixed; height: 100vh; transition: var(--transition); z-index: 1050; }
.sidebar.collapsed { width: 0; padding: 0; overflow: hidden; }
.sidebar-header { display: flex; align-items: center; margin-top: 60px; margin-bottom: 2rem; padding-left: 10px; }
.sidebar-logo-icon { font-size: 2rem; color: var(--secondary-color); margin-right: 0.75rem; }
.sidebar-logo-text, .nav-label { white-space: nowrap; }
.nav-menu { list-style: none; padding: 0; margin-top: 1rem; }
.nav-item { margin-bottom: 0.5rem; }
.nav-link { color: var(--light-color); text-decoration: none; padding: 0.8rem 1rem; border-radius: var(--border-radius); display: flex; align-items: center; gap: 15px; }
.nav-step { flex-shrink: 0; width: 24px; height: 24px; background-color: rgba(255, 255, 255, 0.2); border-radius: 50%; text-align: center; line-height: 24px; }
.nav-link.active { background-color: var(--secondary-color); font-weight: bold; }
.nav-link.completed .nav-step { background-color: var(--success-color); }
.main-content { flex: 1; margin-left: 240px; padding: 2rem 3rem; transition: var(--transition); }
.sidebar.collapsed ~ .main-content { margin-left: 0; }
.header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid #dfe4ea; }
.card { background-color: white; border-radius: var(--border-radius); box-shadow: var(--box-shadow); margin-bottom: 2rem; }
.card-header, .card-body { padding: 1.5rem; }
.card-header { border-bottom: 1px solid #eee; }
.step-content { display: none; }
.step-content.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.upload-section { border: 2px dashed #dcdcdc; padding: 2rem; text-align: center; border-radius: var(--border-radius); transition: var(--transition); }
.upload-section.drag-over { border-color: var(--secondary-color); background-color: #fdf2e9; }
.file-input { display: none; }
.file-label { display: inline-block; padding: 0.7rem 1.5rem; background-color: var(--secondary-color); color: white; border-radius: var(--border-radius); cursor: pointer; }
.step1-section { margin-bottom: 2.5rem; }
.step1-title { display: flex; align-items: center; margin-bottom: 1rem; font-family: 'Montserrat', sans-serif; color: var(--primary-color); }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background-color: var(--primary-color); color: white; font-size: 1rem; margin-right: 0.8rem; }
.file-list ul { list-style: none; padding: 0; margin-top: 1rem; }
.file-list-item { background-color: #f8f9fa; padding: 0.8rem 1rem; border-radius: 4px; margin-bottom: 0.5rem; font-size: 0.9rem; border-left: 3px solid var(--success-color); }
.method-selection-redesigned { display: flex; flex-direction: column; gap: 0.8rem; }
.method-option-radio input[type="radio"] { display: none; }
.method-option-radio .method-option-content { display: flex; align-items: center; padding: 1rem; border: 2px solid #eee; border-radius: var(--border-radius); cursor: pointer; transition: var(--transition); }
.method-option-radio .method-option-content:hover { border-color: var(--secondary-color); background-color: #fdf8f2; }
.method-option-radio input[type="radio"]:checked + .method-option-content { border-color: var(--secondary-color); background-color: #fdf2e9; box-shadow: 0 0 10px rgba(230, 126, 34, 0.2); }
.method-option-content i { font-size: 1.5rem; color: var(--secondary-color); margin-right: 1rem; width: 30px; text-align: center; }
.method-option-text { display: flex; flex-direction: column; }
.method-option-text strong { color: var(--dark-color); }
.method-option-text span { font-size: 0.9rem; color: #7f8c8d; }
.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem 1.5rem; border: none; border-radius: var(--border-radius); font-family: 'Montserrat', sans-serif; cursor: pointer; text-transform: uppercase; font-size: 0.9rem; }
.btn i { margin-right: 0.5rem; }
.btn-primary { background-color: var(--secondary-color); color: white; }
.btn-success { background-color: var(--success-color); color: white; }
.btn-accent { background-color: var(--accent-color); color: white; }
.nav-controls { display: flex; justify-content: space-between; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #eee; }
.btn-prev { background-color: #95a5a6; color: white; }
input, textarea { width: 100%; padding: 0.7rem; border: 1px solid #ddd; border-radius: var(--border-radius); font-size: 1rem; }
textarea { resize: vertical; min-height: 120px; }
.projects-container { display: flex; flex-direction: column; gap: 1.5rem; }
.project-card { background-color: #fff; border: 1px solid #e0e0e0; border-radius: var(--border-radius); box-shadow: var(--box-shadow); overflow: hidden; }
.project-header { background-color: var(--primary-color); color: white; padding: 1rem 1.5rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.project-body { padding: 1.5rem; }
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.9em; }
.data-table th, .data-table td { padding: 0.8rem; border-bottom: 1px solid #eee; text-align: left; vertical-align: middle; }
.data-table th { background-color: #f8f9fa; }
.highlight-red { color: var(--danger-color); font-weight: bold; }
.bag-consolidation { border: 1px solid #eee; border-radius: var(--border-radius); margin-bottom: 1rem; }
.bag-consolidation-header { background-color: #f8f9fa; padding: 0.75rem; border-bottom: 1px solid #eee; font-weight: bold; }
.bag-list-container { padding: 1rem; background-color: #fdf2e9; min-height: 60px; border-radius: 0 0 var(--border-radius) var(--border-radius); }
.bag-item { display: inline-flex; align-items: center; gap: 8px; margin: 0.5rem; padding: 0.5rem 1rem; background-color: white; border: 1px solid #ddd; border-radius: var(--border-radius); cursor: grab; }
.bag-op-icon { cursor: pointer; color: #7f8c8d; }
.hidden { display: none; }
.loading-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.8); z-index: 9999; flex-direction: column; justify-content: center; align-items: center; }
.loading-spinner { border: 4px solid #f3f3f3; border-top: 4px solid var(--secondary-color); border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.modal { display: none; position: fixed; z-index: 1051; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); justify-content: center; align-items: center; }
.modal-content { background-color: #fefefe; padding: 0; border: 1px solid #888; width: 90%; max-width: 500px; border-radius: var(--border-radius); overflow: hidden; }
.modal-content.large { max-width: 800px; }
.modal-header { padding: 1rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ddd; background-color: #f8f9fa;}
.modal-body { padding: 1.5rem; max-height: 60vh; overflow-y: auto; }
.modal-footer { padding: 1rem; text-align: right; border-top: 1px solid #ddd; background-color: #f8f9fa; }
.close-modal { color: #aaa; font-size: 28px; cursor: pointer; border: none; background: none; }
.global-download-controls { text-align: center; margin-bottom: 2rem; }
.assign-section { margin-bottom: 2rem; padding: 1.5rem; border: 1px solid #ddd; border-radius: var(--border-radius); background: #fafafa; }
.move-option-list { display: flex; flex-direction: column; gap: 0.5rem; }
.move-option-item { padding: 1rem; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; transition: var(--transition); display: flex; justify-content: space-between; align-items: center; }
.move-option-item:hover { border-color: var(--secondary-color); }
.move-option-info { display: flex; flex-direction: column; }
.move-option-validation { font-weight: bold; }
.move-option-item.fits { background-color: #e8f5e9; }
.move-option-item.no-fit { background-color: #fbe9e7; opacity: 0.7; cursor: not-allowed; }
.download-summary { list-style: none; padding: 0; margin: 0; }
.summary-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border-bottom: 1px solid #eee; }
.summary-item:last-child { border-bottom: none; }
.summary-label { font-weight: bold; color: var(--primary-color); }
.summary-value { font-size: 1.1rem; }
.download-actions { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #eee; }
.download-item { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem; background-color: #f8f9fa; border-radius: 4px; }
.text-muted { color: #7f8c8d; }
.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }