.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); z-index: 1000; } .fullscreen-modal { top: 0; left: 0; overflow: auto; width: 100vw; height: 100vh; .modal-content { max-height: 100vh; overflow-y: auto; overflow-x: auto; } } .modal-content { max-height: 80vh; overflow-y: auto; overflow-x: hidden; .label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; .name { margin: 0; font-size: 1.5rem; color: #333; } .close-button { background: none; border: none; cursor: pointer; padding: 0; color: #666; &:hover { color: #333; } } } form { display: grid; grid-template-columns: 1fr 2fr; gap: 15px; align-items: center; width: 100%; box-sizing: border-box; label { display: contents; span.title { font-weight: 500; color: #444; text-align: right; padding-right: 10px; } input { max-width: 100%; } } .button-group { grid-column: span 2; display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; button { padding: 10px 20px; border: none; border-radius: 5px; font-size: 1rem; cursor: pointer; transition: background-color 0.2s; &:first-child { background-color: #007bff; color: white; &:hover { background-color: #0056b3; } } &:nth-child(2) { background-color: #28a745; color: white; &:hover { background-color: #218838; } } &:last-child { background-color: #6c757d; color: white; &:hover { background-color: #5a6268; } } } } } }