body {
    font-family: Arial, sans-serif;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

#serverRunning {
    font-weight: normal;
    font-size: 0.6em;
}

#serverRunning.running {
    color: #4CAF50;
}

#serverRunning.stopped {
    color: #f44336;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    margin-bottom: 20px;
}

.container.split {
    min-height: 240px;
    display: flex;
    gap: 10px;
}

.left {
    flex: 0 0 45%;
}

.right {
    flex: 1;
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.green {
    color: #4CAF50
}

.red {
    color: #f44336;
}

.yellow {
    color: #f7d488;
}

.normal {
    font-weight: normal;
}

#serverIp {
    cursor: pointer;
}

.noselect {
    user-select: none;
}

.console-container {
    height: 240px;
    width: 97.5%;
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
    border-radius: 4px;
    overflow: hidden;
}

.console-status {
    background: #2d2d30;
    color: #d4d4d4;
    padding: 3px 9px;
    font-size: 12px;
    font-family: Consolas, 'Courier New', monospace;
    border-bottom: 1px solid #464647;
    flex-shrink: 0;
}

.console-status.connecting {
    background: #664d03;
    color: #fff3cd;
}

.console-status.connected {
    background: #0f5132;
    color: #d1e7dd;
}

.console-status.disconnected {
    background: #842029;
    color: #f8d7da;
}

.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.password-popup {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    max-width: 400px;
}

.password-popup h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.password-popup input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.password-popup .button-group {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.password-popup .cancel-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

.password-popup .submit-btn {
    padding: 8px 16px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.console {
    flex: 1;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    padding: 8px;
    overflow-y: auto;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.console::-webkit-scrollbar {
    width: 7px;
}

.console::-webkit-scrollbar-track {
    background: #2d2d30;
}

.console::-webkit-scrollbar-thumb {
    background: #464647;
    border-radius: 4px;
}

.console::-webkit-scrollbar-thumb:hover {
    background: #5a5a5c;
}

.start-btn {
    background-color: #4CAF50;
    color: white;
}

.stop-btn {
    background-color: #f44336;
    color: white;
}

.info-btn {
    background-color: #2196F3;
    color: white;
}

.wake-btn {
    color: white;
    background-color: #746D75;
}

.copy-notification {
    position: fixed;
    color: white;
    background-color: transparent;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    animation: floatUp 1s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-50px);
    }
}

button:hover {
    opacity: 0.8;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.status {
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.stat-card:nth-child(1) {
    grid-column: 1;
}

.stat-card:nth-child(2) {
    grid-column: 2;
}

.stat-card:nth-child(3) {
    grid-column: 1;
}

.stat-card:nth-child(4) {
    grid-column: 2;
}

.stat-card:nth-child(5) {
    grid-column: 3;
}

.stat-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.stat-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #495057;
}

.stat-value {
    font-size: 1.1em;
    color: #212529;
}

.cpu-cores {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
}

.cpu-core {
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    width: fit-content;
    flex-shrink: 0;
    /* Prevents cores from shrinking */
    text-align: center;
}

.connection-status {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.connected {
    background-color: #d1ecf1;
    color: #0c5460;
}

.connecting {
    background-color: #f5d547;
}

.disconnected {
    background-color: #f8d7da;
    color: #721c24;
}

@media (max-width: 768px) {
    .container.split {
        flex-direction: column;
    }

    .controls {
        justify-content: center;
    }

    .console-container {
        width: 100%;
    }

    .stat-card {
        grid-column: auto !important;
    }
}