.gm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.gm-modal.show {
    opacity: 1;
    visibility: visible;
}

.gm-modal-content {
    background: white;
    border-radius: 20px;
    min-width: 400px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gm-modal-content.gm-modal-xl {
    min-width: 600px;
}

.gm-modal.show .gm-modal-content {
    transform: scale(1);
}

.gm-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gm-header.theme-success {
    background: linear-gradient(135deg, #38b000, #70e000);
}

.gm-header.theme-danger {
    background: linear-gradient(135deg, #d00000, #ff6b6b);
}

.gm-header.theme-warning {
    background: linear-gradient(135deg, #f0a202, #f18805);
}

.gm-header.theme-info {
    background: linear-gradient(135deg, #3a86ff, #4361ee);
}

.gm-title {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gm-title .fas {
    font-size: 1.5rem;
}

.gm-modal .fas {
    color: white;
}

.gm-close {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gm-close:hover {
    background: rgba(255, 255, 255, 0.5);
}

.gm-body {
    padding: 30px;
    background: #f8f9fa;
    overflow-y: auto;
    max-height: 60vh;
    color: #212529;
}

.gm-footer {
    padding: 20px 30px;
    background: #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.gm-btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    padding: 12px 25px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.gm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.gm-btn-secondary {
    background: #95a2af;
    border: none;
    border-radius: 12px;
    padding: 12px 25px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.gm-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(152, 154, 162, 0.4);
}

.gm-input {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    background: white;
    margin-bottom: 15px;
    width: 100%;
}

.gm-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.gm-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #764ba2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}