/* General Styles */

body {
    font-family: 'Roboto', sans-serif;
    background-image: url('/assets/images/index/HEADER_PANDARIA.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    color: #9c9c9c;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}


/* Dashboard Styles */

.dashboard {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.zone_dashboard {
    display: flex;
    flex-direction: column;
    padding: 20px;
    align-items: center;
    /* Center the content horizontally */
}

.select {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-bottom: 20px;
    width: 100%;
}

.button {
    background: #285367;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.button:hover {
    background: #1d3a47;
    transform: scale(1.05);
}

.button:active {
    background: #163d47;
}


/* Sections Styles */

.detail label,
.info_modify,
.info_ogrine,
.info_password,
.new_account,
.list_account,
.content {
    display: block;
    margin-bottom: 20px;
    /* Adjusted margin for more spacing */
}

.title1,
.title2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #285367;
}

.desc2 {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

input[type="submit"] {
    background: #285367;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

input[type="submit"]:hover {
    background: #1d3a47;
    transform: scale(1.05);
}

input[type="submit"]:active {
    background: #163d47;
}


/* Table Styles */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th,
table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background: #285367;
    color: #fff;
}

table tr:nth-child(even) {
    background: #f2f2f2;
}

table tr:hover {
    background: #e2e2e2;
}


/* Footer Styles */

footer {
    background: #2a2a2a;
    color: #fff;
    padding: 10px;
    text-align: center;
}

footer a {
    color: #fff;
}


/* Custom Styles */

.info_ogrine,
.info_password {
    margin: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.8);
    /* Semi-transparent background */
}

.title2 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #285367;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

button:hover {
    background-color: #1d3a4d;
}

.erreur-n,
.succes-n {
    padding: 10px;
    border-radius: 5px;
    margin: 20px 0;
    color: white;
}

.erreur-n {
    background-color: #e74c3c;
}

.succes-n {
    background-color: #2ecc71;
}


/* Menu Styles */

.menu-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0;
    background-image: url('/assets/images/index/bg_ServerHeader_Info.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 5px;
    width: 100%;
    max-width: 100%;
    min-height: 100px;
}

.menu-item {
    cursor: pointer;
    color: #aaa;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    position: relative;
    padding: 0 15px;
    /* Added padding for better spacing */
}

.menu-item.active,
.menu-item:hover {
    color: #fff;
}

.menu-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #9bc12a;
}

.search-item {
    padding-right: 20px;
    flex-grow: 2;
}

.search-item input {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    background-color: #444;
    color: #ddd;
    width: 100%;
    max-width: 250px;
    transition: width 0.3s ease;
}

.search-item input:focus {
    outline: none;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.class-image {
    max-width: 30px;
    height: auto;
}

.info_box {
    display: flex;
    align-items: flex-start;
    background-color: #201919;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    /* Adjusted max-width for the box */
    width: 100%;
}

.info_box_image {
    flex-shrink: 0;
    margin-right: 15px;
}

.info_box_image img {
    border-radius: 8px;
    max-width: 250px;
    /* Adjusted image size */
    height: auto;
}

.info_box_content {
    flex: 1;
}

.info_box_header h2 {
    margin-top: 0;
    font-size: 1.5em;
    color: #333;
}

.info_box_section {
    margin-bottom: 10px;
}

.info_box_section h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #555;
}

.info_box_section p {
    font-size: 1em;
    margin: 5px 0;
}


/* Responsive Design */

@media (max-width: 768px) {
    .select {
        flex-direction: column;
        align-items: center;
    }
    .select .button {
        margin-bottom: 10px;
    }
}