.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 300;
    backdrop-filter: blur(2px);
}

.modal-content {
    width: 100%;
    max-width: 500px;
    background-color: #17212b;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid #242f3d;
}

@media (min-width: 900px) {
    .modal {
        align-items: center;
    }
    .modal-content {
        border-radius: 16px;
        box-shadow: 0 16px 48px rgba(0,0,0,0.8);
    }
}

.modal-content input {
    width: 100%;
    padding: 12px 14px;
    background: #242f3d;
    border: 1px solid #1a2533;
    border-radius: 8px;
    color: #fff;
    outline: none;
    font-size: 15px;
}

.modal-content input:focus {
    border-color: #2aacc8;
}

.btn-primary {
    background-color: #2b5278;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.btn-primary:hover {
    background-color: #356291;
}

.latex-badge {
    background-color: #242f3d;
    color: #64b5f6;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    border: 1px solid #2e3c4e;
}
