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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
}

.container {
    margin: 0 auto;
    /* background: white; */
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    padding: 0;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-size: 1.8em;
    margin-bottom: 5px;
    font-weight: 700;
}

header p {
    font-size: 1em;
    opacity: 0.9;
}

.content {
    margin: 0 20px;
}

.section {
    margin-bottom: 40px;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.section h2 {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.endpoint {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.endpoint:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.method {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85em;
    margin-right: 10px;
}

.method.get {
    background: #28a745;
    color: white;
}

.method.post {
    background: #007bff;
    color: white;
}

.endpoint-path {
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    color: #333;
    font-weight: 600;
}

.endpoint-description {
    margin-top: 10px;
    color: #666;
}

.endpoint-group {
    margin-bottom: 30px;
}

.endpoint-group h3 {
    color: #764ba2;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.websocket-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.websocket-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin-left: auto;
}

.websocket-status.connected {
    background: #28a745;
    color: white;
}

.websocket-status.disconnected {
    background: #dc3545;
    color: white;
}

.websocket-status.connecting {
    background: #ffc107;
    color: #333;
}

.websocket-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.8;
}

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

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

.message-log {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    max-height: 800px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
}

.message-entry {
    padding: 8px;
    margin-bottom: 8px;
    border-left: 3px solid #007bff;
    background: #f8f9fa;
    border-radius: 2px;
}

.message-entry.sent {
    border-left-color: #28a745;
}

.message-entry.received {
    border-left-color: #007bff;
}

.message-entry.request {
    border-left-color: #17a2b8;
    background: #e7f7f9;
}

.message-entry.error {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.message-entry.request-response {
    border-left-color: #6f42c1;
    background: #f8f9fa;
}

.message-time {
    color: #6c757d;
    font-size: 0.8em;
    margin-right: 10px;
}

.message-content {
    color: #333;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.request-data {
    margin-top: 5px;
    font-size: 0.9em;
    background-color: rgba(237, 237, 214, 0.4);
    padding: 5px;
}

.message-content .request-data-header {
    flex: 10;
    max-width: unset;
    width: 100%;
    min-width: 100%;
    margin-top: 5px;
}

.message-content .request-data {
    flex: 1 1 50%;
    max-width: 40%;
    margin-top: 5px;
}

.message-data-block {
    min-width: 100%;
}

.status-success {
    color: #28a745;
    font-weight: 600;
}

.status-error {
    color: #dc3545;
    font-weight: 600;
}

