.txm-container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Sidebar */
.txm-sidebar {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.txm-section {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.txm-section h3 {
    font-size: 0.95em;
    color: #2c3e50;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.txm-section h3 i {
    color: #3498db;
}

.txm-upload {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 24px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.txm-upload:hover,
.txm-upload.dragover {
    border-color: #3498db;
    background: #f0f7ff;
}

.txm-upload i {
    font-size: 1.8em;
    color: #3498db;
    margin-bottom: 8px;
}

.txm-upload p {
    color: #666;
    font-size: 0.85em;
    margin: 0 0 4px;
}

.txm-hint {
    color: #999;
    font-size: 0.75em;
}

.txm-form-row {
    margin-bottom: 12px;
}

.txm-form-row label {
    display: block;
    font-size: 0.85em;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}

.txm-sep-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.txm-sep-btn {
    flex: 1;
    min-width: 60px;
    padding: 7px 4px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-size: 0.78em;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.txm-sep-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

.txm-sep-btn.active {
    border-color: #3498db;
    background: #eef2ff;
    color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.15);
}

.txm-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85em;
    color: #2c3e50;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.txm-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.txm-actions-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.txm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.txm-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.txm-btn-primary {
    background: #3498db;
    color: #fff;
}

.txm-btn-primary:hover:not(:disabled) {
    background: #2980b9;
}

.txm-btn-success {
    background: #27ae60;
    color: #fff;
}

.txm-btn-success:hover:not(:disabled) {
    background: #219a52;
}

.txm-btn-outline {
    background: #fff;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.txm-btn-outline:hover:not(:disabled) {
    background: #fef2f2;
}

.txm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.txm-usage-info {
    background: #e8f4fd;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.8em;
    color: #2c3e50;
    text-align: center;
}

.txm-usage-info i {
    color: #3498db;
    margin-right: 4px;
}

/* Main area */
.txm-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    min-width: 0;
}

.txm-main.has-vip-mask {
    min-height: 500px;
}

.txm-file-panel,
.txm-preview-panel {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.txm-file-panel h4,
.txm-preview-panel h4 {
    font-size: 0.95em;
    color: #2c3e50;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.txm-file-panel h4 i {
    color: #3498db;
}

.txm-preview-panel h4 i {
    color: #27ae60;
}

.txm-file-count {
    font-size: 0.85em;
    color: #999;
    font-weight: normal;
    margin-left: 4px;
}

.txm-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
}

.txm-placeholder {
    text-align: center;
    color: #999;
    padding: 30px 20px;
}

.txm-placeholder i {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #bdc3c7;
}

.txm-placeholder p {
    margin: 0;
    font-size: 0.85em;
}

/* File item */
.txm-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: grab;
    transition: all 0.2s;
    user-select: none;
}

.txm-file-item:hover {
    border-color: #3498db;
    background: #f0f7ff;
}

.txm-file-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52,152,219,0.2);
}

.txm-file-item.drag-over {
    border-color: #27ae60;
    border-style: dashed;
}

.txm-file-index {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #3498db;
    color: #fff;
    font-size: 0.75em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.txm-file-icon {
    font-size: 1.2em;
    color: #7f8c8d;
    flex-shrink: 0;
}

.txm-file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.txm-file-name {
    font-size: 0.85em;
    color: #2c3e50;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.txm-file-size {
    font-size: 0.75em;
    color: #999;
}

.txm-file-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.txm-file-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.75em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.txm-file-btn:hover:not(:disabled) {
    background: #3498db;
    color: #fff;
}

.txm-file-btn.delete:hover:not(:disabled) {
    background: #e74c3c;
    color: #fff;
}

.txm-file-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Preview */
.txm-preview-wrap {
    width: 100%;
}

.txm-preview-text {
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.85em;
    line-height: 1.6;
    color: #2c3e50;
    background: #fafafa;
    resize: vertical;
    box-sizing: border-box;
    font-family: monospace;
}

.txm-preview-text:empty::placeholder {
    color: #aaa;
}

/* Tips */
.txm-tips {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.txm-tips h4 {
    font-size: 0.95em;
    color: #2c3e50;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.txm-tips h4 i {
    color: #f39c12;
}

.txm-tip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.txm-tip-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid #3498db;
}

.txm-tip-item strong {
    display: block;
    font-size: 0.88em;
    color: #2c3e50;
    margin-bottom: 4px;
}

.txm-tip-item p {
    font-size: 0.78em;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* VIP mask */
.txm-vip-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: rgba(0,0,0,0.75);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    backdrop-filter: blur(2px);
}

.txm-vip-mask-inner {
    text-align: center;
    color: #fff;
    padding: 30px;
}

.txm-vip-mask-icon {
    font-size: 3em;
    margin-bottom: 12px;
}

.txm-vip-mask-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 8px;
}

.txm-vip-mask-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.txm-vip-btn {
    background: #3498db;
    color: #fff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.txm-vip-btn:hover {
    background: #2980b9;
}

/* Responsive */
@media (max-width: 900px) {
    .txm-container {
        flex-direction: column;
    }
    .txm-sidebar {
        flex: 1 1 100%;
        width: 100%;
    }
    .txm-tip-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .txm-container {
        padding: 12px;
    }
    .txm-section,
    .txm-file-panel,
    .txm-preview-panel,
    .txm-tips {
        padding: 12px;
    }
    .txm-file-item {
        padding: 8px;
    }
    .txm-file-btn {
        width: 26px;
        height: 26px;
    }
}
