body {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    background: #24252D;
    font-family: 'Poppins', 'Gotham', Arial, sans-serif;
    transition: background 0.3s;
}
body.light-theme {
    background: #f5f5f5;
    color: #222;
}
.light-theme .header {
    background: linear-gradient(101.12deg, #C91CC3 27.35%, #EB1484 99.99%);
    color: #222;
}
.light-theme .panel {
    background: #fff;
    color: #222;
}
.light-theme .metrics .metric {
    background: #f8f9fa;
    color: #222;
}
.light-theme .metric-value {
    color: #EB1484;
}
.light-theme .messages {
    background: #fff;
    color: #222;
    border: 1px solid #ddd;
}
.light-theme .message {
    background: #f8f9fa;
    border-left: 3px solid #EB1484;
}
.light-theme .message-time {
    color: #C91CC3;
}
.light-theme .message-topic {
    color: #EB1484;
}
.light-theme input, .light-theme select, .light-theme textarea {
    background: #fff;
    color: #222;
    border: 1px solid #ddd;
}
.light-theme #ai-response {
    background: #fff !important;
    color: #222 !important;
    border: 1px solid #DA18A3 !important;
}
.light-theme .btn-primary {
    background: linear-gradient(101.12deg, #EB1484 27.35%, #C91CC3 99.99%);
    color: #fff;
}
.light-theme .btn-secondary {
    background-color: #bbb;
    color: #222;
}
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    gap: 30px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}
.header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    gap: 30px;
    width: 1456px;
    height: 130px;
    color: #FFFFFF;
    font-family: 'Gotham', 'Poppins', Arial, sans-serif;
    font-weight: 700;
    font-size: 32px;
    background: linear-gradient(101.12deg, #EB1484 27.35%, #C91CC3 99.99%);
    border-radius: 10px;
    margin-bottom: 30px;
}
.panel {
    background: #1B1A21;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #fff;
    margin-bottom: 20px;
    width: 100%;
    max-width: 992px;
}
.metrics {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}
.metric {
    text-align: center;
    padding: 10px;
    background: #2A2D3A;
    border-radius: 8px;
    flex: 1;
    color: #fff;
}
.metric-value {
    font-size: 24px;
    font-weight: bold;
    color: #DA18A3;
}
.metric-label {
    font-size: 12px;
    color: #FFFFFF;
    text-transform: uppercase;
    transition: color 0.3s;
}
.light-theme .metric-label {
    color: #222;
}
.messages {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #2A2D3A;
    border-radius: 5px;
    padding: 10px;
    background: #24252D;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #fff;
}
.message {
    margin-bottom: 10px;
    padding: 8px;
    border-left: 3px solid #DA18A3;
    background: #2A2D3A;
    border-radius: 3px;
}
.message-time {
    color: #C91CC3;
    font-size: 11px;
}
.message-topic {
    color: #EB1484;
    font-weight: bold;
}
.message-data {
    margin-top: 5px;
    white-space: pre-wrap;
}
.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
button {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Poppins', Arial, sans-serif;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}
button:hover {
    box-shadow: 0 4px 16px rgba(233, 20, 132, 0.25);
    transform: translateY(-2px) scale(1.04);
    background: linear-gradient(101.12deg, #C91CC3 27.35%, #EB1484 99.99%);
}
.btn-primary {
    background: linear-gradient(101.12deg, #EB1484 27.35%, #C91CC3 99.99%);
    color: white;
}
.btn-secondary {
    background-color: #4F4F4F;
    color: white;
}
.btn-danger {
    background-color: #dc3545;
    color: white;
}
input, select, textarea {
    padding: 8px 12px;
    border: 1px solid #2A2D3A;
    border-radius: 10px;
    margin-right: 10px;
    background: #24252D;
    color: #fff;
}
.full-width {
    width: 100%;
}
.connection-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
}
.connected { background-color: #4CAF50; }
.disconnected { background-color: #f44336; }
.connecting { background-color: #ff9800; }
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}
.status-green { background-color: #4CAF50; }
.status-red { background-color: #f44336; }
.status-orange { background-color: #ff9800; }
