/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    color: #333;
}

.modal-content h2 {
    margin-top: 0;
    color: #2a5298;
}

.modal-content h3 {
    color: #1e3c72;
    margin-top: 20px;
}

.modal-content ul,
.modal-content ol {
    margin-left: 20px;
}

.modal-content li {
    margin: 8px 0;
}

.modal-content button {
    margin-top: 20px;
    padding: 10px 20px;
    background: #2a5298;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.modal-content button:hover {
    background: #1e3c72;
}

.modal-content form {
    width: 100%;
}

.modal-content input[type="text"],
.modal-content input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.modal-content input[type="text"]:focus,
.modal-content input[type="password"]:focus {
    outline: none;
    border-color: #2a5298;
}

.modal-content p {
    color: #666;
    margin: 10px 0;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons button {
    flex: 1;
    margin: 0;
}

/* Menu Modal Specific */
.menu-content {
    max-width: 500px;
}

.menu-section {
    margin: 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.menu-section:last-child {
    border-bottom: none;
}

.menu-section h3 {
    color: #2a5298;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.menu-section button {
    width: 100%;
    margin: 5px 0;
}

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

.menu-section select {
    width: 100%;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.current-game-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #2a5298;
    padding: 10px;
    background: #f0f8ff;
    border-radius: 5px;
    text-align: center;
}

.stats-display {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.stats-display p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    color: #333;
}

.stats-display span:last-child {
    font-weight: bold;
    color: #2a5298;
}

.menu-button {
    font-size: 1.2em;
    padding: 10px 20px;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 90%;
        padding: 20px;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .menu-content {
        max-width: 95%;
    }
}
