/* Common modal styles for GraphArena */

.modal {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow: auto;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(3px);
}

.modal-content {
    background: rgba(39, 43, 48, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    color: #f1f1f1;
    margin: 10% auto;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal .btn-close {
    color: #f1f1f1;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
}

.modal .btn-close:hover {
    opacity: 1;
}

.modal-dialog {
    position: relative;
    margin: 1.75rem auto;
    pointer-events: none;
    max-width: 500px;
    transition: transform 0.3s ease-out;
}

.modal.show {
    display: block;
    padding-right: 17px;
    overflow-x: hidden;
    overflow-y: auto;
}

.modal.fade .modal-dialog {
    transform: translate(0, -50px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: none;
}

/* Form elements in modals */
.modal input:focus, 
.modal textarea:focus, 
.modal button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(73, 90, 255, 0.5);
}

.modal input, 
.modal textarea, 
.modal select {
    background-color: rgba(33, 37, 41, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1f1f1;
    padding: 8px 12px;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 15px;
}

/* Loading indicator for graph list */
.graph-list .loading {
    text-align: center;
    padding: 20px;
    color: #aaa;
}

/* Graph item styling */
.graph-list .graph-item {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.graph-list .graph-item:hover {
    background: rgba(255, 255, 255, 0.05);
} 