/* style.css */
body {
    font-family: Arial, sans-serif;
    background-color: #222;
    color: #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    margin: 0;
}
h1 {
    color: #fff;
    margin-bottom: 20px;
}
h2 {
    color: #fff;
    margin-bottom: 10px;
}
.generator-sections {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}
.generator-section h2 {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 10px;
}
.generator-section {
    background-color: #333;
    padding: 15px;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #444;
}
.generator-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    white-space: nowrap; /* Prevents line break */
}
.generator-option select {
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    background-color: #555;
    color: #fff;
    border: none;
    border-radius: 5px;
}
.generator-option span {
    font-size: 14px;
}
.module-powered {
    border: 2px solid #ff0 !important;
}
.module-unpowered {
    border: 2px solid #f00 !important;
}
#engine-selector-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
#engine-select {
    padding: 8px 16px;
    font-size: 14px;
    background-color: #555;
    color: #fff;
    border: none;
    border-radius: 5px;
}
#rotate-engine-btn {
    padding: 8px 16px;
    font-size: 14px;
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
#power-grid-container {
    display: grid;
    grid-template-columns: repeat(8, 32px);
    grid-template-rows: repeat(8, 32px);
    gap: 2px;
    background: #222;
    border-radius: 8px;
    border: 1px solid #444;
    margin-bottom: 8px;
}
/* Main Power Grid tiles */
#power-grid-container .tile {
    background: #222;
    border: 1px solid #444;
}
.tile {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border 0.2s;
}
.module-preview {
    background: #666;
    opacity: 0.7;
}
#module-list-container {
    margin-top: 16px;
}
.green-tile {
    background-color: #00ff00 !important;
    box-shadow: 0 0 10px #00ff00;
}
.blue-tile {
    background-color: #0080ff !important;
    box-shadow: 0 0 10px #0000ff;
}
.gray-tile {
    background-color: #222 !important;
}
.power-plug-tile {
    position: relative;
    background: #222;
    border: 1px solid #444;
    box-shadow: 0 2px 8px #111 inset;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border 0.2s, box-shadow 0.2s;
}
.power-plug-tile::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: rgba(180,180,180,0.12); /* Almost transparent */
    border: 1px solid #aaa;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 2px #0001;
}
footer.site-footer {
    margin-top: 32px;
    color: #aaa;
    font-size: 15px;
    text-align: center;
    background: #222;
    border-top: 1px solid #333;
    padding: 12px 8px 8px 8px;
    border-radius: 0;
    box-shadow: none;
}
footer.site-footer a {
    color: #8cf;
    transition: color 0.2s;
}
footer.site-footer a:hover {
    color: #fff;
}
footer.site-footer hr {
    margin: 12px 0;
    border: none;
    border-top: 1px solid #333;
}
footer.site-footer strong {
    color: #fff;
    font-weight: 600;
}