/* Dark Background for the entire page */
body {
    background-color: #121212; /* Dark background */
    color: #f0f0f0; /* Light text color for better readability */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Container for centering everything */
.container {
    background-color: #1e1e1e; /* Slightly lighter dark background */
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* Slight shadow to lift the container */
}

/* Base Grid Layout */
.grid {
    display: grid;
    gap: 20px;
    max-width: 1200px;
    margin-bottom: 20px;
}

/* Server Info Grid */
.server-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns of equal width */
    gap: 20px;
    max-width: 100%;
}

/* Grid for Game Settings */
.game-settings-grid {
    display: grid;
    gap: 20px;
    max-width: 1200px;
    margin-bottom: 20px;
}

/* Input Group Styling */
.input-group {
    background-color: #2b2b2b; /* Dark section background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); /* Slight shadow for pop effect */
    margin-bottom: 20px;
}

.input-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #ffffff; /* Ensure the label text stands out */
}

.input-group input,
.input-group select {
    padding: 10px;
    border: 1px solid #444; /* Darker border for input fields */
    border-radius: 4px;
    background-color: #333; /* Dark input background */
    color: #f0f0f0; /* Light text inside inputs */
}

.description {
    font-size: 0.9em;
    color: #a0a0a0; /* Lighter description text */
}

/* Player Attributes Grid */
.player-attributes {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
}

/* Combat and Damage, Environmental, Gameplay Grids */
.combat-grid,
.environmental-grid,
.gameplay-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
}

/* Full-row for wide elements */
.full-row {
    grid-column: 1 / 3;
}

/* For input ranges */
input[type="range"] {
    width: 100%;
}

/* Specific section styling */
h3 {
    color: #f0f0f0; /* Make section headers light */
    border-bottom: 2px solid #444; /* Underline with a dark border */
    padding-bottom: 10px;
}

/* Add padding around each grid section */
.server-info-grid, .player-attributes, .combat-grid, .environmental-grid, .gameplay-grid {
    padding: 20px;
    background-color: #2b2b2b; /* Dark background for each section */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); /* Shadow to lift sections off the page */
}

/* Container for toggle switch */
.toggle-container {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin-bottom: 20px;
}

/* Hide the default checkbox */
.toggle-container input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider background */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 30px;
}

/* The slider handle */
.slider::before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

/* Checkbox checked state */
input:checked + .slider {
    background-color: #008080; /* Customize the color when checked */
}

input:checked + .slider::before {
    transform: translateX(30px);
}

/* Add some shadow to the toggle switch */
.slider {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* User Groups Grid */
.user-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.add-group-button {
    background-color: #008080;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    top: 0;
    right: 0;
}
/* 2x2 Grid for Checkbox Group */
.checkbox-group-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two equal-width columns */
    gap: 20px; /* Adjusts the space between grid items */
    align-items: center; /* Vertically aligns the content in the grid */
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    width: 600px;
    max-width: 80%;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #fff;
    cursor: pointer;
}

textarea {
    width: 100%;
    padding: 10px;
    background-color: #2b2b2b;
    color: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 15px;
    border: none;
}

.json-button {
    background-color: #008080;
    color: white;
    padding: 10px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.json-button:hover {
    background-color: #006666;
}
