body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #e0e6ed;
}
.header {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    text-align: center;
    color: white;
    border-bottom: 1px solid rgba(97, 218, 251, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.header h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #61dafb, #21d4fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}
.container {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0a0a19 0%, #1a1a2e 50%, #16213e 100%);
}

.page-header {
    text-align: center;
    padding: 30px 20px;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(97, 218, 251, 0.2);
}

.page-header h1 {
    color: #61dafb;
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(97, 218, 251, 0.3);
}

.page-header p {
    color: #8892b0;
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.websocket-status {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.status-label {
    color: rgba(230, 241, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.status-indicator {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-indicator.connected {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.status-indicator.disconnected {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.3);
}

.status-indicator.connecting {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.btn-connect {
    padding: 6px 16px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-connect:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-connect:active {
    transform: translateY(0);
}

.main-panel {
    flex: 1;
    background: rgba(26, 26, 46, 0.95);
    margin: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(97, 218, 251, 0.1);
    display: flex;
    overflow: hidden;
}

.request-list-panel {
    width: 35%;
    min-width: 400px;
    border-right: 1px solid rgba(97, 218, 251, 0.2);
    padding: 0;
    overflow: hidden;
    background: rgba(15, 15, 35, 0.8);
    display: flex;
    flex-direction: column;
}

.request-detail-panel {
    width: 65%;
    padding: 0;
    overflow: hidden;
    background: rgba(20, 20, 40, 0.8);
    display: flex;
    flex-direction: column;
}
.panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(97, 218, 251, 0.2);
    background: rgba(15, 15, 35, 0.6);
    backdrop-filter: blur(10px);
}
.panel-header h3 {
    color: #61dafb;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.panel-controls {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.log-container {
    flex: 1;
    overflow-y: auto;
    background: rgba(10, 10, 25, 0.8);
    padding: 16px;
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.5;
}
.log-container::-webkit-scrollbar {
    width: 8px;
}
.log-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.log-container::-webkit-scrollbar-thumb {
    background: rgba(97, 218, 251, 0.3);
    border-radius: 4px;
}
.log-container::-webkit-scrollbar-thumb:hover {
    background: rgba(97, 218, 251, 0.5);
}

.request-list-item {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(97, 218, 251, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin: 8px 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.request-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(97, 218, 251, 0.05), rgba(33, 212, 253, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.request-list-item:hover {
    background: rgba(40, 40, 65, 0.9);
    border-color: rgba(97, 218, 251, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.request-list-item:hover::before {
    opacity: 1;
}

.request-list-item.selected {
    background: rgba(30, 58, 95, 0.9);
    border-color: rgba(97, 218, 251, 0.6);
    box-shadow: 0 0 20px rgba(97, 218, 251, 0.2);
}

.request-list-item.selected::before {
    opacity: 1;
}

.request-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.request-list-url {
    color: #61dafb;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.request-list-info {
    color: #888;
    font-size: 11px;
}

.detail-container {
    flex: 1;
    background: rgba(10, 10, 25, 0.8);
    padding: 24px;
    overflow-y: auto;
    position: relative;
}

.detail-container::-webkit-scrollbar {
    width: 8px;
}

.detail-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.detail-container::-webkit-scrollbar-thumb {
    background: rgba(97, 218, 251, 0.3);
    border-radius: 4px;
}

.detail-container::-webkit-scrollbar-thumb:hover {
    background: rgba(97, 218, 251, 0.5);
}

.detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #8892b0;
    font-size: 18px;
}

.detail-empty h3 {
    color: #61dafb;
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 600;
}

.detail-empty p {
    opacity: 0.8;
    margin: 0;
    font-size: 16px;
}

.detail-header {
    border-bottom: 2px solid #444;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.detail-title {
    color: #61dafb;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    word-break: break-all;
}

.detail-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section-title {
    color: #f39c12;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    border-left: 4px solid #f39c12;
    padding-left: 10px;
}

.detail-field {
    margin-bottom: 10px;
}

.detail-field-label {
    color: #888;
    font-weight: bold;
    display: inline-block;
    width: 100px;
    font-size: 13px;
}

.detail-field-value {
    color: #fff;
    font-size: 13px;
}

.detail-json {
    background: #0d1117;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}
.log-entry {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    transition: all 0.3s ease;
}
.log-entry:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}
.log-entry.error {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}
.log-entry.warning {
    border-left-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}
.log-entry.success {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}
.request-entry {
    background: #2a2a2a;
    border-left: 4px solid #007acc;
    margin-bottom: 12px;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid #444;
}
.request-entry:hover {
    background: #333;
    border-color: #666;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.request-entry.success {
    border-left-color: #27ae60;
    background: #1e2d1e;
}
.request-entry.error {
    border-left-color: #e74c3c;
    background: #2d1e1e;
}
.request-entry.warning {
    border-left-color: #f39c12;
    background: #2d261e;
}
.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #444;
}
.request-method {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
}
.method-GET { background: #27ae60; color: white; }
.method-POST { background: #3498db; color: white; }
.method-PUT { background: #f39c12; color: white; }
.method-DELETE { background: #e74c3c; color: white; }
.status-code {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.status-2xx { background: #27ae60; color: white; }
.status-3xx { background: #3498db; color: white; }
.status-4xx { background: #f39c12; color: white; }
.status-5xx { background: #e74c3c; color: white; }

.service-name {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    background: rgba(97, 218, 251, 0.2);
    color: #61dafb;
    border: 1px solid rgba(97, 218, 251, 0.3);
    margin-left: 8px;
}
.request-url {
    font-weight: bold;
    color: #61dafb;
    margin-bottom: 8px;
    word-break: break-all;
}
.request-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}
.request-info, .response-info {
    background: #1e1e1e;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #333;
}
.info-title {
    font-weight: bold;
    color: #61dafb;
    margin-bottom: 8px;
    font-size: 13px;
}
.info-item {
    margin-bottom: 4px;
    font-size: 12px;
}
.info-label {
    color: #888;
    display: inline-block;
    width: 80px;
}
.info-value {
    color: #fff;
}
.response-time {
    color: #f39c12;
    font-weight: bold;
}
.json-content {
    background: #1a1a1a;
    padding: 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 5px;
    border: 1px solid #333;
}
.toggle-details {
    background: none;
    border: 1px solid #666;
    color: #61dafb;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    margin-top: 8px;
}
.toggle-details:hover {
    background: #333;
}
.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: bold;
}
.log-time {
    color: #6c757d;
    font-size: 11px;
}
.log-type {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
}
.log-type.request {
    background: #007bff;
    color: white;
}
.log-type.response {
    background: #28a745;
    color: white;
}
.log-type.error {
    background: #dc3545;
    color: white;
}
.log-details {
    font-size: 12px;
    line-height: 1.4;
}
.log-field {
    margin: 4px 0;
}
.log-field-name {
    color: #17a2b8;
    font-weight: bold;
}
.log-field-value {
    color: #e0e0e0;
    margin-left: 10px;
}
.json-value {
    background: rgba(0, 123, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}
.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.stat-label {
    font-weight: 500;
    color: #666;
}
.stat-value {
    font-weight: bold;
    color: #007bff;
}
.filter-group {
    margin: 15px 0;
}
.filter-group label {
    display: block;
    margin: 8px 0;
    cursor: pointer;
    font-weight: normal;
}
.filter-group input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}
.log-area {
    height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f9f9f9;
    font-family: monospace;
    font-size: 12px;
    border-radius: 8px;
}

button {
    padding: 10px 20px;
    margin: 6px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

button:hover::before {
    left: 100%;
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: rgba(136, 146, 176, 0.3) !important;
    color: rgba(136, 146, 176, 0.6) !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

button:disabled::before {
    display: none;
}

.btn-primary {
    background: linear-gradient(135deg, #61dafb, #21d4fd);
    color: #0a0a19;
}
.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}
.btn-success {
    background: linear-gradient(135deg, #51cf66, #40c057);
    color: white;
}
input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    margin: 6px 0;
    border: 1px solid rgba(97, 218, 251, 0.2);
    border-radius: 8px;
    box-sizing: border-box;
    background: rgba(30, 30, 50, 0.8);
    color: #e6f1ff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    font-size: 14px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(97, 218, 251, 0.6);
    box-shadow: 0 0 20px rgba(97, 218, 251, 0.1);
    background: rgba(40, 40, 65, 0.9);
}

input::placeholder, textarea::placeholder {
    color: rgba(136, 146, 176, 0.7);
}

select option {
    background: #1e1e32;
    color: #e6f1ff;
    padding: 8px;
}
.form-group {
    margin: 10px 0;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}