/* ========== LOAD PROGRESS BUTTON ========== */
.load-progress-btn {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 101;
}

.load-progress-btn button {
    background: rgba(30, 30, 45, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #a855f7;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.load-progress-btn button:hover {
    background: rgba(30, 30, 45, 1);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

/* ========== LOAD MODAL ========== */
.load-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.load-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.load-modal-content {
    background: rgba(30, 30, 45, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.load-modal-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.load-modal-header h3 {
    margin: 0;
    color: #e0aaff;
    font-size: 1.3em;
    font-weight: 600;
}

.close-modal {
    background: none !important;
    border: none !important;
    color: #a855f7 !important;
    font-size: 1.5em !important;
    cursor: pointer !important;
    padding: 5px !important;
    border-radius: 50% !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    min-width: auto !important;
}

.close-modal:hover {
    background: rgba(168, 85, 247, 0.2) !important;
    transform: scale(1.1) !important;
}

.load-modal-body {
    padding: 30px;
}

.load-modal-body p {
    color: #e0e0f0;
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.6;
}

#load-code-input {
    width: 100%;
    min-height: 120px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    color: #e0e0f0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    resize: vertical;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#load-code-input:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

#load-code-input::placeholder {
    color: rgba(224, 224, 240, 0.5);
}

.load-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.load-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(168, 85, 247, 0.3) 100%) !important;
    border: 1px solid rgba(168, 85, 247, 0.5) !important;
    color: #e0e0f0 !important;
    padding: 12px 25px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-size: 1em !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    min-width: auto !important;
}

.load-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(168, 85, 247, 0.4) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3) !important;
}

.cancel-btn {
    background: rgba(60, 60, 80, 0.3) !important;
    border: 1px solid rgba(100, 100, 120, 0.3) !important;
    color: #e0e0f0 !important;
    padding: 12px 25px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-size: 1em !important;
    transition: all 0.3s ease !important;
    min-width: auto !important;
}

.cancel-btn:hover {
    background: rgba(60, 60, 80, 0.5) !important;
    transform: translateY(-2px) !important;
}

.load-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9em;
    animation: shake 0.5s ease;
}

/* ========== ENHANCED SAVE SYSTEM ========== */
.enhanced-save {
    margin-top: 40px;
    padding: 20px;
    background: rgba(60, 60, 80, 0.2);
    border: 1px solid rgba(100, 100, 120, 0.2);
    border-radius: 12px;
    text-align: center;
}

.save-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.quick-save-btn, .share-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(168, 85, 247, 0.3) 100%) !important;
    border: 1px solid rgba(168, 85, 247, 0.5) !important;
    color: #e0e0f0 !important;
    padding: 12px 20px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-size: 0.95em !important;
    transition: all 0.3s ease !important;
    min-width: 140px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.quick-save-btn:hover, .share-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(168, 85, 247, 0.4) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3) !important;
}

.save-hint {
    color: rgba(224, 224, 240, 0.6);
    font-size: 0.85em;
    margin-top: 10px;
}

/* Save notification */
.save-notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    padding: 15px 25px;
    border-radius: 10px;
    z-index: 1001;
    animation: fadeIn 0.3s ease;
    font-weight: 600;
    pointer-events: none;
}