* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    word-wrap: break-word;
}
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.app-header {
    background: linear-gradient(135deg, #d67eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.app-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}
.app-main {
    flex: 1;
    display: grid;
    grid-template-columns: 300px 1fr 60px;
    grid-template-rows: 1fr;
    gap: 1rem;
    padding: 1rem;
    max-height: calc(100vh - 80px);
    transition: grid-template-columns 0.3s ease;
}
.app-main:has(.control-panel.minimized) {
    grid-template-columns: 60px 1fr 60px;
}
.app-main:has(.log-panel:not(.minimized)) {
    grid-template-columns: 300px 1fr 350px;
}
.app-main:has(.control-panel.minimized):has(.log-panel:not(.minimized)) {
    grid-template-columns: 60px 1fr 350px;
}
.language-toggle {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}
.language-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}
.language-toggle:active {
    transform: translateY(0);
}
.panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.panel h2 {
    background: #f8f9fa;
    padding: 1rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
}
.panel-content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}
.control-panel {
    transition: all 0.3s ease;
    position: relative;
    z-index: 9;
}
.control-panel .panel-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.control-panel.minimized {
    width: 30px !important;
    min-width: 30px;
    overflow: hidden;
}
.control-panel.minimized .panel-content {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-100%);
}
.control-panel.minimized h2 {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 0.5rem 0.25rem;
    font-size: 0.8rem;
    white-space: nowrap;
}
.control-panel.minimized:hover {
    width: 300px !important;
}
.control-panel.minimized:hover .panel-content {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
.control-panel.minimized:hover h2 {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    padding: 1rem;
    font-size: 1.1rem;
}
.main-panel {
    min-width: 400px;
    flex-grow: 1; 
}
.log-panel {
    min-width: 320px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.log-panel .panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.log-panel.minimized {
    min-width: 60px;
    width: 60px;
    cursor: pointer;
}
.log-panel.minimized .panel-content {
    display: none;
}
.log-panel.minimized .log-controls {
    display: none;
}
.log-panel.minimized h2 {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 1rem 0.5rem;
    text-align: center;
    font-size: 0.9rem;
}
.log-panel.minimized:hover {
    min-width: 320px;
    width: 320px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.log-panel.minimized:hover .panel-content {
    display: flex;
}
.log-panel.minimized:hover h2 {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    padding: 1rem;
    text-align: left;
    font-size: 1.1rem;
}
@media (max-width: 768px) {.tab-header {
        flex-wrap: wrap;
    }
.tab-button {
        font-size: 0.85rem;
        padding: 0.6rem 0.75rem;
    }
.tab-section-upper,
    .tab-section-lower {
        padding: 0.75rem;
    }
.tab-section-upper {
        flex: 1;
    }
.tab-section-lower {
        flex: 1;
    }
.node-details-sections {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
.node-users-list,
    .node-connections-list {
        max-height: 150px;
    }
}
@media (max-width: 1200px) {.tab-section-upper {
        flex: 2.5;
    }
.tab-section-lower {
        flex: 1.5;
    }
}
@media (max-width: 992px) {.tab-section-upper {
        flex: 2;
    }
.tab-section-lower {
        flex: 1;
    }
.node-details-sections {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.btn:active {
    transform: translateY(0);
}
.btn-primary {
    background: #007bff;
    color: white;
}
.btn-primary:hover {
    background: #0056b3;
}
.btn-success {
    background: #28a745;
    color: white;
}
.btn-success:hover {
    background: #1e7e34;
}
.btn-warning {
    background: #ffc107;
    color: #212529;
}
.btn-warning:hover {
    background: #e0a800;
}
.btn-danger {
    background: #dc3545;
    color: white;
}
.btn-danger:hover {
    background: #c82333;
}
.btn-secondary {
    background: #6c757d;
    color: white;
}
.btn-secondary:hover {
    background: #545b62;
}
.form-group {
    margin-bottom: 1rem;
}
.form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #495057;
}
.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-group.inline-input {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.form-group.inline-input .form-label {
    display: inline-block;
    margin-bottom: 0;
    min-width: 120px;
    flex-shrink: 0;
}
.form-group.inline-input .form-control {
    width: auto;
    flex: 1;
    max-width: 120px;
}
.form-control:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}
.form-control:disabled {
    background-color: #e9ecef;
    opacity: 1;
}
.text-center {
    text-align: center;
}
.text-muted {
    color: #6c757d;
}
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.d-flex {
    display: flex;
}
.justify-content-between {
    justify-content: space-between;
}
.align-items-center {
    align-items: center;
}
.gap-1 {
    gap: 0.25rem;
}
.gap-2 {
    gap: 0.5rem;
}
.gap-3 {
    gap: 1rem;
}
.base64-data {
    font-family: "Courier New", monospace;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
    user-select: none;
    font-size: 0.85rem;
}
.base64-data:hover {
    background-color: #e9ecef;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,123,255,0.2);
}
.base64-data.selected {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}
.base64-data.truncated::after {
    content: "...";
    color: #6c757d;
    font-weight: bold;
}
.base64-tooltip {
    position: absolute;
    background: #212529;
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-family: "Courier New", monospace;
    max-width: 300px;
    word-break: break-all;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: none;
}
.base64-tooltip::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 10px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #212529;
}
.base64-tooltip-header {
    font-size: 0.7rem;
    color: #adb5bd;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.base64-tooltip-content {
    color: #fff;
    word-wrap: break-word;
}
.base64-data[data-type="publicKey"] {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}
.base64-data[data-type="publicKey"]:hover {
    background-color: #c3e6cb;
    border-color: #28a745;
}
.base64-data[data-type="signature"] {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}
.base64-data[data-type="signature"]:hover {
    background-color: #bee5eb;
    border-color: #17a2b8;
}
.base64-data[data-type="hash"] {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}
.base64-data[data-type="hash"]:hover {
    background-color: #ffeaa7;
    border-color: #ffc107;
}
.base64-data[data-type="blockId"] {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
.base64-data[data-type="blockId"]:hover {
    background-color: #f5c6cb;
    border-color: #dc3545;
}
.control-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}
.control-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.control-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.control-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}
.control-buttons .btn {
    flex: 1;
    padding: 0.5rem 0.25rem;
    font-size: 0.85rem;
}
.main-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}
.main-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.main-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
}
.network-layout {
    display: flex;
    height: 100%;
    gap: 1rem;
}
.network-stats-panel {
    width: 150px;
    flex-shrink: 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: scroll;
}
.network-graph-panel {
    flex: 1;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    min-height: 0;
}
.network-stats {
    border-radius: 0;
    flex-shrink: 0;
    padding: 0.75rem;
}
.network-stat {
    font-size: 0.85rem;
    color: #495057;
    font-weight: 500;
}
.network-visual {
    flex: 1;
    width: 100%;
    min-height: 450px;
}
#d3-network-container {
    width: 100% !important;
    height: 100% !important;
    min-height: 450px !important;
}
.help-content {
    height: 100%;
    overflow-y: auto;
    background: #fff;
}
.help-container {
    display: flex;
    height: 100%;
    min-height: 600px;
}
.help-sidebar {
    width: 200px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 1rem;
    flex-shrink: 0;
}
.help-sidebar h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
}
.help-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.help-nav li {
    margin-bottom: 0.5rem;
}
.help-nav-link {
    display: block;
    padding: 0.5rem;
    color: #6c757d;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.help-nav-link:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
}
.help-nav-link.active {
    background: #007bff;
    color: white;
}
.help-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}
.help-section {
    margin-bottom: 3rem;
    scroll-margin-top: 2rem;
}
.help-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}
.help-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    margin: 1.5rem 0 0.75rem 0;
}
.help-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin: 1rem 0 0.5rem 0;
}
.help-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333;
}
.help-section ul, .help-section ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.help-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.help-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.help-item h4 {
    margin-top: 0;
    color: #007bff;
}
.help-item code {
    background: #e9ecef;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: "Courier New", monospace;
    font-size: 0.9em;
}
.help-item pre {
    background: #f1f3f4;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 0.75rem;
    margin: 0.5rem 0;
    overflow-x: auto;
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
}
.help-loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}
.help-icon {
    background: #a217b8;
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    vertical-align: middle;
}
.help-icon:hover {
    background: #138496;
    transform: scale(1.1);
}
.hide { display: none; }
.clearbtn { position: absolute; top: 5px; left: 5px; padding: 4px; z-index: 99; }
.system-controls-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #495057;
}
.info-sections {
    padding: 1rem;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 250px;
}
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 80px);
    gap: 10px;
    justify-content: start;
    padding: 10px;
}
.users-grid .user-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 80px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
}
.user-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.15);
    transform: translateY(-2px);
}
.user-card.sending {
    border-color: #ffc107;
    background: #fff3cd;
}
.user-card.receiving {
    border-color: #c1ff07;
    background: #f3ffcd;
}
.user-card.selected {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
.user-id {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}
.user-assets {
    color: #28a745;
    font-weight: 600;
}
.transfer-indicator {
    font-size: 0.6rem;
    color: #ffc107;
    font-weight: 600;
    background: #fff8e1;
    padding: 1px 4px;
    border-radius: 2px;
}
.chains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 5px;
    justify-content: start;
    padding: 10px;
}
.chains-container {
    height: calc(100% - 2rem);
    overflow-y: auto;
}
.tab-section-upper {
    flex: 0 0 auto;
    min-height: 200px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.tab-section-upper > * {
    flex: 1;
    min-height: 0;
}
.chains-grid .chain-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px !important;
    height: 32px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box !important;
}
.chain-id-preview {
    font-size: 0.75rem;
    font-weight: 500;
    color: #495057;
    font-family: "Courier New", monospace;
    line-height: 1;
}
.chain-card:hover {
    border-color: #17a2b8;
    box-shadow: 0 2px 8px rgba(23,162,184,0.15);
    transform: translateY(-2px);
}
.chain-card.transferring {
    border-color: #ffc107;
    background: #fff3cd;
}
.chain-card.selected {
    border-color: #17a2b8;
    box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.25);
}
.chain-value {
    color: #28a745;
    font-weight: 600;
}
.chain-status {
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 3px;
    background: #d4edda;
    color: #155724;
}
.msgs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 5px;
    justify-content: start;
    padding: 10px;
}
.msgs-container {
    height: calc(100% - 2rem);
    overflow-y: auto;
}
.msgs-grid .msg-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px !important;
    height: 32px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box !important;
}
.msg-id-preview {
    font-size: 0.75rem;
    font-weight: 500;
    color: #495057;
    font-family: "Courier New", monospace;
    line-height: 1;
}
.msg-card:hover {
    border-color: #17a2b8;
    box-shadow: 0 2px 8px rgba(23,162,184,0.15);
    transform: translateY(-2px);
}
.msg-card.transferring {
    border-color: #ffc107;
    background: #fff3cd;
}
.msg-card.selected {
    border-color: #17a2b8;
    box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.25);
}
.msg-value {
    color: #28a745;
    font-weight: 600;
}
.msg-details-container{
    overflow-y: auto;
}
.msgline {
    margin: 12px;
    border-left: 2px solid #55aa88;
}
.msg-id {
    border-top: 2px solid #55aa88;
}
.msg-tag {
    border-bottom: 2px solid #55aa88;
}
.msgline>div>span{
    padding-left: 18px;
    padding-right: 18px;
    display: inline;
}
.msgline>div>span:first-child {
    background: #ccc;
    width: 160px;
    display: inline-block;
    border-bottom: 1px solid #55aa88;
}
.base64 {
    font-size: 0.7rem;
}
.msg-status {
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 3px;
    background: #d4edda;
    color: #155724;
}
.log-controls {

    gap: 0.5rem;
}
.log-display {
    flex: 1;
    overflow-y: scroll !important;
    overflow-x: hidden;
    padding: 0.5rem;
    background: #ffffff;
    max-height: calc(100vh - 200px);
}
.log-entry {
    padding: 0.5rem !important;
    margin-bottom: 0.25rem !important;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    border-left: 3px solid #dee2e6 !important;
    background: #f8f9fa !important;
    color: #495057 !important;
    display: block !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.log-entry:hover {
    background-color: #f0f2f5;
}
.log-entry:last-child {
    margin-bottom: 0;
}
.log-timestamp {
    color: #6c757d !important;
    font-size: 0.75rem !important;
    margin-right: 0.5rem !important;
    display: inline !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.log-message {
    color: #495057 !important;
    display: inline !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.log-type-block {
    border-left-color: #007bff;
    background: #e3f2fd;
}
.log-type-network {
    border-left-color: #28a745;
    background: #e8f5e8;
}
.log-type-security {
    border-left-color: #dc3545;
    background: #f8d7da;
}
.log-type-warning {
    background: #ffc107;
    color: #212529 !important;
}
.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.9rem;
}
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}
.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}
.system-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.status-stopped {
    background-color: #6c757d;
}
.status-running {
    background-color: #28a745;
    animation: pulse 2s infinite;
}
.status-paused {
    background-color: #ffc107;
}
@keyframes pulse {0% { opacity: 1; }
50% { opacity: 0.5; }
100% { opacity: 1; }
}
.status-text {
    font-weight: 500;
    color: #495057;
}
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}
.btn-group {
    display: flex;
    gap: 0.25rem;
}
.btn-group .btn {
    flex: 1;
}
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}
.form-control:invalid {
    border-color: #dc3545;
}
.form-control:valid {
    border-color: #28a745;
}
.btn:disabled,
.form-control:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
textarea.form-control {
    resize: vertical;
    min-height: 100px;
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
}
small.text-muted {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
    margin-top: 0.25rem;
}
.user-assets-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.user-asset-card {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    background: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
}
.user-asset-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.15);
}
.user-asset-card.selected {
    border-color: #007bff;
    background: #f8f9ff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}
.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f8f9fa;
}
.user-key {
    font-size: 0.75rem;
    color: #6c757d;
    font-family: monospace;
}
.user-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}
.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
}
.asset-value {
    color: #28a745;
    font-size: 0.9rem;
}
.user-details {
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}
.user-details h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}
.owned-chains-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.owned-chain-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.owned-chain-item:hover {
    background: #e9ecef;
}
.chain-id {
    font-family: monospace;
    font-weight: 600;
    color: #495057;
}
.chain-serial, .chain-value {
    font-size: 0.8rem;
    color: #6c757d;
}
.chain-ownership-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.value-group {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}
.value-header {
    background: #f8f9fa;
    padding: 0.5rem 0.75rem;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
}
.chains-in-value {
    padding: 0.75rem;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.chain-ownership-card {
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 0.5rem;
    background: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
}
.chain-ownership-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.15);
}
.chain-ownership-card.selected {
    border-color: #007bff;
    background: #f8f9ff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}
.chain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}
.chain-owner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.owner-label {
    font-size: 0.7rem;
    color: #6c757d;
}
.owner-id {
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    color: #007bff;
}
.owner-id:hover {
    text-decoration: underline;
}
.chain-details {
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}
.chain-details h6 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}
.blocks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}
.block-item {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    background: #f8f9fa;
}
.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}
.block-id {
    font-size: 0.75rem;
    font-weight: 500;
}
.block-type {
    font-size: 0.8rem;
    padding: 2px;
    border-radius: 3px;
    background: #d4edda;
    color: #155724;
    width: 6rem;
    display:block;
    margin-right: 1rem;
}
.block-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.block-creator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.block-time {
    font-size: 0.7rem;
}
.network-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
}
.network-stat-card {
    text-align: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}
.network-stat-card h6 {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.network-stat-card .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #495057;
}
@media (max-width: 480px) {.tab-header {
        flex-direction: column;
    }
.tab-button {
        flex: none;
        width: 100%;
        border-bottom: 1px solid #e9ecef;
        border-radius: 0;
    }
.tab-button.active {
        border-bottom-color: #007bff;
    }
.tab-section-upper,
    .tab-section-lower {
        padding: 0.5rem;
        flex: 1;
    }
}
.log-panel-header {
    background: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}
.log-panel-header h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}
.log-search {
    position: relative;
    display: flex;
    align-items: center;
}
.log-search input {
    flex: 1;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
}
.log-search input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}
#log-search-clear {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}
#log-search-clear:hover {
    background-color: #e9ecef;
    color: #495057;
}
.log-filters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.log-filters select {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
}
.log-filters select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}
#log-clear-filter {
    padding: 0.5rem 0.75rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}
#log-clear-filter:hover {
    background: #545b62;
}
.log-panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.log-list {
    flex: 1;
    overflow-y: auto !important;
    overflow-x: hidden;
    padding: 0.5rem;
    box-sizing: border-box;
    background: white !important;
    border: 1px solid #dee2e6 !important;
    min-height: 0;
    height: 100%;
}
.log-empty {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}
.log-item {
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid #e9ecef;
    background: #f8f9fa;
    font-size: 0.85rem;
}
.log-item:hover {
    background-color: #f8f9fa;
}
.log-item.selected {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    box-shadow: inset 0 0 0 1px rgba(33,150,243,0.2);
}
.log-item:last-child {
    border-bottom: none;
}
.log-header {
    flex-shrink: 0;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}
.log-type {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    color: white;
}
.log-time {
    font-size: 0.75rem;
    color: #6c757d;
    font-family: "Courier New", monospace;
}
.log-tick {
    font-size: 0.75rem;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 4px;
    border-radius: 3px;
}
.log-related {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.log-related-data {
    font-size: 0.75rem;
    background: #f8f9fa;
    color: #495057;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}
.log-related-data:hover {
    background: #e9ecef;
    border-color: #007bff;
    color: #007bff;
}
.log-type-error {
    background: #fd7e14;
}
.log-type-info {
    background: #17a2b8;
}
.log-type-default {
    background: #6c757d;
}
.log-pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}
.pagination-btn {
    padding: 0.375rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    color: #007bff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    min-width: 2.5rem;
    text-align: center;
}
.pagination-btn:hover:not(.disabled) {
    background: #e9ecef;
    border-color: #adb5bd;
}
.pagination-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}
.pagination-btn.disabled {
    color: #6c757d;
    background: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}
.pagination-info {
    text-align: center;
    font-size: 0.8rem;
    color: #6c757d;
}
.log-panel-footer {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}
.log-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d;
}
.log-item-interactive {
    position: relative;
}
.log-item-interactive::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background-color 0.2s ease;
}
.log-item-interactive:hover::before {
    background: #007bff;
}
.log-item-interactive.selected::before {
    background: #007bff;
}
.log-item.linked-highlight {
    animation: linkPulse 0.6s ease-in-out;
}
@keyframes linkPulse {0% { background: #f8f9ff; }
50% { background: #e3f2fd; }
100% { background: #f8f9ff; }
}
.log-related-data[data-type="user"] {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.log-related-data[data-type="user"]:hover {
    background: #28a745;
    color: white;
    border-color: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40,167,69,0.3);
}
.log-related-data[data-type="chain"] {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}
.log-related-data[data-type="chain"]:hover {
    background: #17a2b8;
    color: white;
    border-color: #138496;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(23,162,184,0.3);
}
.log-related-data[data-type="block"] {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}
.log-related-data[data-type="block"]:hover {
    background: #ffc107;
    color: #212529;
    border-color: #e0a800;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(255,193,7,0.3);
}
.log-item.selected .log-related-data {
    background: rgba(33,150,243,0.1);
    border-color: rgba(33,150,243,0.3);
}
.log-panel-header.filtered {
    background: #fff3cd;
    border-color: #ffeaa7;
}
.log-panel-header.filtered::after {
    content: "已过滤";
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: #ffc107;
    color: #212529;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}
.log-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #6c757d;
}
.log-loading::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}
@keyframes spin {0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
@keyframes fadeIn {from { opacity: 0; }
to { opacity: 1; }
}
.log-stats span {
    padding: 0.25rem 0.5rem;
    background: #f8f9fa;
    border-radius: 0.25rem;
    border: 1px solid #e9ecef;
}
.log-stats span:first-child {
    color: #495057;
}
.log-stats span:last-child {
    color: #007bff;
    font-weight: 600;
}
.hash-floating-verify {
    position: fixed;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 500px;
    min-width: 300px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}
.floating-verify-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
}
.verify-type {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
}
.floating-verify-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.floating-verify-close:hover {
    background: #e9ecef;
    color: #495057;
}
.floating-verify-content {
    padding: 1rem;
}
.hash-display {
    margin-bottom: 1rem;
}
.hash-display label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}
.full-hash {
    display: block;
    font-family: "Courier New", monospace;
    font-size: 0.75rem;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    word-break: break-all;
    max-height: 60px;
    overflow-y: auto;
}
.verify-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.verify-code-preview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}
.verify-code-preview pre {
    margin: 0;
    padding: 0.75rem;
    font-size: 0.75rem;
    line-height: 1.4;
}
.verify-code-preview code {
    background: none;
    padding: 0;
    color: #495057;
}
.verify-result {
    font-size: 0.9rem;
}
.verify-result .alert {
    margin-bottom: 0;
    padding: 0.5rem;
    font-size: 0.8rem;
}
.verify-result .alert small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    word-break: break-all;
}
.copy-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 15px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    z-index: 10000;
    transition: all 0.3s ease;
}
.copy-feedback.success {
    background: #28a745;
}
.copy-feedback.error {
    background: #dc3545;
}
.verify-code-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.verify-code-dialog.show {
    opacity: 1;
    visibility: visible;
}
.verify-code-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}
.verify-code-content {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.verify-code-dialog.show .verify-code-content {
    transform: scale(1);
}
.verify-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}
.verify-code-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}
.verify-code-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.verify-code-close:hover {
    background: #e9ecef;
    color: #495057;
}
.verify-code-info {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}
.verify-code-info p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #495057;
}
.verify-code-info p:last-child {
    margin-bottom: 0;
}
.base64-short {
    font-family: "Courier New", monospace;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.85rem;
}
.verify-code-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.verify-code-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}
.verify-code-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: #6c757d;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}
.verify-code-tab:hover {
    background: #e9ecef;
    color: #495057;
}
.verify-code-tab.active {
    color: #007bff;
    background: white;
    border-bottom-color: #007bff;
}
.verify-code-tab-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}
.verify-code-tab-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    padding: 1.5rem;
}
.verify-code-tab-pane.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}
.verify-code-actions {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 0.5rem;
}
.verify-code-actions .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}
.verify-code-pre {
    flex: 1;
    margin: 0;
    padding: 1.5rem;
    background: #f8f9fa;
    overflow: auto;
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    border: none;
}
.verify-code-text {
    position: relative;
}
.verify-code-console-info {
    padding: 1rem 1.5rem;
    background: #e3f2fd;
    border-bottom: 1px solid #bbdefb;
}
.verify-code-console-info p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #1565c0;
}
.verify-code-console-info ol {
    margin: 0.5rem 0 0 1.5rem;
    font-size: 0.85rem;
    color: #1976d2;
}
.verify-code-console-info li {
    margin-bottom: 0.25rem;
}
.verify-code-footer {
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    min-height: 60px;
    display: flex;
    align-items: center;
}
.verify-code-result {
    width: 100%;
    padding: 1rem 1.5rem;
}
.verify-result-success {
    color: #155724;
    background: #d4edda;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}
.verify-result-error {
    color: #721c24;
    background: #f8d7da;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}
.verify-result-error pre {
    margin: 0.5rem 0 0 0;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    border-radius: 3px;
    overflow-x: auto;
}
.verify-result-logs {
    margin-bottom: 1rem;
}
.verify-result-logs h5 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #495057;
}
.verify-log {
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 3px;
    font-family: "Courier New", monospace;
    font-size: 0.8rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.verify-log.log-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 3px solid #17a2b8;
}
.verify-log.log-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}
.verify-result-return {
    margin-bottom: 1rem;
}
.verify-result-return h5 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #495057;
}
.verify-result-return pre {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    overflow-x: auto;
    border: 1px solid #e9ecef;
}
.verify-message-success {
    color: #155724;
    background: #d4edda;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}
.verify-message-error {
    color: #721c24;
    background: #f8d7da;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}
.verify-message-info {
    color: #0c5460;
    background: #d1ecf1;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #bee5eb;
}
.verify-code-text::selection {
    background: rgba(0, 123, 255, 0.2);
}
.copy-success {
    animation: copyPulse 0.6s ease-in-out;
}
@keyframes copyPulse {0% { background: #28a745; }
50% { background: #20c997; }
100% { background: #28a745; }
}
.btn-running {
    position: relative;
    color: transparent !important;
}
.btn-running::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}
.settings-form .form-group {
    margin-bottom: 1rem;
}
.settings-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
}
.settings-form input, .settings-form textarea, .settings-form select {
    width: 100%;
    padding: 0.375rem 0.5rem;
    font-size: 0.85rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
}
.tick-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.25rem;
}
.range-label-left, .range-label-right {
    font-weight: 500;
}
.status-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-left: auto;
}
.status-details small {
    font-size: 0.7rem;
    line-height: 1.2;
}
.chain-serial {
    font-size: 0.7rem;
    color: #6c757d;
}
.more-chains {
    text-align: center;
    color: #6c757d;
    font-size: 0.75rem;
    font-style: italic;
    padding: 0.5rem;
    border: 1px dashed #e9ecef;
    border-radius: 4px;
}
.main-section.network-section {
    height: 180px;
    margin-bottom: 1rem;
}
.main-section.users-section {
    height: 200px;
    margin-bottom: 1rem;
}
.main-section.chains-section {
    flex: 1;
    min-height: 150px;
}
.network-graph-display {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.network-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}
.users-container {
    height: calc(100% - 2rem);
    overflow-y: auto;
}
.definition-hash {
    font-family: "Courier New", monospace;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
    word-break: break-all;
}
.detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.detail-modal.show {
    display: flex;
    opacity: 1;
}
.detail-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}
.detail-modal-content {
    position: relative;
    margin: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.detail-modal.show .detail-modal-content {
    transform: scale(1);
}
.detail-modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}
.detail-modal-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #495057;
}
.detail-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.detail-modal-close:hover {
    background: #e9ecef;
    color: #495057;
}
.detail-modal-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}
.detail-section {
    margin-bottom: 1.5rem;
}
.detail-section:last-child {
    margin-bottom: 0;
}
.detail-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}
.detail-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.detail-info-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}
.detail-info-value {
    color: #6c757d;
    font-size: 0.9rem;
    font-family: monospace;
}
.detail-info-value.detail-chain-value {
    color: #28a745;
    font-weight: 600;
    font-family: inherit;
}
.detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}
.detail-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}
.detail-list-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
}
.detail-list-value {
    font-size: 0.85rem;
    color: #6c757d;
}
.detail-block-type {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    margin-left: 0.5rem;
}
.detail-block-type.root {
    background: #e3f2fd;
    color: #1976d2;
}
.detail-block-type.ownership {
    background: #e8f5e8;
    color: #2e7d32;
}
.detail-block-type.transfer {
    background: #fff3e0;
    color: #f57c00;
}
.detail-info-value.transferring {
    color: #ffc107;
    font-weight: 600;
}
@keyframes pulse-text {0%, 100% { opacity: 1; }
50% { opacity: 0.6; }
}
.user-card, .chain-card {
    cursor: pointer;
    transition: all 0.2s ease;
}
.user-card:hover, .chain-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.user-card.transferring, .chain-card.transferring {
    border-color: #ffc107;
    background-color: #fff8e1;
}
.links line {
    stroke-opacity: 0.8;
}
.nodes circle {
    cursor: pointer;
}
.nodes text {
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.msgicon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border-radius: 50%;
    display: inline-block;
}
.user-id, .chain-id {
    font-weight: 600;
    color: #495057;
    font-size: 0.7rem;
}
.user-assets, .chain-value {
    font-weight: 500;
    color: #28a745;
    font-size: 0.8rem;
}
.user-id, .chain-value {
    font-weight: 600;
    color: #495057;
    font-size: 0.8rem;
}
.user-assets, .chain-status {
    font-size: 0.7rem;
    color: #6c757d;
}
.code-editor {
    flex: 1;
    margin-bottom: 1rem;
}
.code-editor pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    margin: 0;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.4;
}
.code-editor code {
    font-family: "Courier New", monospace;
    color: #495057;
}
.code-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.code-result {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    min-height: 60px;
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
    color: #495057;
}
.console-instructions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.console-code {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
}
.console-code pre {
    margin: 0;
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #495057;
}
/
* 响应式调整 - 主面板 */
@media (max-width: 768px) {
    .info-sections {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    
    .network-graph-container {
        margin-bottom: 0.5rem;
    }

    
    .network-stats {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    
    .users-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }

    
    .chains-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }

}
.main-panel .panel-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.network-graph-container {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    flex: 1;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}
.network-graph {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}
.log-type-system {
    border-left-color: #ffc107;
    background: #fff8e1;
}
.log-pagination .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}
#log-page-info {
    font-size: 0.75rem;
    margin: 0 0.25rem;
}
/
* 详情弹窗样式 */
.detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.user-detail-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.user-basic-info,
.user-chains-section,
.user-logs-section {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    width: 48%;
    display: inline-block;
    vertical-align: top; 
}
.user-basic-info h5,
.user-chains-section h5,
.user-logs-section h5 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}
.detail-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}
.crypto-key,
.crypto-hash {
    font-family: "Courier New", monospace;
    font-size: 0.8rem;
    background: #e9ecef;
    padding: 2px 4px;
    border-radius: 3px;
    cursor: help;
}
.chains-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}
.chain-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.chain-item:hover {
    background: #e9ecef;
    border-color: #007bff;
}
.chain-status.transferring {
    background: #fff3cd;
    color: #856404;
}
.logs-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 200px;
    overflow-y: auto;
}
.log-item.log-type-block {
    border-left-color: #007bff;
    background: #e3f2fd;
}
.log-item.log-type-network {
    border-left-color: #28a745;
    background: #e8f5e8;
}
.log-item.log-type-security {
    border-left-color: #dc3545;
    background: #f8d7da;
}
.chain-detail-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.chain-basic-info,
.root-block-section,
.chain-blocks-section {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
}
.block-verify-section {
    display: flex;
    justify-content: center;
}
.block-item.root-block {
    border-color: #007bff;
    background: #e3f2fd;
}
.block-index {
    font-weight: 600;
    color: #495057;
}
.block-item.root-block .block-type {
    background: #cce5ff;
    color: #004085;
}
.block-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.block-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}
.field-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.85rem;
}
.field-value {
    color: #6c757d;
    font-size: 0.85rem;
    font-family: monospace;
}
.block-verification-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.verification-info {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    background: #f8f9fa;
}
.verification-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
.verification-result {
    min-height: 60px;
}
.verification-details {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}
.verification-details div {
    margin-bottom: 0.25rem;
    word-break: break-all;
}
.main-panel-tabs {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}
.tab-button {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.tab-button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}
.tab-button.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}
.tab-button.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: white;
    z-index: 1;
}
.tab-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: white;
}
.tab-pane {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}
.tab-pane.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 1;
}
.tab-section-lower {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.tab-section-upper h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
}
.tab-section-lower h4 {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
}
#network-tab .tab-section-upper {
    padding: 0;
    background: white;
}
#network-tab .network-graph-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}
#network-tab .network-graph {
    height: 100%;
    display: flex;
    flex-direction: column;
}
#users-tab .user-id {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}
#users-tab .user-assets {
    font-size: 1rem;
    font-weight: 700;
    color: #28a745;
}
#users-tab .transfer-indicator {
    font-size: 0.7rem;
    color: #ffc107;
    margin-top: 0.25rem;
    font-weight: 500;
}
#chains-tab .chain-id {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}
#chains-tab .chain-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #17a2b8;
    margin-bottom: 0.25rem;
}
#chains-tab .chain-status {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}
#chains-tab .chain-card.transferring .chain-status {
    color: #ffc107;
}
.detail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}
.detail-content {
    height: 100%;
    overflow-y: auto;
}
.node-details {
    padding: 1rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.node-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}
.node-details-header h5 {
    margin: 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}
.node-details-body {
    padding: 1rem;
}
.node-info-section {
    margin-bottom: 1.5rem;
}
.node-info-section:last-child {
    margin-bottom: 0;
}
.node-info-section h6 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e9ecef;
}
.node-users-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.node-user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}
.node-user-info {
    display: flex;
    flex-direction: column;
}
.node-user-id {
    font-size: 0.8rem;
    font-weight: 500;
    color: #495057;
}
.node-user-key {
    font-size: 0.7rem;
    color: #6c757d;
    font-family: monospace;
}
.node-user-assets {
    font-size: 0.85rem;
    font-weight: 600;
    color: #28a745;
}
.node-connections-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.node-connection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.node-connection-info {
    display: flex;
    flex-direction: column;
}
.node-connection-target {
    font-size: 0.8rem;
    font-weight: 500;
    color: #495057;
}
.node-connection-id {
    font-size: 0.7rem;
    color: #6c757d;
    font-family: monospace;
}
.node-connection-latency {
    font-size: 0.8rem;
    font-weight: 600;
    color: #17a2b8;
}
.node-connection-item.inactive {
    opacity: 0.6;
}
.node-connection-item.inactive .node-connection-latency {
    color: #dc3545;
}
.user-details-header {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
}
.user-details-header h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
}
.user-details-body {
    padding: 1rem;
}
.chain-details-header {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
}
.chain-details-header h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
}
.chain-details-body {
    padding: 1rem;
}
.tab-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #6c757d;
    font-size: 0.9rem;
}
.tab-loading::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}
.node-selected {
    stroke: #007bff !important;
    stroke-width: 3px !important;
    filter: drop-shadow(0 0 6px rgba(0,123,255,0.5));
}
.tab-state-indicator {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #28a745;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.tab-button.has-state .tab-state-indicator {
    opacity: 1;
}
.node-details-container {
    height: 100%;
    overflow-y: scroll;
    max-height: 100%;
}
.node-details-container .text-muted {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
}
.owner-link { cursor: pointer; }
#users-tab .users-container {
    height: 100%;
    overflow: auto;
}
.user-details-container {
    height: 100%;
    overflow-y: scroll;
    max-height: 100%;
}
.user-details-container .text-muted {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-style: italic;
}
#chains-tab .chains-container {
    height: 100%;
    overflow: auto;
}
.chain-details-container {
    height: 100%;
    overflow-y: scroll;
    max-height: 100%;
}
.chain-details-container .text-muted {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-style: italic;
}
.tab-pane:not(.active) {
    display: none !important;
}
.tab-button.loading {
    opacity: 0.6;
    cursor: not-allowed;
}
.tab-loading-indicator {
    margin-left: 0.5rem;
    animation: spin 1s linear infinite;
}
.tab-error-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #dc3545;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    z-index: 1000;
    font-size: 0.9rem;
    animation: slideInRight 0.3s ease-out;
}
@keyframes slideInRight {from {
        transform: translateX(100%);
        opacity: 0;
    }
to {
        transform: translateX(0);
        opacity: 1;
    }
}
.node-id {
    font-size: 0.9rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}
.node-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}
.node-users-section,
.node-connections-section {
    margin-bottom: 1.5rem;
    width: 46%;
    display: inline-block;
    margin-left: 20px;
}
.node-users-section h6,
.node-connections-section h6 {
    margin-bottom: 0.75rem;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.node-users-section h6::before {
    content: "👥";
    font-size: 1.1rem;
}
.node-connections-section h6::before {
    content: "🔗";
    font-size: 1.1rem;
}
.users-list,
.connections-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}
.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.user-item:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,123,255,0.15);
}
.user-display {
    font-weight: 500;
    color: #495057;
}
.connection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
}
.connection-item.active {
    border-left: 4px solid #28a745;
    background: #f8fff8;
}
.connection-item.inactive {
    border-left: 4px solid #dc3545;
    background: #fff8f8;
}
.connection-target {
    font-weight: 500;
    color: #495057;
}
.connection-latency {
    font-size: 0.75rem;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
}
.connection-status {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
}
.status-active {
    color: #155724;
    background: #d4edda;
}
.status-inactive {
    color: #721c24;
    background: #f8d7da;
}
.node-users-section .text-muted,
.node-connections-section .text-muted {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 4px;
}
#network-tab .network-graph-display {
    flex: 1;
    min-height: 0;
}
#network-tab .network-visual {
    position: relative;
    height: 100% !important;
    min-height: 250px;
}
#network-tab #d3-network-container {
    width: 100% !important;
    height: 100% !important;
}
.node-details-container.has-content {

}
.node-details-content {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}
.node-details-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}
.node-details-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.node-details-section h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}
.node-users-list,
.node-connections-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}
.node-user-item,
.node-connection-item {
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-size: 0.85rem;
}
.user-details-container.has-content {

}
.user-details-content {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}
.chain-details-container.has-content {

}
.chain-details-content {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #e9ecef;
    height: 100%;
    overflow-y: auto;
}
@keyframes tabSlideIn {from {
        opacity: 0;
        transform: translateX(20px);
    }
to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes tabSlideOut {from {
        opacity: 1;
        transform: translateX(0);
    }
to {
        opacity: 0;
        transform: translateX(-20px);
    }
}
.tab-pane.slide-in {
    animation: tabSlideIn 0.3s ease forwards;
}
.tab-pane.slide-out {
    animation: tabSlideOut 0.3s ease forwards;
}
.tab-button .tab-indicator {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.tab-button.has-updates .tab-indicator {
    opacity: 1;
    animation: pulse 2s infinite;
}
.tab-error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #dc3545;
    text-align: center;
    padding: 2rem;
}
.tab-error-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.tab-error-message {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.tab-error-retry {
    padding: 0.5rem 1rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}
.tab-error-retry:hover {
    background: #c82333;
}
.tab-empty {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #6c757d;
    text-align: center;
    padding: 2rem;
}
.tab-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
.tab-empty-message {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.tab-empty-hint {
    font-size: 0.85rem;
    opacity: 0.8;
}
@media (max-width: 576px) {.tab-button {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
.tab-section-upper,
    .tab-section-lower {
        padding: 0.5rem;
    }
.node-details-content,
    .user-details-content,
    .chain-details-content {
        padding: 0.75rem;
    }
}
@media (prefers-contrast: high) {.tab-button {
        border: 1px solid #000;
    }
.tab-button.active {
        background: #000;
        color: #fff;
        border-color: #000;
    }
.tab-section-upper,
    .tab-section-lower {
        border: 1px solid #000;
    }
}
@media (prefers-reduced-motion: reduce) {.tab-button,
    .tab-pane,
    .tab-loading::before {
        transition: none;
        animation: none;
    }
.tab-pane.active {
        transform: none;
    }
}
@media (prefers-color-scheme: dark) {.tab-header {
        background: #2d3748;
        border-bottom-color: #4a5568;
    }
.tab-button {
        color: #a0aec0;
    }
.tab-button:hover {
        background: #4a5568;
        color: #e2e8f0;
    }
.tab-button.active {
        background: #1a202c;
        color: #63b3ed;
        border-bottom-color: #63b3ed;
    }
.tab-section-upper {
        background: #2d3748;
        border-bottom-color: #4a5568;
    }
.tab-section-lower {
        background: #1a202c;
    }
.node-details-content,
    .user-details-content,
    .chain-details-content {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
}
.user-icon {
    font-size: 20px;
    margin-bottom: 4px;
    line-height: 1;
}
.user-key-preview {
    font-size: 10px;
    font-family: "Courier New", monospace;
    color: #495057;
    font-weight: 500;
    line-height: 1;
    word-break: break-all;
}
.user-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #212529;
    color: white;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-family: "Courier New", monospace;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: none;
    margin-bottom: 5px;
}
.user-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #212529;
}
.user-card:hover .user-tooltip {
    display: block;
}
.user-details-container,
.node-details-container,
.chain-details-container {
    height: 100% !important;
    overflow-y: scroll !important;
    display: block !important;
    max-height: 100% !important;
}
#chain-details-container {
    height: 100% !important;
    overflow-y: scroll !important;
    display: block !important;
    max-height: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
}
#chain-details-container .chain-details {
    padding: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
#tree-def-hash { font-size: 0.9rem; }
.user-details,
.node-details,
.chain-details {
    padding: 1rem;
    min-height: 100%;
}
.user-details-container.has-content,
.node-details-container.has-content,
.chain-details-container.has-content {
    justify-content: flex-start;
    align-items: stretch;
}
.tab-section-lower .chain-details-container,
.tab-section-lower .user-details-container,
.tab-section-lower .node-details-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    height: 100%;
}
.tab-actions {
    display: flex;
    gap: 0.5rem;
}
.tab-buttons {
    display: flex;
    gap: 0.25rem;
}
.resize-handle {
    height: 8px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    cursor: ns-resize;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    z-index: 10;
    transition: background-color 0.2s ease;
}
.resize-handle:hover {
    background: #e9ecef;
}
.resize-handle.dragging {
    background: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}
.resize-handle-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
    transform: translateY(-50%);
}
.resize-handle-grip {
    display: flex;
    gap: 2px;
    padding: 2px 6px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.resize-handle:hover .resize-handle-grip,
.resize-handle.dragging .resize-handle-grip {
    opacity: 1;
}
.grip-dot {
    width: 3px;
    height: 3px;
    background: #6c757d;
    border-radius: 50%;
}
.resize-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #212529;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}
.resize-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #212529;
}
body.resizing {
    user-select: none;
    cursor: ns-resize !important;
}
body.resizing * {
    pointer-events: none !important;
}
body.resizing .resize-handle {
    pointer-events: auto !important;
}
.tab-content.resizing .resizable-section {
    transition: none;
}
.resize-context-menu {
    position: fixed;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 120px;
    padding: 4px 0;
}
.context-menu-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    transition: background-color 0.2s ease;
}
.context-menu-item:hover {
    background-color: #f8f9fa;
}
.menu-icon {
    margin-right: 8px;
    font-size: 16px;
    color: #6c757d;
}
.menu-text {
    flex: 1;
}
@media (pointer: coarse) {.resize-handle {
        height: 12px;
    }
.resize-handle-grip {
        opacity: 1;
        padding: 4px 8px;
    }
.grip-dot {
        width: 4px;
        height: 4px;
    }
}
.log-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #495057;
}
.log-tabs {
    flex-shrink: 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}
.log-tabs .nav-tabs {
    border-bottom: none;
    padding: 0 1rem;
    display: flex;
    flex-direction: row;
    margin-bottom: 0;
    list-style: none;
}
.log-tabs .nav-item {
    margin-bottom: 0;
    list-style: none;
}
.log-tabs .nav-link {
    border: none;
    border-radius: 0;
    color: #6c757d;

    padding: 0.5625rem 0.75rem;
    background: transparent;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transform: scale(0.9);
    transform-origin: center;
    transition: all 0.2s ease;
}
.log-tabs .nav-link:hover {
    border-color: transparent;
    background: rgba(0,0,0,0.05);
}
.log-tabs .nav-link.active {
    color: #495057;
    background: white;
    border-bottom-color: #007bff;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    transform: scale(1);
}
.log-tabs ul,
.log-tabs li {
    list-style: none !important;
    list-style-type: none !important;
}
.log-tabs li::before {
    display: none !important;
}
.main-panel .tab-header {
    display: flex !important;
    background: #f8f9fa !important;
    border-bottom: none !important;
    padding: 0 1rem !important;
    margin: 0 !important;
}
.main-panel .tab-button {
    flex: 1 !important;
    padding: 0.5625rem 0.75rem !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: #6c757d !important;

    border-bottom: 2px solid transparent !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    transform: scale(0.9) !important;
    transform-origin: center !important;
}
.main-panel .tab-button:hover {
    border-color: transparent !important;
    background: rgba(0,0,0,0.05) !important;
    color: #495057 !important;
}
.main-panel .tab-button.active {
    color: #495057 !important;
    background: white !important;
    border-bottom-color: #007bff !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1rem !important;
    transform: scale(1) !important;
}
.main-panel .tab-button.active::after {
    display: none !important;
}
.log-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}
.log-content .tab-content {
    flex: 1;
    position: relative;
    min-height: 0;
    height: 100%;
}
.log-content .tab-pane {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    min-height: 0;
}
.log-content .tab-pane.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 0;
}
.log-entry.info {
    background: #f8f9fa;
    border-left-color: #17a2b8;
}
.log-entry.warning {
    background: #fff3cd;
    border-left-color: #ffc107;
}
.log-entry.error {
    background: #f8d7da;
    border-left-color: #dc3545;
}
.log-entry.success {
    background: #d4edda;
    border-left-color: #28a745;
}
.log-placeholder {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
}
