* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.user-status {
    display: flex;
    align-items: center;
}

.user-status span, .user-status a {
    margin-left: 15px;
    font-size: 0.9em;
    color: #333;
    text-decoration: none;
}

.user-status a:hover {
    text-decoration: underline;
    color: #0056b3;
}


.header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.system-info {
    font-size: 14px;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* Left Panel */
.left-panel {
    width: 20%;
    min-width: 300px;
    background: white;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
}

.file-controls {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.file-list-container {
    flex: 1;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    overflow-y: auto;
}

.file-list-container h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.file-list {
    list-style: none;
}

.file-list li {
    padding: 10px;
    margin-bottom: 5px;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.file-list li:hover {
    background: #e9ecef;
    border-left-color: #667eea;
}

.file-list li.selected {
    background: #e3f2fd;
    border-left-color: #2196f3;
    color: #1976d2;
}

.analysis-controls,
.gate-controls {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.analysis-controls h3,
.gate-controls h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.gate-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
}

.gate-name {
    font-weight: 500;
    color: #495057;
}

/* Splitter */
.splitter {
    width: 5px;
    background: #e0e0e0;
    cursor: col-resize;
    position: relative;
    transition: background-color 0.2s;
}

.splitter:hover {
    background: #667eea;
}

.splitter::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 30px;
    background: white;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.2s;
}

.splitter:hover::after {
    opacity: 1;
}

/* Right Panel */
.right-panel {
    flex: 1;
    background: white;
    overflow: hidden;
}

.analysis-area {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

/* Scatter Plots Grid */
.scatter-plots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.plot-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.plot-container h4 {
    background: #f8f9fa;
    padding: 12px 16px;
    margin: 0;
    font-size: 14px;
    color: #495057;
    border-bottom: 1px solid #e0e0e0;
}

.scatter-plot {
    height: 300px;
    position: relative;
}

/* Histogram */
.histogram-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.histogram-container h4 {
    background: #f8f9fa;
    padding: 12px 16px;
    margin: 0;
    font-size: 14px;
    color: #495057;
    border-bottom: 1px solid #e0e0e0;
}

.histogram-plot {
    height: 400px;
    position: relative;
}

.cycle-fitting {
    padding: 16px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.cycle-fitting h5 {
    margin-bottom: 10px;
    font-size: 14px;
    color: #495057;
}

/* Results */
.results-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.results-container h4 {
    background: #f8f9fa;
    padding: 12px 16px;
    margin: 0;
    font-size: 14px;
    color: #495057;
    border-bottom: 1px solid #e0e0e0;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-outline-primary {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
}

.btn-outline-primary:hover:not(:disabled) {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-outline-secondary {
    background: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
}

.btn-outline-secondary:hover:not(:disabled) {
    background: #6c757d;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn-outline-danger {
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.btn-outline-danger:hover:not(:disabled) {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    background: #6c757d;
    color: white;
}

.btn-small:hover {
    background: #5a6268;
}

/* Status Bar */
.status-bar {
    background: #343a40;
    color: white;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: #495057;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #28a745;
    width: 0%;
    transition: width 0.3s;
}

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

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-content.large {
    max-width: 700px;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #333;
}

.channel-selectors {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.selector-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.selector-group label {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.selector-group select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.fit-parameters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.param-group {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
}

.param-group h4 {
    margin-bottom: 10px;
    color: #495057;
    font-size: 14px;
}

.param-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #6c757d;
}

.param-group input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 13px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.text-muted {
    color: #6c757d !important;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Tables */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.results-table th,
.results-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.results-table th {
    background: #f8f9fa;
    font-weight: 500;
    color: #495057;
    font-size: 13px;
}

.results-table td {
    font-size: 13px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .scatter-plots {
        grid-template-columns: 1fr;
    }
    
    .fit-parameters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .left-panel {
        width: 100%;
        min-width: auto;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .splitter {
        display: none;
    }
    
    .modal-content {
        width: 95%;
        padding: 16px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* File Items */
.file-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.file-item:hover {
    background: #e9ecef;
    border-left-color: #667eea;
    transform: translateX(2px);
}

.file-item.selected {
    background: #e3f2fd;
    border-left-color: #2196f3;
    color: #1976d2;
}

.file-icon {
    font-size: 20px;
    margin-right: 12px;
    opacity: 0.7;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.file-size {
    font-size: 12px;
    color: #6c757d;
}

.no-files {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

/* Improved Phase Display Styles */
.fit-results {
    padding: 16px;
}

.fit-method-info {
    background: #e7f3ff;
    border: 1px solid #b3d7ff;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
}

.fit-method-info .text-info {
    margin: 0;
    font-size: 14px;
    color: #0056b3;
}

.phase-group {
    margin-bottom: 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
}

.phase-group h6 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
}

.phase-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phase-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.phase-row:hover {
    background: #e9ecef;
}

.phase-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #495057;
}

.phase-percentage {
    font-weight: 600;
    font-size: 14px;
    color: #212529;
}

.diploid-group {
    border-left: 4px solid #28a745;
}

.aneuploid-group {
    border-left: 4px solid #e83e8c;
}

.other-group {
    border-left: 4px solid #6c757d;
}

.dna-ratio {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.dna-ratio.normal {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dna-ratio.abnormal {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ploidy-analysis {
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.ploidy-analysis h6 {
    color: #495057;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ploidy-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ploidy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #007bff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ploidy-item.diploid {
    border-left-color: #28a745;
}

.ploidy-item.aneuploid {
    border-left-color: #e83e8c;
}

.ploidy-item.other {
    border-left-color: #6c757d;
}

.ploidy-label {
    font-weight: 500;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ploidy-value {
    font-weight: 600;
    color: #007bff;
    font-size: 14px;
}

.dna-index-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 6px;
    border-left: 4px solid #ffc107;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dna-index-label {
    font-weight: 500;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dna-index-value {
    font-weight: 600;
    color: #856404;
    font-size: 14px;
}

.ploidy-classification {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-radius: 6px;
    border-left: 4px solid #17a2b8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.classification-label {
    font-weight: 500;
    color: #0c5460;
}

.classification-value {
    font-weight: 600;
    color: #0c5460;
    font-size: 14px;
}

.dna-index-warning {
    padding: 10px 12px;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-radius: 6px;
    border-left: 4px solid #dc3545;
    color: #721c24;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dna-index-warning i {
    color: #dc3545;
    margin-right: 5px;
}

.ploidy-qc-notes {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.qc-notes-list {
    margin: 5px 0 0 0;
    padding-left: 15px;
    list-style-type: disc;
}

.qc-notes-list li {
    margin-bottom: 2px;
    color: #6c757d;
}

.fit-quality {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
}

.fit-quality.excellent {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.fit-quality.good {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.fit-quality.poor {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.fit-warning {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 12px;
    margin-top: 12px;
}

.fit-warning i {
    margin-right: 8px;
}

/* Drag and Drop */
.file-list.drag-over {
    background-color: #e3f2fd;
    border: 2px dashed #2196f3;
}

/* Gate Color Scheme */
.gate-a {
    color: #FFB6C1 !important;
}

.gate-b {
    color: #228B22 !important;
}

.gate-c {
    color: #87CEEB !important;
}

.gate-d {
    color: #FFA500 !important;
}

/* Event Count Display */
.event-count {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Gate vertex styles */
.gate-vertex {
    cursor: grab;
}

.gate-vertex:active {
    cursor: grabbing;
}

/* No data placeholder */
.no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-style: italic;
}

/* New styles for file deletion and interactive fitting */
.fitting-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.file-item-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.file-delete-btn {
    padding: 2px 6px;
    font-size: 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    margin-left: 8px;
}

.file-item:hover .file-delete-btn {
    opacity: 1;
}

.file-delete-btn:hover {
    background: #c82333;
}

/* Interactive Fitting Modal Styles */
.modal-content.extra-large {
    max-width: 1000px;
    width: 95%;
}

.interactive-fitting-area {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.fitting-plot-container {
    flex: 2;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #f8f9fa;
}

.fitting-instructions {
    flex: 1;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 4px;
}

.fitting-instructions h4 {
    margin-bottom: 10px;
    color: #495057;
    font-size: 14px;
}

.fitting-instructions ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.fitting-instructions li {
    margin-bottom: 5px;
    font-size: 13px;
    color: #6c757d;
}

.peak-list h5 {
    margin-bottom: 8px;
    font-size: 13px;
    color: #495057;
}

.selected-peak {
    padding: 5px 10px;
    margin-bottom: 5px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.peak-remove-btn {
    color: #dc3545;
    cursor: pointer;
    font-weight: bold;
}

.peak-remove-btn:hover {
    color: #c82333;
}

/* Peak Type Selection Modal */
.peak-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.peak-type-group {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px;
}

.peak-type-group h4 {
    margin-bottom: 8px;
    font-size: 14px;
    color: #495057;
}

.peak-type-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    cursor: pointer;
}

.peak-type-group input[type="radio"] {
    margin-right: 6px;
}

.peak-type-group input[type="text"] {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 12px;
    margin-top: 5px;
}

#interactiveFitCanvas {
    display: block;
    cursor: crosshair;
    background: white;
}

/* 保存的自定义名称样式 */
.saved-custom-names {
    margin-top: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.saved-custom-names h5 {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #495057;
}

.custom-names-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.custom-name-item {
    display: flex;
    align-items: center;
    padding: 2px 6px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-name-item:hover {
    background: #e9ecef;
}

.custom-name-item.selected {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.custom-name-delete {
    margin-left: 4px;
    color: #dc3545;
    cursor: pointer;
    font-weight: bold;
    font-size: 10px;
}

.custom-name-delete:hover {
    color: #c82333;
}

.custom-name-item.selected .custom-name-delete {
    color: rgba(255, 255, 255, 0.8);
}

.custom-name-item.selected .custom-name-delete:hover {
    color: white;
}

/* 通道映射管理样式 */
.toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar .btn {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* 通道配置显示区域样式 */
.channel-config-area {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.channel-config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.channel-config-header h4 {
    margin: 0;
    font-size: 14px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-file-name {
    font-weight: normal;
    color: #6c757d;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

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

.channel-config-display {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    background: #fafafa;
}

.channel-config-item {
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.channel-config-label {
    font-weight: 500;
    color: #495057;
    font-size: 13px;
}

.channel-config-value {
    color: #333;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #e9ecef;
}

.channel-config-empty {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.mapping-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin: 16px 0;
}

.mapping-item {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

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

.mapping-item:hover {
    background: #f5f5f5;
}

.mapping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mapping-id {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #666;
    background: #e8e8e8;
    padding: 2px 6px;
    border-radius: 3px;
}

.mapping-stats {
    font-size: 12px;
    color: #999;
}

.mapping-details {
    margin: 8px 0;
}

.mapping-channels {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.mapping-config {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    font-size: 13px;
}

.mapping-config-item {
    background: white;
    padding: 6px 8px;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
}

.mapping-config-label {
    font-weight: 500;
    color: #555;
}

.mapping-config-value {
    color: #333;
    font-family: 'Courier New', monospace;
}

.mapping-actions {
    margin-top: 12px;
}

.mapping-delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.mapping-delete-btn:hover {
    background: #c82333;
}

.no-mappings {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 20px;
}