* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: "Host Grotesk", sans-serif;
}

body {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--dark-bg, #15182d);
    color: var(--text-light);
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.module {
    background: var(--secondary-bg);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 12px;
    border-radius: 10px;
    padding: 20px;
    flex: 1 1 calc(50% - 40px);
    max-width: calc(50% - 40px);
    min-width: 300px;
    border: 1px solid var(--border-color);
}

h1:not(.nav-title),
h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li:not(.nav-item) {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

#total-servers {
    font-weight: bold;
    color: var(--primary-color);
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

form input[type="text"],
form textarea {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 0.5px solid var(--border-color);
    border-radius: 7px;
    background-color: var(--tertiary-bg);
    color: var(--text-light);
}

form input[type="text"]:focus,
form textarea:focus {
    border: 0.5px solid var(--primary-color);
    outline: none;
}

form button {
    padding: 10px;
    font-size: 1em;
    font-weight: bold;
    color: var(--text-light);
    background: var(--primary-color);
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background: var(--primary-dark);
}

/* Admin Panel button styles */
.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 12px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    margin-bottom: 5px;
}

.admin-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 6px 14px;
}

.admin-btn:active {
    transform: translateY(0);
    box-shadow: rgba(0, 0, 0, 0.18) 0px 3px 8px;
}

.admin-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Ensure the nested link inherits button styles */
#admin-panel-button a,
#ban-panel-button a,
#ticket-panel-button a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


@media (max-width: 650px) {
    .container {
        width: 90%;
        padding: 10px;
    }

    .module {
        flex: 1 1 100%;
        max-width: 100%;
    }

    h1,
    h2 {
        font-size: 1.2em;
    }

    p,
    ul li {
        font-size: 0.9em;
    }

    /* Make the button full-width on small screens */
    #admin-panel-button {
        width: 100%;
    }
}

/* Styles spécifiques à la section "Update Statement" */
#info {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 12px;
}

#info h2 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

#info label {
    display: block;
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}


.checkbox-wrapper-63 input[type="checkbox"] {
    visibility: hidden;
    display: none;
}

.checkbox-wrapper-63 *,
.checkbox-wrapper-63 ::after,
.checkbox-wrapper-63 ::before {
    box-sizing: border-box;
}

/* The switch - the box around the slider */
.checkbox-wrapper-63 .switch {
    font-size: 1rem;
    position: relative;
    display: inline-block;
    width: 4em;
    height: 2em;
}

/* The slider */
.checkbox-wrapper-63 .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--tertiary-bg);
    transition: 0.4s;
    border-radius: 0.5em;
    box-shadow: 0 0.2em rgba(0, 0, 0, 0.2);
}

.checkbox-wrapper-63 .slider:before {
    position: absolute;
    content: "";
    height: 1.5em;
    width: 1.4em;
    border-radius: 0.3em;
    left: 0.3em;
    bottom: 0.7em;
    background-color: var(--danger-color);
    transition: 0.4s;
    box-shadow: 0 0.4em rgba(0, 0, 0, 0.2);
}

.checkbox-wrapper-63 .slider:hover::before {
    box-shadow: 0 0.2em rgba(0, 0, 0, 0.3);
    bottom: 0.5em;
}

.checkbox-wrapper-63 input:checked+.slider::before {
    transform: translateX(2em);
    background: var(--success-color);
}

#info button {
    padding: 10px;
    font-size: 1em;
    font-weight: bold;
    color: var(--text-light);
    background: var(--primary-color);
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#info button:hover {
    background: var(--primary-dark);
}

/* Admin Grid Layout */
.admin-group {
    margin-top: 25px;
}

.admin-group:first-of-type {
    margin-top: 15px;
}

.admin-group-title {
    color: var(--text-muted);
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.admin-card {
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
    color: var(--text-light);
    text-decoration: none;
    height: 100%;
    min-height: 120px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: rgba(56, 177, 237, 0.1);
    box-shadow: 0 8px 15px rgba(56, 177, 237, 0.15);
}

.admin-card .icon {
    font-size: 2.5em;
    margin-bottom: 5px;
    transition: transform 0.2s;
}

.admin-card:hover .icon {
    transform: scale(1.1);
}

.admin-card .label {
    font-weight: 600;
    font-size: 1.1em;
    color: var(--primary-color);
    transition: color 0.2s;
}

.admin-card:hover .label {
    color: var(--text-light);
}