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

body {
    font-family: 'Courier New', Courier, monospace;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: #ffffff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.console-container {
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid #ffffff;
}

.console-header {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 15px 20px;
    border-bottom: 2px solid #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.console-title {
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.console-icon {
    color: #ffffff;
    font-size: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.console-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    transition: all 0.3s ease;
}

button:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

button:active {
    transform: scale(0.95);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #ffffff;
}

.checkbox-label:hover {
    opacity: 0.8;
}

.console-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #000;
}

.console-body::-webkit-scrollbar {
    width: 10px;
}

.console-body::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.console-body::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 5px;
}

.console-body::-webkit-scrollbar-thumb:hover {
    background: #cccccc;
}

.console-line {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-left: 3px solid #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    animation: fadeIn 0.3s ease;
    line-height: 1.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.console-line.info {
    border-left-color: #bbbbbb;
    color: #bbbbbb;
    background: rgba(187, 187, 187, 0.05);
}

.console-line.warning {
    border-left-color: #dddddd;
    color: #dddddd;
    background: rgba(221, 221, 221, 0.05);
}

.console-line.error {
    border-left-color: #999999;
    color: #999999;
    background: rgba(153, 153, 153, 0.05);
}

.console-line.success {
    border-left-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.console-line.system {
    border-left-color: #777777;
    color: #777777;
    background: rgba(119, 119, 119, 0.05);
}

.timestamp {
    color: #666;
    margin-right: 10px;
    font-size: 11px;
}

.message {
    word-wrap: break-word;
}

.message-data {
    display: block;
    margin-top: 5px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    font-size: 12px;
    white-space: pre-wrap;
}

.console-input {
    background: #000;
    padding: 15px 20px;
    border-top: 1px solid #ffffff;
    border-bottom: 2px solid #ffffff;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-prompt {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

#command-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

#command-input:focus {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

#command-input::placeholder {
    color: #555;
}

.btn-send {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-send:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.btn-send:active {
    transform: scale(0.95);
}

.console-footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 10px 20px;
    border-top: 2px solid #ffffff;
}

.status-bar {
    display: flex;
    gap: 20px;
    font-size: 12px;
}

.status-item {
    color: #888;
}

.status-connected {
    color: #ffffff;
    font-weight: bold;
}

.status-disconnected {
    color: #888888;
    font-weight: bold;
}

@media (max-width: 768px) {
    .console-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .status-bar {
        flex-direction: column;
        gap: 5px;
    }
}
