.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 200;
    justify-content: center;
    align-items: center;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background-color: #34495e;
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    color: #3498db;
}

.modal-close {
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.modal-close:hover {
    color: #e74c3c;
}

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

.modal-form label {
    display: block;
    margin-bottom: 5px;
    color: #bdc3c7;
    font-size: 14px;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 10px;
    background-color: #2c3e50;
    border: 1px solid #34495e;
    border-radius: 4px;
    color: #ecf0f1;
    font-size: 14px;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

.modal-form textarea {
    min-height: 120px;
    resize: vertical;
}

.modal-submit {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: #ecf0f1;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-submit:hover {
    background-color: #2980b9;
}

.modal-message {
    padding: 12px;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
    display: none;
}

.modal-message.success {
    background-color: #2ecc71;
    color: #2c3e50;
}

.modal-message.error {
    background-color: #e74c3c;
}

.tutorial-modal {
    max-width: 600px;
}

.tutorial-content {
    color: #ecf0f1;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tutorial-content h3 {
    color: #3498db;
    margin: 15px 0 10px 0;
}

.tutorial-content .example-box {
    background-color: #2c3e50;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.tutorial-content .hint {
    background-color: #2c3e50;
    border-left: 4px solid #2ecc71;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
}

.tutorial-content code {
    background-color: #2c3e50;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #e74c3c;
}

.tutorial-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.tutorial-btn {
    padding: 10px 20px;
    background-color: #3498db;
    color: #ecf0f1;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tutorial-btn:hover {
    background-color: #2980b9;
}

.tutorial-btn:disabled {
    background-color: #7f8c8d;
    cursor: not-allowed;
}

.tutorial-dots {
    display: flex;
    gap: 8px;
}

.tutorial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #7f8c8d;
    transition: background-color 0.3s;
}

.tutorial-dot.active {
    background-color: #3498db;
}

.tutorial-emoji {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
}
