body {
    margin: 0;
    padding: 0;
    font-family: "微软雅黑", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #2d2d2d;
}

.app-container {
    display: flex;
    flex-direction: row;
    height: 100vh;
    box-sizing: border-box;
    padding: 10px;
    gap: 10px;
}

.left-panel, .center-panel, .right-panel {
    background-color: #383838;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    padding: 10px 14px;
    box-sizing: border-box;
    color: #e5e7eb;
}

.left-panel {
    width: 28%;
    min-width: 360px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.center-panel {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.right-panel {
    width: 26%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.panel-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.panel-header-row .panel-title {
    margin: 0;
}

.btn-logout {
    padding: 6px 12px;
    font-size: 12px;
    background-color: #4b5563;
    border: 1px solid #6b7280;
    color: #f3f4f6;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-logout:hover {
    background-color: #6b7280;
    color: #fff;
}

.panel-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: bold;
    color: #f3f4f6;
    flex-shrink: 0;
}

.block {
    margin-bottom: 10px;
}

.block-label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    color: #e5e7eb;
}

.threshold-form {
    flex-shrink: 0;
    padding: 8px 10px;
    background-color: #2d2d2d;
    border: 1px solid #555;
    border-radius: 4px;
    margin-bottom: 10px;
}

.threshold-form .hint-text {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.45;
}

.threshold-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.threshold-input {
    width: 100px;
    box-sizing: border-box;
    background-color: #1f2937;
    border: 1px solid #555;
    color: #e5e7eb;
    padding: 4px 8px;
    border-radius: 4px;
}

.threshold-form button {
    padding: 4px 12px;
    font-size: 13px;
    cursor: pointer;
    background-color: #4b5563;
    border: 1px solid #6b7280;
    color: #f3f4f6;
    border-radius: 4px;
}

.threshold-form button:hover {
    background-color: #6b7280;
}

.bulk-text {
    width: 100%;
    box-sizing: border-box;
    background-color: #2d2d2d;
    border: 1px solid #555;
    color: #e5e7eb;
    padding: 6px;
    border-radius: 4px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 4px 8px;
    align-items: center;
}

.grid-2 label {
    color: #d1d5db;
}
.grid-2 input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    background-color: #2d2d2d;
    border: 1px solid #555;
    color: #e5e7eb;
    padding: 4px 6px;
    border-radius: 4px;
}

.user-list {
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #2d2d2d;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px;
}

.user-item {
    padding: 4px 2px;
    border-bottom: 1px dashed #555;
}

.user-item:last-child {
    border-bottom: none;
}

.user-line1 {
    color: #60a5fa;
    font-weight: bold;
}

.user-line2, .user-line3 {
    font-size: 12px;
    color: #9ca3af;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.small-row {
    margin-top: 4px;
}

.button-row button,
.add-user-form button {
    padding: 4px 10px;
    font-size: 13px;
    cursor: pointer;
    background-color: #4b5563;
    border: 1px solid #6b7280;
    color: #f3f4f6;
    border-radius: 4px;
}
.button-row button:hover,
.add-user-form button:hover {
    background-color: #6b7280;
}

.log-area {
    flex: 1;
    min-height: 0;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #0b1120;
    color: #e5e7eb;
    padding: 6px;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 12px;
    overflow-y: auto;
    overflow-x: auto;
}

.log-line {
    white-space: pre-wrap;
}

.log-line.flash-info {
    color: #22c55e;
    font-weight: bold;
}

.ticket-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.ticket-preview img {
    max-width: 100%;
    max-height: 90%;
    border-radius: 6px;
    border: 1px solid #555;
}

.ticket-preview img.ticket-image-save {
    cursor: pointer;
}
.ticket-preview img.ticket-image-save:hover {
    opacity: 0.9;
    outline: 2px solid rgba(6, 182, 212, 0.5);
}

.ticket-save-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
    text-align: center;
}

.ticket-placeholder {
    color: #9ca3af;
    font-size: 14px;
}

hr {
    border: none;
    border-top: 1px solid #555;
    margin: 10px 0;
}

.user-actions {
    margin-top: 6px;
}

.btn-link {
    background: none;
    border: none;
    color: #60a5fa;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    text-decoration: underline;
}

.btn-link:hover {
    color: #93c5fd;
}

.add-user-form-wrap {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 6px;
    background-color: #2d2d2d;
}

.add-user-form {
    margin-top: 0;
}

.flash-area {
    margin-top: 8px;
}

.flash {
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #7f1d1d;
    color: #fecaca;
    font-size: 12px;
}

