body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 900px;
    /* Increased slightly for side panels */
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

h1 {
    margin: 0;
    font-size: 24px;
    color: #bb86fc;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.status-badge.running {
    background-color: #03dac6;
    color: #000;
}

.status-badge.stopped {
    background-color: #cf6679;
    color: #000;
}

.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#start-btn {
    background-color: #03dac6;
    color: #000;
}

#stop-btn {
    background-color: #cf6679;
    color: #000;
}

.logs-container {
    background-color: #121212;
    border-radius: 5px;
    padding: 10px;
    flex: 1;
    min-width: 300px;
}

h2 {
    margin-top: 0;
    font-size: 18px;
    color: #bb86fc;
}

.logs-box {
    color: #fff;
}

.creature-status {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Status Styles */
.status-enabled {
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    background: linear-gradient(145deg, #2d2d2d, #1a3a2a);
}

.status-enabled .creature-status {
    color: #00ff88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.status-disabled {
    border-color: #555;
    opacity: 0.7;
    background-color: #252525;
    color: #666;
    padding: 20px;
    font-style: italic;
}

.status-unknown {
    border-color: #444;
    opacity: 0.5;
    background-color: #1a1a1a;
    color: #888;
    padding: 20px;
    font-style: italic;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.hero-panel {
    flex: 0 0 140px;
    /* Fixed narrow width */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.panel-title {
    margin: 0;
    color: #888;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-align: center;
}

.hero-images-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.hero-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100px;
    /* Strict height cap */
    object-fit: contain;
    transition: all 0.5s ease-in-out;
    border-radius: 8px;
}

/* Locked State (Grayed out) */
.hero-image.locked {
    filter: grayscale(100%) brightness(40%);
    opacity: 0.5;
    transform: scale(0.95);
}

/* Unlocked State (Highlighted) */
.hero-image.unlocked {
    filter: grayscale(0%) brightness(110%) drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    opacity: 1;
    transform: scale(1.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

/* Split View Server Grid */
.servers-container {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
}

.server-section {
    flex: 1;
    background-color: #252525;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
}

.server-header {
    margin-top: 0;
    color: #fff;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.creature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    min-height: 100px;
}

.creature-card {
    background-color: #2d2d2d;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 1000px) {
    .servers-container {
        flex-direction: column;
    }

    .hero-section {
        flex-direction: column;
        align-items: center;
    }

    .hero-panel {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        flex: 0 0 auto;
    }

    .hero-images-column {
        flex-direction: row;
        width: auto;
        gap: 20px;
    }

}

#start-btn {
    background-color: #03dac6;
    color: #000;
}

#stop-btn {
    background-color: #cf6679;
    color: #000;
}

.logs-container {
    background-color: #121212;
    border-radius: 5px;
    padding: 10px;
    flex: 1;
    min-width: 300px;
}

h2 {
    margin-top: 0;
    font-size: 18px;
    color: #bb86fc;
}

.logs-box {
    color: #fff;
}

.creature-status {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Status Styles */
.status-enabled {
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    background: linear-gradient(145deg, #2d2d2d, #1a3a2a);
}

.status-enabled .creature-status {
    color: #00ff88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.status-disabled {
    border-color: #555;
    opacity: 0.7;
    background-color: #252525;
    color: #666;
    padding: 20px;
    font-style: italic;
}

.status-unknown {
    border-color: #444;
    opacity: 0.5;
    background-color: #1a1a1a;
    color: #888;
    padding: 20px;
    font-style: italic;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.hero-panel {
    flex: 0 0 140px;
    /* Fixed narrow width */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.panel-title {
    margin: 0;
    color: #888;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-align: center;
}

.hero-images-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.hero-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100px;
    /* Strict height cap */
    object-fit: contain;
    transition: all 0.5s ease-in-out;
    border-radius: 8px;
}

/* Locked State (Grayed out) */
.hero-image.locked {
    filter: grayscale(100%) brightness(40%);
    opacity: 0.5;
    transform: scale(0.95);
}

/* Unlocked State (Highlighted) */
.hero-image.unlocked {
    filter: grayscale(0%) brightness(110%) drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    opacity: 1;
    transform: scale(1.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

/* Split View Server Grid */
.servers-container {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
}

.server-section {
    flex: 1;
    background-color: #252525;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
}

.server-header {
    margin-top: 0;
    color: #fff;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.creature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    min-height: 100px;
}

.creature-card {
    background-color: #2d2d2d;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 1000px) {
    .servers-container {
        flex-direction: column;
    }

    .hero-section {
        flex-direction: column;
        align-items: center;
    }

    .hero-panel {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        flex: 0 0 auto;
    }

    .hero-images-column {
        flex-direction: row;
        width: auto;
        gap: 20px;
    }

    .hero-image {
        max-height: 80px;
        /* Even smaller on mobile */
    }

    .logs-container {
        width: 100%;
        max-width: 100%;
    }
}

/* Debug Console Styles */
#debug-console {
    display: none;
    /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    height: 300px;
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid #444;
    border-radius: 8px;
    z-index: 10000;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.debug-header {
    background-color: #333;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-size: 0.8em;
    font-weight: bold;
    color: #ccc;
}

.debug-header button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2em;
    padding: 0 5px;
}

.debug-header button:hover {
    color: #f66;
}

#debug-output {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.75em;
    color: #ddd;
}

.debug-line {
    margin-bottom: 2px;
    border-bottom: 1px solid #222;
    padding-bottom: 2px;
    word-wrap: break-word;
}

.debug-log {
    color: #ddd;
}



.hero-panel {
    flex: 0 0 140px;
    /* Fixed narrow width */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.panel-title {
    margin: 0;
    color: #888;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-align: center;
}

.hero-images-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.hero-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100px;
    /* Strict height cap */
    object-fit: contain;
    transition: all 0.5s ease-in-out;
    border-radius: 8px;
}

/* Locked State (Grayed out) */
.hero-image.locked {
    filter: grayscale(100%) brightness(40%);
    opacity: 0.5;
    transform: scale(0.95);
}

/* Unlocked State (Highlighted) */
.hero-image.unlocked {
    filter: grayscale(0%) brightness(110%) drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    opacity: 1;
    transform: scale(1.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

/* Split View Server Grid */
.servers-container {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
}

.server-section {
    flex: 1;
    background-color: #252525;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
}

.server-header {
    margin-top: 0;
    color: #fff;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.creature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    min-height: 100px;
}

.creature-card {
    background-color: #2d2d2d;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 1000px) {
    .servers-container {
        flex-direction: column;
    }

    .hero-section {
        flex-direction: column;
        align-items: center;
    }

    .hero-panel {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        flex: 0 0 auto;
    }

    .hero-images-column {
        flex-direction: row;
        width: auto;
        gap: 20px;
    }

    .hero-image {
        max-height: 80px;
        /* Even smaller on mobile */
    }

    .logs-container {
        width: 100%;
        max-width: 100%;
    }
}

/* Debug Console Styles */
#debug-console {
    display: none;
    /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    height: 300px;
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid #444;
    border-radius: 8px;
    z-index: 10000;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.debug-header {
    background-color: #333;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-size: 0.8em;
    font-weight: bold;
    color: #ccc;
}

.debug-header button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2em;
    padding: 0 5px;
}

.debug-header button:hover {
    color: #f66;
}

#debug-output {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.75em;
    color: #ddd;
}

.debug-line {
    margin-bottom: 2px;
    border-bottom: 1px solid #222;
    padding-bottom: 2px;
    word-wrap: break-word;
}

.debug-log {
    color: #ddd;
}

.debug-error {
    color: #f66;
    background: rgba(255, 0, 0, 0.1);
}

.debug-warn {
    color: #fa0;
}

/* UUID History Styles */
.uuid-list {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #333;
    margin-top: 10px;
}

.uuid-item {
    padding: 5px;
    border-bottom: 1px solid #222;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    display: flex;
    gap: 10px;
}

.uuid-item:last-child {
    border-bottom: none;
}

.uuid-time {
    color: #888;
}

.uuid-val {
    color: #00ff88;
    font-weight: bold;
}